Trying to use lsqlite3 every now and then I get a "database is locked".
is there anything I can do to either 1, prevent it from locking, or 2 check and see if it is locked before continuing on?
Thanks for the help!
INI:
local SQL = require('lsqlite3')
local DB = SQL.open(cooldb)
if DB:isopen() then
local MeQ = "SELECT * FROM Dets WHERE Name = '" .. MyName .. "'"
for X in DB:urows(MeQ) do
HaveRow = true
DBDet = X.DetStat
break
end
end
is there anything I can do to either 1, prevent it from locking, or 2 check and see if it is locked before continuing on?
Thanks for the help!