feat: db release mode

This commit is contained in:
email
2022-02-06 10:37:09 +08:00
parent c77996a891
commit ff5a1eebd7
5 changed files with 15 additions and 10 deletions

View File

@ -29,7 +29,7 @@ func Execute() {
}
func (m *Main) Run() error {
db := store.NewDB(m.profile.dsn)
db := store.NewDB(m.profile.dsn, m.profile.mode)
if err := db.Open(); err != nil {
return fmt.Errorf("cannot open db: %w", err)