From aa68b4f9644ed83a3e0687e9c857f5a174170fe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Dvo=C5=99=C3=A1k?= Date: Sun, 29 Oct 2023 21:48:03 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20driver=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 ++- src/index.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1bd2ec7..7915372 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,8 @@ "husky": "8.0.3", "jest": "^29.7.0", "knex": "^3.0.1", - "prettier": "^2.6.2" + "prettier": "^2.6.2", + "node-firebird-driver-native": "^3.1.0" }, "peerDependencies": { "knex": ">=0.95.15" diff --git a/src/index.js b/src/index.js index ee5be0c..561b992 100644 --- a/src/index.js +++ b/src/index.js @@ -34,7 +34,7 @@ class Client_Firebird extends Client { } _driver() { - return require("node-firebird-driver-native"); + return require(this.driverName); } schemaCompiler() { @@ -249,7 +249,7 @@ class Client_Firebird extends Client { Object.assign(Client_Firebird.prototype, { dialect: "firebird", - driverName: "node-firebird", + driverName: "node-firebird-driver-native", Firebird_Formatter, });