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