Skip to content

Commit

Permalink
🐛 Fix driver name
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas2D committed Oct 29, 2023
1 parent 795c937 commit aa68b4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Client_Firebird extends Client {
}

_driver() {
return require("node-firebird-driver-native");
return require(this.driverName);
}

schemaCompiler() {
Expand Down Expand Up @@ -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,
});
Expand Down

0 comments on commit aa68b4f

Please sign in to comment.