dualface/quick-cocos2d-x — pull request #36 by aoxu (2013-05-04 07:32:24+00:00)
Title: Add lsqlite3 into lua extensions

Add lua sqlite 3 support into lua extensions.

# details
* [LuaSQLite3](http://lua.sqlite.org/index.cgi/doc/tip/doc/lsqlite3.wiki) version 0.9.1 stable release
lsqlite3 is a lua module of sqlite3. It requires sqlite3 library.
* [SQLite](http://www.sqlite.org/releaselog/3_7_16_2.html) version 3.7.16.2 stable release

# testing code
````lua
local sqlite3 = require("lsqlite3")

local db = sqlite3.open_memory()

db:exec[[
CREATE TABLE test (id INTEGER PRIMARY KEY, content);

INSERT INTO test VALUES (NULL, 'Hello World');
INSERT INTO test VALUES (NULL, 'Hello Lua');
INSERT INTO test VALUES (NULL, 'Hello Sqlite3')
]]

for row in db:nrows("SELECT * FROM test") do
print(row.id, row.content)
end
````