Commit Graph

10 Commits

Author SHA1 Message Date
Steven
a6ee61e96d chore: update package name 2023-10-05 23:11:29 +08:00
Steven
87ddeb2c79 chore: adjust store test for mysql 2023-09-29 09:15:54 +08:00
Athurg Gooth
5121e9f954
chore: move migration and seed code into driver (#2294)
Move migration and seed code into driver
2023-09-27 11:56:20 +08:00
Athurg Gooth
ca98367a0a
chore: store vacuum and clean (#2293)
* Move all vacuum code into driver

* Remove db from Store
2023-09-26 20:27:31 -05:00
Steven
63b55c4f65 chore: fix tests 2023-09-26 19:15:18 +08:00
Athurg Gooth
41eba71f0f
chore: split sql to driver (#2279)
* Add new database interface for SQL operations

* Move SQL code of Activity into Database

* Rename `Database` into `Driver`

* Move SQL code of SystemSetting into Driver

* Fix store.New in text code

* Change database into driver in the variables

* Change sqlite3.New into sqlite3.NewDriver
2023-09-26 17:16:58 +08:00
boojack
ad1822d308
chore: update db utils (#2177) 2023-08-26 07:33:45 +08:00
Athurg Gooth
ddf4cae537
feat: disable CGO_ENABLED (#1766)
* Replace mattn/go-sqlite3 with modernc.org/sqlite

* Disable CGO to make binary work without special c lib

* Replace mattn/go-sqlite3 with modernc.org/sqlite in testing code

* Tidy go module

---------

Co-authored-by: Athurg Feng <athurg@gooth.org>
2023-05-29 13:29:42 +08:00
boojack
c9a5df81ce
chore: update store tests (#1449) 2023-04-03 09:53:36 +08:00
boojack
0baf6b0e19
feat: add test for user store (#1438) 2023-04-01 22:47:19 +08:00