@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.
@@ -1672,6 +1672,8 @@ var createSqliteDriver = (options = {}) => {
1672
1672
  const initDb = async () => {
1673
1673
  if (!db) {
1674
1674
  db = await loadDatabase(dbPath);
1675
+ db.exec("PRAGMA journal_mode = WAL");
1676
+ db.exec("PRAGMA busy_timeout = 5000");
1675
1677
  db.exec(
1676
1678
  `CREATE TABLE IF NOT EXISTS ${tableName} (key TEXT PRIMARY KEY, value TEXT NOT NULL)`
1677
1679
  );
@@ -1814,6 +1816,8 @@ var createSqliteUsageTrackingDriver = (options = {}) => {
1814
1816
  const initDb = async () => {
1815
1817
  if (!db) {
1816
1818
  db = await loadDatabase2(dbPath);
1819
+ db.exec("PRAGMA journal_mode = WAL");
1820
+ db.exec("PRAGMA busy_timeout = 5000");
1817
1821
  db.exec(`
1818
1822
  CREATE TABLE IF NOT EXISTS ${tableName} (
1819
1823
  id TEXT PRIMARY KEY,