Commit Graph

23 Commits (c1f55abaebbed79550f143773845d7eb72af500b)

Author SHA1 Message Date
steven 6da2ff7ffb chore: clean logs
Athurg Gooth 4f1bb55e55
fix: metric env not affect ()
fix metric env not affect
Steven 59f0ee862d chore: fix viper default value
Athurg Gooth bfdb33f26b
chore: add a flag to change metric switch ()
* add a flag to change metric switch

* change the default value of metric
Steven 5b3af827e1 chore: move common packages to internal
Steven a5df36eff2 chore: update metrics
Athurg Gooth 95bfcb8055
chore: print profile.Data in boot log ()
Print profile.Data in boot log
Steven a6ee61e96d chore: update package name
Athurg Gooth c72f221fc0
feat: support mysql as backend storage driver ()
* Rename checkDSN to checkDataDir

* Add option to set DSN and db driver

* Add mysql driver skeleton

* Add mysql container in compose for debug

* Add basic function for mysql driver

* Cleanup go mod with tidy

* Cleanup go.sum with tidy

* Add DeleteUser support for mysql driver

* Fix UpdateUser of mysql driver

* Add DeleteTag support for mysql driver

* Add DeleteResource support for mysql driver

* Add UpdateMemo and DeleteMemo support for mysql driver

* Add MemoRelation support for mysql driver

* Add MemoOrganizer support for mysql driver

* Add Idp support for mysql driver

* Add Storage support for mysql driver

* Add FindMemosVisibilityList support for mysql driver

* Add Vacuum support for mysql driver

* Add Migration support for mysql driver

* Add Migration support for mysql driver

* Fix ListMemo failed with referece

* Change Activity.CreateTs type in MySQL

* Change User.CreateTs type in MySQL

* Fix by golangci-lint

* Change Resource.CreateTs type in MySQL

* Change MigrationHistory.CreateTs type in MySQL

* Change Memo.CreateTs type in MySQL
Athurg Gooth 5121e9f954
chore: move migration and seed code into driver ()
Move migration and seed code into driver
Athurg Gooth ca98367a0a
chore: store vacuum and clean ()
* Move all vacuum code into driver

* Remove db from Store
Steven 96395b6d75 chore: rename package `sqlite3` to `sqlite`
Athurg Gooth 41eba71f0f
chore: split sql to driver ()
* 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
Steven cd0ea6558d chore: update golangci-lint config
boojack ad1822d308
chore: update db utils ()
Sandu Liviu Catalin 6c01e84099
feat: add configuration option to bind server to specific address ()
boojack 19e7731abb
chore: generate ts definition ()
* chore: generate ts definition

* chore: update
boojack cbe27923b3
chore: update commands ()
Athurg Gooth 11abc45440
feat: add command to move blob from local to db ()
* Add `mvrss` command to move blob from local to db

* Add comment for mvrss command
boojack 4ed9a3a0ea
refactor: migrate auth routes to v1 package ()
* feat: add api v1 packages

* chore: migrate auth to v1

* chore: update test
boojack 0baf6b0e19
feat: add test for user store ()
Dmitry Shemin e7ee181a91
feat: add setup cmd ()
This command can be used for automatization of initial application's setup
boojack a21ff5c2e3
chore: update project structure ()