Hi!
We are open sourcing a small library we use for saving data on sqlite.
Without further ado, here’s the link.
https://github.com/jeduan/corona-dbconfig
We’ve used this class on ~7 games and has worked awesome for us. We use it as a key-value store.
The API is simple. When called with 2 arguments, it saves the value. When called with 1 argument, it retrieves the value.
local dbconfig = require('vendor.dbconfig.dbconfig') dbconfig('isFirstRun', 'true') dbconfig('userName', 'John') local isFirstRun = dbconfig('isFirstRun') local userName = dbconfig('userName')
We hope it is useful for someone!
Also, check it out on Corona Code Exchange