lua:db:exec
This is an old revision of the document!
db.exec( statement )
Execute sql statement.
If statement is a query, return value is a table with the query results.
Check if a table exists:
if #db.exec[[SELECT name FROM sqlite_master WHERE type='table' AND name='grraka_animals']] <1 then -- table doesn't exist, do something here end
lua/db/exec.1454907015.txt.gz · Last modified: 2016/02/08 04:50 by vodur