if GetAssetSize("backup.sqlite3") == nil then Write("no backup exists. call sql-backupstore.lua first.") return end backup = sqlite3.open_memory() buffer = LoadAsset("backup.sqlite3") backup:deserialize(buffer) -- See .init.lua for CREATE TABLE setup. for row in backup:nrows("SELECT * FROM test") do Write(row.id.." "..row.content.."
") end