Skip to content

Commit 6a4bd79

Browse files
authored
Merge pull request #1783 from luisvinicius09/master
Add --tds-version flag to CLI
2 parents b7f486d + b760d4f commit 6a4bd79

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/mssql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ async function resolveConfig (opts, cfgFile) {
3030
const cfg = Object.entries({
3131
options: {
3232
encrypt: opts.encrypt,
33-
trustServerCertificate: opts.trustServerCertificate
33+
trustServerCertificate: opts.trustServerCertificate,
34+
tdsVersion: opts.tdsVersion
3435
},
3536
user: opts.user,
3637
password: opts.password,
@@ -79,6 +80,7 @@ program
7980
.option('--password <password>', 'Password for the database connection')
8081
.option('--server <server>', 'Server for the database connection')
8182
.option('--database <database>', 'Database for the database connection')
83+
.option('--tds-version <version>', 'TDS version to use for the database connection')
8284
.option('--port <port>', 'Port for the database connection', parseInt)
8385
.option('--encrypt', 'Use the encrypt option for this connection', false)
8486
.option('--trust-server-certificate', 'Trust the server certificate for this connection', false)

0 commit comments

Comments
 (0)