node-sqlcipher icon indicating copy to clipboard operation
node-sqlcipher copied to clipboard

Unable to set PRAGMA busy_timeout

Open ajmasia opened this issue 3 years ago • 0 comments

I am experiencing some errors of type SQLITE_BUSY: database is locked and I want to test if configuring thePRAGMA busy_timeout solves this problem. I can't configure it, any idea?

 let db = new sqlite3.Database(dbName);
 db.run('PRAGMA busy_timeout = 6000');
 db.configure("busyTimeout", 6000);

Thanks!

ajmasia avatar May 22 '21 20:05 ajmasia