Commit graph

6 commits

Author SHA1 Message Date
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