@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.
@@ -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,