The Core4 Lua implementation provides support for SQLite3 databases.
To open a database file, use sql.open(). The returned handle can be used directly to run SQL statements on it.
To work with multiple statements on the same database, e.g. for copying data between tables, further query handles may be obtained on that database with sql:newquery().
A lightweight settings API for storing key/value pairs is provided by calling sql:setValue() and sql:getValue().