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