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