memos/test/store
Irving Ou 9c18960f47
feat: support Postgres (#2569)
* skeleton of postgres

skeleton

* Adding Postgres specific db schema sql

* user test passed

* memo store test passed

* tag is working

* update user setting test done

* activity test done

* idp test passed

* inbox test done

* memo_organizer, UNTESTED

* memo relation test passed

* webhook test passed

* system setting test passed

* passed storage test

* pass resource test

* migration_history done

* fix memo_relation_test

* fixing server memo_relation test

* passes memo relation server test

* paess memo test

* final manual testing done

* final fixes

* final fixes cleanup

* sync schema

* lint

* lint

* lint

* lint

* lint
2023-12-03 13:31:29 +08:00
..
activity_test.go chore: update activity store definition 2023-10-27 23:24:56 +08:00
idp_test.go chore: update common utils (#1908) 2023-07-06 22:53:38 +08:00
inbox_test.go chore: remove unused inbox status 2023-10-28 02:49:35 +08:00
memo_relation_test.go chore: update store tests 2023-10-03 00:47:34 +08:00
memo_test.go feat: support Postgres (#2569) 2023-12-03 13:31:29 +08:00
README.md chore: adjust store test for mysql 2023-09-29 09:15:54 +08:00
resource_test.go chore: retire memo resource relation table 2023-09-27 00:40:16 +08:00
storage_test.go chore: update golangci-lint config 2023-09-17 22:55:13 +08:00
store_test.go chore: upgrade version to 0.14.2 (#2035) 2023-07-26 22:42:38 +08:00
store.go chore: update package name 2023-10-05 23:11:29 +08:00
system_setting_test.go refactor: migrate definition to api v1 (#1879) 2023-07-02 18:56:25 +08:00
tag_test.go refactor: migrate tag to driver 2023-09-26 19:37:22 +08:00
user_setting_test.go chore: adjust store test for mysql 2023-09-29 09:15:54 +08:00
user_test.go chore: update golangci-lint config 2023-09-17 22:55:13 +08:00
webhook_test.go chore: implement webhook store 2023-11-24 22:45:38 +08:00

Store tests

How to test store with MySQL?

  1. Create a database in your MySQL server.
  2. Run the following command with two environment variables set:
DRIVER=mysql DSN=root@/memos_test go test -v ./test/store/...
  • DRIVER should be set to mysql.
  • DSN should be set to the DSN of your MySQL server.