@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/dist/node.mjs CHANGED
@@ -6446,6 +6446,8 @@ var createSqliteDriver = (options = {}) => {
6446
6446
  const initDb = async () => {
6447
6447
  if (!db) {
6448
6448
  db = await loadDatabase(dbPath);
6449
+ db.exec("PRAGMA journal_mode = WAL");
6450
+ db.exec("PRAGMA busy_timeout = 5000");
6449
6451
  db.exec(
6450
6452
  `CREATE TABLE IF NOT EXISTS ${tableName} (key TEXT PRIMARY KEY, value TEXT NOT NULL)`
6451
6453
  );
@@ -6588,6 +6590,8 @@ var createSqliteUsageTrackingDriver = (options = {}) => {
6588
6590
  const initDb = async () => {
6589
6591
  if (!db) {
6590
6592
  db = await loadDatabase2(dbPath);
6593
+ db.exec("PRAGMA journal_mode = WAL");
6594
+ db.exec("PRAGMA busy_timeout = 5000");
6591
6595
  db.exec(`
6592
6596
  CREATE TABLE IF NOT EXISTS ${tableName} (
6593
6597
  id TEXT PRIMARY KEY,