@prisma/adapter-better-sqlite3 6.7.0-dev.9 → 6.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -609,7 +609,8 @@ var PrismaBetterSQLite3AdapterFactory = class {
|
|
|
609
609
|
};
|
|
610
610
|
function createBetterSQLite3Client(input) {
|
|
611
611
|
const { url, ...config } = input;
|
|
612
|
-
const
|
|
612
|
+
const dbPath = url.replace(/^file:/, "");
|
|
613
|
+
const db = new import_better_sqlite3.default(dbPath, config);
|
|
613
614
|
db.defaultSafeIntegers(true);
|
|
614
615
|
return db;
|
|
615
616
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -573,7 +573,8 @@ var PrismaBetterSQLite3AdapterFactory = class {
|
|
|
573
573
|
};
|
|
574
574
|
function createBetterSQLite3Client(input) {
|
|
575
575
|
const { url, ...config } = input;
|
|
576
|
-
const
|
|
576
|
+
const dbPath = url.replace(/^file:/, "");
|
|
577
|
+
const db = new Database(dbPath, config);
|
|
577
578
|
db.defaultSafeIntegers(true);
|
|
578
579
|
return db;
|
|
579
580
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/adapter-better-sqlite3",
|
|
3
|
-
"version": "6.7.0
|
|
3
|
+
"version": "6.7.0",
|
|
4
4
|
"description": "Prisma's driver adapter for better-sqlite3, a fast SQLite3 driver for JavaScript runtimes",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"license": "Apache-2.0",
|
|
32
32
|
"sideEffects": false,
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@prisma/driver-adapter-utils": "6.7.0
|
|
34
|
+
"@prisma/driver-adapter-utils": "6.7.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/better-sqlite3": "7.6.12",
|