chore: release mysql driver

This commit is contained in:
Steven 2023-10-21 01:25:07 +08:00
parent 4b91738f21
commit d06d01cef2

View File

@ -14,11 +14,6 @@ func NewDBDriver(profile *profile.Profile) (store.Driver, error) {
var driver store.Driver
var err error
// As mysql driver is not fully implemented, we use sqlite for now in prod mode.
if profile.Mode == "prod" && profile.Driver != "sqlite" {
return nil, errors.New("Only SQLite is supported in prod mode")
}
switch profile.Driver {
case "sqlite":
driver, err = sqlite.NewDB(profile)