LibsqlError: SQLITE_BUSY: database is locked
I am getting a
This error occurs after refactoring my driver from
In both the working better-sqlite3 driver and non-working turso driver, we have this function called from within a
LibsqlError: SQLITE_BUSY: database is locked error on my insert function here with LibSQL/Turso as my SQLite driverThis error occurs after refactoring my driver from
better-sqlite3 to LibSQL / Turso. My application ran without the error with the relatively same code here. The only difference two differences with the LibSQL / Turso driver is that we await to get the db and .run() the query statement.In both the working better-sqlite3 driver and non-working turso driver, we have this function called from within a
db.transaction(). Then pullForChanges calls the function with await putClientGroup(nextClientGroupRecord)