moai/moai-dev — pull request #418 by sgeos (2012-07-13 01:13:23+00:00)
Title: Lua-Sqlite3 API and SQL Samples

The Lua-Sqlite3 API has been added to Moai and the OSX, iOS and Android hosts. I am not in a position to update the other hosts. I think this API is easier to work with than Kepler Project LuaSQL front end.
http://www.nessie.de/mroth/lua-sqlite3/index.html

The API has a Lua front end that lives in two files (libluasqlite3_loader.lua and sqlite3.lua). These files were placed in src/lua-modules/moai/. Perhaps they want to live some place like src/lua-modules/3rdparty/? package.path was modified on the iOS and Android hosts so require finds the modules.

The Lua-Sqlite3 initialization code is not wrapped in macros that allow it to be disabled. Perhaps it should be?

An SQL sample has been added for each of the Lua-Sqlite3 and Kepler Project LuaSQL APIs.

AKURunString() has been exposed to the Android host. It was not ultimately used, but removing the code seems silly.