luasql/tests/sqlite.lua

21 lines
776 B
Lua
Raw Normal View History

2006-01-10 18:22:46 +00:00
---------------------------------------------------------------------
-- SQLite specific tests and configurations.
2006-05-31 21:43:33 +00:00
-- $Id: sqlite.lua,v 1.2 2006/05/31 21:43:33 carregal Exp $
2006-01-10 18:22:46 +00:00
---------------------------------------------------------------------
---------------------------------------------------------------------
-- Produces a SQL statement which completely erases a table.
-- @param table_name String with the name of the table.
-- @return String with SQL statement.
---------------------------------------------------------------------
function sql_erase_table (table_name)
return string.format ("delete from %s where 1", table_name)
end
2006-05-31 21:43:33 +00:00
function checkUnknownDatabase(ENV)
-- skip this test
end
table.insert (CONN_METHODS, "escape")
table.insert (EXTENSIONS, escape)