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