|
|
|
@ -11,6 +11,13 @@ import Noco from '../../../Noco';
|
|
|
|
|
import { XKnex } from '../../sql-data-mapper'; |
|
|
|
|
import NcMetaIO from '../../../meta/NcMetaIO'; |
|
|
|
|
|
|
|
|
|
import type MssqlClient from '../../sql-client/lib/mssql/MssqlClient'; |
|
|
|
|
import type MysqlClient from '../../sql-client/lib/mysql/MysqlClient'; |
|
|
|
|
import type OracleClient from '../../sql-client/lib/oracle/OracleClient'; |
|
|
|
|
import type PGClient from '../../sql-client/lib/pg/PgClient'; |
|
|
|
|
import type SnowflakeClient from '../../sql-client/lib/snowflake/SnowflakeClient'; |
|
|
|
|
import type SqliteClient from '../../sql-client/lib/sqlite/SqliteClient'; |
|
|
|
|
|
|
|
|
|
export default class KnexMigratorv2Tans extends KnexMigratorv2 { |
|
|
|
|
protected sqlClient: any; |
|
|
|
|
protected ncMeta: NcMetaIO; |
|
|
|
@ -24,7 +31,7 @@ export default class KnexMigratorv2Tans extends KnexMigratorv2 {
|
|
|
|
|
protected get metaDb(): XKnex { |
|
|
|
|
return this.ncMeta.knex || Noco.ncMeta.knex; |
|
|
|
|
} |
|
|
|
|
protected async getSqlClient(base: Base): Promise<any> { |
|
|
|
|
protected async getSqlClient(base: Base): Promise<SnowflakeClient | MysqlClient | SqliteClient | MssqlClient | OracleClient | PGClient> { |
|
|
|
|
return this.sqlClient || NcConnectionMgrv2.getSqlClient(base); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|