Skip to content

Commit

Permalink
fix(config): fill dialect field
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Aug 28, 2021
1 parent 0b3b566 commit 81e50f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -9,6 +9,7 @@ web2/dist/**/*
/config.json
/.dredd/config.json
/database.bolt
/database.boltdb
.DS_Store
node_modules/

Expand Down
3 changes: 3 additions & 0 deletions cli/setup/setup.go
Expand Up @@ -36,10 +36,13 @@ func InteractiveSetup(conf *util.ConfigType) {

switch db {
case 1:
conf.Dialect = util.DbDriverMySQL
scanMySQL(conf)
case 2:
conf.Dialect = util.DbDriverBolt
scanBoltDb(conf)
case 3:
conf.Dialect = util.DbDriverPostgres
scanPostgres(conf)
}

Expand Down

0 comments on commit 81e50f8

Please sign in to comment.