sqlite.table_exists(dbname,tablename)

Check if a table exists.

Example
if not sqlite.table_exists('testdb', 'foo') then error('Table foo does not exist!')

end