add sqlite support
This commit is contained in:
@ -8,10 +8,20 @@ import (
|
||||
"git.loyso.art/frx/kurious/internal/common/config"
|
||||
)
|
||||
|
||||
type dbEngine string
|
||||
|
||||
const (
|
||||
DBEngineUnknown dbEngine = ""
|
||||
DBEngineYDB dbEngine = "ydb"
|
||||
DBEngineSqlite dbEngine = "sqlite"
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
Log config.Log `json:"log"`
|
||||
YDB config.YDB `json:"ydb"`
|
||||
SyncSravniCron string `json:"sync_sravni_cron"`
|
||||
Log config.Log `json:"log"`
|
||||
YDB config.YDB `json:"ydb"`
|
||||
Sqlite config.Sqlite `json:"sqlite"`
|
||||
DBEngine dbEngine `json:"db_engine"`
|
||||
SyncSravniCron string `json:"sync_sravni_cron"`
|
||||
|
||||
DebugHTTP bool `json:"debug_http"`
|
||||
}
|
||||
@ -37,5 +47,7 @@ func defaultConfig() Config {
|
||||
Level: config.LogLevelInfo,
|
||||
Format: config.LogFormatText,
|
||||
},
|
||||
// TODO: change to sqlite once it proven to be working
|
||||
DBEngine: DBEngineYDB,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user