blob: 28f5c41c9a97fc125ab06039fd331735dd879859 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001OPTIONAL
2SYNOPSIS
Zesstrad59c3892019-11-28 20:53:39 +01003 mixed * sl_exec(string statement, ...)
MG Mud User88f12472016-06-24 23:31:02 +02004
Zesstra715ec202025-07-09 22:18:31 +02005DESCRIPTION
6 Executes the SQL statement <statement> for the current
7 SQLite database. The SQL statement may contain wildcards like
8 '?' and '?nnn', where 'nnn' is an integer. These wildcards
9 can be given as further parameters to sl_exec. With '?nnn'
10 the number of a specific parameter can be given, the first
11 parameter has number 1.
MG Mud User88f12472016-06-24 23:31:02 +020012
Zesstra715ec202025-07-09 22:18:31 +020013 If the statement returns data, sl_exec returns an array
14 with each row (which is itself an array of columns) as
15 an element.
MG Mud User88f12472016-06-24 23:31:02 +020016
Zesstra715ec202025-07-09 22:18:31 +020017 Pragma statements raise a privilege_violation ("sqlite_pragma",
18 ob, name, value). If the privilege is denied, an error is
19 thrown.
Zesstrad59c3892019-11-28 20:53:39 +010020
Zesstra715ec202025-07-09 22:18:31 +020021 The function is available only if the driver is compiled with
22 SQLite support. In that case, __SQLITE__ is defined.
MG Mud User88f12472016-06-24 23:31:02 +020023
Zesstra715ec202025-07-09 22:18:31 +020024HISTORY
25 Added in LDMud 3.3.713.
MG Mud User88f12472016-06-24 23:31:02 +020026
Zesstra715ec202025-07-09 22:18:31 +020027SEE ALSO
MG Mud User88f12472016-06-24 23:31:02 +020028 sl_open(E), sl_insert_id(E), sl_close(E)