driver params for IN tables

This commit is contained in:
pc3b3r 2020-08-20 16:02:12 +02:00
parent ef5371c196
commit defe6fd63f

View File

@ -70,7 +70,8 @@ export default abstract class AbstractDriver {
public abstract GetAllTablesQuery: (
schema: string,
dbNames: string,
tableNames: string[]
notIntTables: string[],
inTables: string[]
) => Promise<
{
TABLE_SCHEMA: string;
@ -189,7 +190,8 @@ export default abstract class AbstractDriver {
dbModel = await this.GetAllTables(
sqlEscapedSchema,
connectionOptions.databaseName,
connectionOptions.skipTables
connectionOptions.skipTables,
connectionOptions.tables
);
await this.GetCoulmnsFromEntity(
dbModel,
@ -218,12 +220,14 @@ export default abstract class AbstractDriver {
public async GetAllTables(
schema: string,
dbNames: string,
tableNames: string[]
notInTables: string[],
inTables: string[]
): Promise<Entity[]> {
const response = await this.GetAllTablesQuery(
schema,
dbNames,
tableNames
notInTables,
inTables
);
const ret: Entity[] = [] as Entity[];
response.forEach((val) => {