diff --git a/inventory/client.go b/inventory/client.go index bbbee4b..7f342ab 100644 --- a/inventory/client.go +++ b/inventory/client.go @@ -52,6 +52,9 @@ func NewRawEntClient(l logging.Logger, config conf.ConfigProvider) (*ent.Client, if confDBType == conf.SQLite3DB || confDBType == "" { confDBType = conf.SQLiteDB } + if confDBType == conf.MariaDB { + confDBType = conf.MySqlDB + } var ( err error diff --git a/pkg/conf/types.go b/pkg/conf/types.go index 285278f..e5a53b4 100644 --- a/pkg/conf/types.go +++ b/pkg/conf/types.go @@ -10,6 +10,7 @@ var ( MySqlDB DBType = "mysql" MsSqlDB DBType = "mssql" PostgresDB DBType = "postgres" + MariaDB DBType = "mariadb" ) // Database 数据库