Add mssql trustServerCertificate option. (#4500)

This commit is contained in:
Dave de Jong 2021-07-21 00:29:53 +02:00 committed by GitHub
parent c9a5548865
commit 8619d80336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,7 @@ class Client_MSSQL extends Client {
useColumnNames: false,
tdsVersion: settings.options.tdsVersion || '7_4',
appName: settings.options.appName || 'knex',
trustServerCertificate: false,
...settings.options,
},
};

1
types/index.d.ts vendored
View File

@ -2174,6 +2174,7 @@ interface MsSqlConnectionConfigBase {
maxRetriesOnTransientErrors?: number;
multiSubnetFailover?: boolean;
packetSize?: number;
trustServerCertificate?: boolean;
}>;
pool?: Readonly<{
min?: number;