From 8b2c119ee0891e119a2cfcc4feacc500ff050dfe Mon Sep 17 00:00:00 2001 From: Patryk Jasinski Date: Mon, 10 Oct 2022 09:40:48 +0200 Subject: [PATCH] Add an option to specify database --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index 029568c..bde15b7 100644 --- a/src/index.js +++ b/src/index.js @@ -21,6 +21,7 @@ let config = { }, options: { port: parseInt(process.env["PORT"]) || 1433, + database: process.env["DATABASE"] || "master", encrypt: process.env["ENCRYPT"] !== undefined ? process.env["ENCRYPT"] === "true" : true, trustServerCertificate: process.env["TRUST_SERVER_CERTIFICATE"] !== undefined ? process.env["TRUST_SERVER_CERTIFICATE"] === "true" : true, rowCollectionOnRequestCompletion: true,