Fix yargs issue

This commit is contained in:
Frederik Hummel 2020-10-03 12:26:41 +02:00
parent 6e9927fbf7
commit 5f7bc2de7a
2 changed files with 3 additions and 0 deletions

View File

@ -475,6 +475,8 @@ WHERE TABLE_TYPE='BASE TABLE' and TABLE_SCHEMA in (${schema}) AND TABLE_CATALOG
user: connectionOptons.user,
};
console.log(config);
const promise = new Promise<boolean>((resolve, reject) => {
this.Connection = new this.MSSQL.ConnectionPool(config, (err) => {
if (!err) {

View File

@ -311,6 +311,7 @@ function checkYargsParameters(options: options): options {
options.connectionOptions.schemaName = argv.s
? argv.s.toString()
: standardSchema;
options.connectionOptions.instanceName = argv.i || undefined;
options.connectionOptions.ssl = argv.ssl;
options.connectionOptions.user = argv.u || standardUser;
let skipTables = argv.skipTables.split(",");