File: sqlite3.lua

package info (click to toggle)
lua-sql 2.6.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,032 kB
  • sloc: ansic: 4,172; java: 123; makefile: 51; xml: 38
file content (25 lines) | stat: -rw-r--r-- 811 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---------------------------------------------------------------------
-- SQLite specific tests and configurations.
---------------------------------------------------------------------

DROP_TABLE_RETURN_VALUE = 1

---------------------------------------------------------------------
-- 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

function checkUnknownDatabase(ENV)
	-- skip this test
end

function finalization ()
	os.execute ("rm -rf "..datasource)
end

table.insert (CONN_METHODS, "escape")
table.insert (EXTENSIONS, escape)