|
|
@ -2,7 +2,6 @@ import Noco from '../../../Noco'; |
|
|
|
import SqlClientFactoryEE from './ee/SqlClientFactoryEE'; |
|
|
|
import SqlClientFactoryEE from './ee/SqlClientFactoryEE'; |
|
|
|
import MySqlClient from './mysql/MysqlClient'; |
|
|
|
import MySqlClient from './mysql/MysqlClient'; |
|
|
|
import MssqlClient from './mssql/MssqlClient'; |
|
|
|
import MssqlClient from './mssql/MssqlClient'; |
|
|
|
import OracleClient from './oracle/OracleClient'; |
|
|
|
|
|
|
|
import SqliteClient from './sqlite/SqliteClient'; |
|
|
|
import SqliteClient from './sqlite/SqliteClient'; |
|
|
|
import PgClient from './pg/PgClient'; |
|
|
|
import PgClient from './pg/PgClient'; |
|
|
|
import YugabyteClient from './pg/YugabyteClient'; |
|
|
|
import YugabyteClient from './pg/YugabyteClient'; |
|
|
@ -30,8 +29,6 @@ export class SqlClientFactory { |
|
|
|
return new SqliteClient(connectionConfig); |
|
|
|
return new SqliteClient(connectionConfig); |
|
|
|
} else if (connectionConfig.client === 'mssql') { |
|
|
|
} else if (connectionConfig.client === 'mssql') { |
|
|
|
return new MssqlClient(connectionConfig); |
|
|
|
return new MssqlClient(connectionConfig); |
|
|
|
} else if (connectionConfig.client === 'oracledb') { |
|
|
|
|
|
|
|
return new OracleClient(connectionConfig); |
|
|
|
|
|
|
|
} else if (connectionConfig.client === 'pg') { |
|
|
|
} else if (connectionConfig.client === 'pg') { |
|
|
|
if (connectionConfig.meta.dbtype === 'yugabyte') |
|
|
|
if (connectionConfig.meta.dbtype === 'yugabyte') |
|
|
|
return new YugabyteClient(connectionConfig); |
|
|
|
return new YugabyteClient(connectionConfig); |
|
|
|