🤖 Merge PR #49630 mssql: make database of config optional by @badeball

The property is inherently optional and has to be omitted when eg.
working with mssql when a database has yet to be created.
This commit is contained in:
Jonas Amundsen
2020-12-12 13:24:36 +01:00
committed by GitHub
parent 76d85d13cf
commit 6f95e6ba98
2 changed files with 3 additions and 1 deletions

View File

@@ -194,7 +194,7 @@ export interface config {
server: string;
port?: number;
domain?: string;
database: string;
database?: string;
connectionTimeout?: number;
requestTimeout?: number;
stream?: boolean;

View File

@@ -24,6 +24,8 @@ var config: sql.config = {
}
}
var minimalConfig: sql.config = { server: 'ip' };
var connectionStringTest: sql.ConnectionPool = new sql.ConnectionPool("connectionstring", (err) => {
if (err) {
return err;