@routstr/sdk 0.3.11 → 0.3.12
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/README.md +19 -6
- package/dist/bun.js +4 -0
- package/dist/bun.js.map +1 -1
- package/dist/bun.mjs +4 -0
- package/dist/bun.mjs.map +1 -1
- package/dist/node.js +4 -0
- package/dist/node.js.map +1 -1
- package/dist/node.mjs +4 -0
- package/dist/node.mjs.map +1 -1
- package/dist/storage/bun.js +4 -0
- package/dist/storage/bun.js.map +1 -1
- package/dist/storage/bun.mjs +4 -0
- package/dist/storage/bun.mjs.map +1 -1
- package/dist/storage/node.js +4 -0
- package/dist/storage/node.js.map +1 -1
- package/dist/storage/node.mjs +4 -0
- package/dist/storage/node.mjs.map +1 -1
- package/package.json +7 -3
package/dist/bun.mjs
CHANGED
|
@@ -6419,6 +6419,8 @@ async function createBunSqliteDriver(dbPath, options) {
|
|
|
6419
6419
|
const logger = (options?.logger ?? consoleLogger).child("BunSqliteDriver");
|
|
6420
6420
|
const SQLite = (await import('bun:sqlite')).default;
|
|
6421
6421
|
const db = new SQLite(dbPath);
|
|
6422
|
+
db.run("PRAGMA journal_mode = WAL");
|
|
6423
|
+
db.run("PRAGMA busy_timeout = 5000");
|
|
6422
6424
|
db.run(`
|
|
6423
6425
|
CREATE TABLE IF NOT EXISTS sdk_storage (
|
|
6424
6426
|
key TEXT PRIMARY KEY,
|
|
@@ -6531,6 +6533,8 @@ var createBunSqliteUsageTrackingDriver = (options = {}) => {
|
|
|
6531
6533
|
);
|
|
6532
6534
|
}
|
|
6533
6535
|
const db = new SQLiteDatabase(dbPath);
|
|
6536
|
+
db.run("PRAGMA journal_mode = WAL");
|
|
6537
|
+
db.run("PRAGMA busy_timeout = 5000");
|
|
6534
6538
|
db.run(`
|
|
6535
6539
|
CREATE TABLE IF NOT EXISTS ${tableName} (
|
|
6536
6540
|
id TEXT PRIMARY KEY,
|