File: PostgreSQL.lua

package info (click to toggle)
lua-dbi 0.7.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 448 kB
  • sloc: ansic: 3,946; sql: 291; makefile: 129
file content (45 lines) | stat: -rw-r--r-- 891 bytes parent folder | download | duplicates (5)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env lua


return {

	connect = {
		host = 'localhost',
		name = 'luadbi',
		user = 'luadbi',
		pass = 'testinguser-12345!!!'
	},

	encoding_test = {
		['::int'] = 12435212,
		['::int'] = 463769,
		['::int'] = 8574678,
		['::int'] = -12435212,
		['::int'] = 0,
		['::int'] = 9998212,
		['::double precision'] = 123412.5235236199951,
		['::float'] = 7653.25,
		['::float'] = 7635236,
		['::float'] = 0.00,
		['::float'] = -7653.25,
		['::float'] = 1636.94783,
		['::decimal'] = 35.34,
		['::decimal'] = -3.00,
		['::decimal'] = 35848535.24,
		['::decimal'] = 0.00,
		['::boolean'] = true,
		['::boolean'] = false,
		['::varchar'] = "string 1",
		['::varchar'] = "another_string",
		['::text'] = "really long string with some escapable chars: #&*%#;@'"
	},

	placeholder = '$1',

	have_last_insert_id = false,
	have_typecasts = true,
	have_booleans = true,
	have_rowcount = true

}