mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-18 04:34:19 +01:00
Sqlite - add sqlc and migration (#217)
This commit is contained in:
@@ -40,6 +40,7 @@ type Config struct {
|
||||
DbType string
|
||||
EventDbType string
|
||||
DbDir string
|
||||
DbMigrationPath string
|
||||
EventDbDir string
|
||||
RoundInterval int64
|
||||
Network common.Network
|
||||
@@ -167,7 +168,7 @@ func (c *Config) repoManager() error {
|
||||
case "badger":
|
||||
dataStoreConfig = []interface{}{c.DbDir, logger}
|
||||
case "sqlite":
|
||||
dataStoreConfig = []interface{}{c.DbDir}
|
||||
dataStoreConfig = []interface{}{c.DbDir, c.DbMigrationPath}
|
||||
default:
|
||||
return fmt.Errorf("unknown db type")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user