@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/storage/bun.mjs
CHANGED
|
@@ -1645,6 +1645,8 @@ async function createBunSqliteDriver(dbPath, options) {
|
|
|
1645
1645
|
const logger = (options?.logger ?? consoleLogger).child("BunSqliteDriver");
|
|
1646
1646
|
const SQLite = (await import('bun:sqlite')).default;
|
|
1647
1647
|
const db = new SQLite(dbPath);
|
|
1648
|
+
db.run("PRAGMA journal_mode = WAL");
|
|
1649
|
+
db.run("PRAGMA busy_timeout = 5000");
|
|
1648
1650
|
db.run(`
|
|
1649
1651
|
CREATE TABLE IF NOT EXISTS sdk_storage (
|
|
1650
1652
|
key TEXT PRIMARY KEY,
|
|
@@ -1757,6 +1759,8 @@ var createBunSqliteUsageTrackingDriver = (options = {}) => {
|
|
|
1757
1759
|
);
|
|
1758
1760
|
}
|
|
1759
1761
|
const db = new SQLiteDatabase(dbPath);
|
|
1762
|
+
db.run("PRAGMA journal_mode = WAL");
|
|
1763
|
+
db.run("PRAGMA busy_timeout = 5000");
|
|
1760
1764
|
db.run(`
|
|
1761
1765
|
CREATE TABLE IF NOT EXISTS ${tableName} (
|
|
1762
1766
|
id TEXT PRIMARY KEY,
|