Commit Graph

9 Commits (99d9bd2d7536052c008576a1356fe151a19df155)

Author SHA1 Message Date
Steven 87ddeb2c79 chore: adjust store test for mysql 1 year ago
Athurg Gooth 5121e9f954
chore: move migration and seed code into driver (#2294)
Move migration and seed code into driver
1 year ago
Athurg Gooth ca98367a0a
chore: store vacuum and clean (#2293)
* Move all vacuum code into driver

* Remove db from Store
1 year ago
Steven 63b55c4f65 chore: fix tests 1 year ago
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
1 year ago
boojack ad1822d308
chore: update db utils (#2177) 2 years ago
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>
2 years ago
boojack c9a5df81ce
chore: update store tests (#1449) 2 years ago
boojack 0baf6b0e19
feat: add test for user store (#1438) 2 years ago