clear-params
($pstmnt as xs:anyURI) as empty-sequence() external
Set all parameters to null inside a prepared statement. |
close-prepared
($pstmnt as xs:anyURI) as empty-sequence() external
Close and free resources associated to a prepared statement. |
commit
($conn as xs:anyURI) as xs:anyURI external
Commits all pending update operations in this SQLite database. |
connect
($db-name as xs:string) as xs:anyURI external
Connect to a SQLite database. |
connect
($db-name as xs:string, $options as object()?) as xs:anyURI external
Connect to a SQLite database with optional options. |
execute-query-prepared
($pstmnt as xs:anyURI) as object()* external
Execute a query (select command) over an already connected SQLite database object. |
execute-query
($conn as xs:anyURI, $sqlstr as xs:string) as object()* external
Executes a query (select command) over an already opened SQLite database object. |
execute-update-prepared
($pstmnt as xs:anyURI) as xs:integer external
Execute a update command over an already connected SQLite database object. |
execute-update
($conn as xs:anyURI, $sqlstr as xs:string) as xs:integer external
Executes an update command over an already opened SQLite database object. |
is-connected
($conn as xs:anyURI) as xs:boolean external
Returns whether on not the passed SQLite database object is connected. |
metadata
($pstmnt as xs:anyURI) as object() external
Returns the metadata associated to a given prepared SQLite statement. |
prepare-statement
($conn as xs:anyURI, $stmnt as xs:string) as xs:anyURI external
Compiles a prepared statement based on an already connected SQLite database and a string that defines the sql command. |
rollback
($conn as xs:anyURI) as xs:anyURI external
Rollbacks all pending update operations in this SQLite database. |
set-boolean
($pstmnt as xs:anyURI, $param-num as xs:integer, $val as xs:boolean) as empty-sequence() external
Binds a boolean to a placeholder inside a prepared statement. |
set-null
($pstmnt as xs:anyURI, $param-num as xs:integer) as empty-sequence() external
Set a null to a placeholder inside a prepared statement. |
set-numeric
($pstmnt as xs:anyURI, $param-num as xs:integer, $val as xs:anyAtomicType) as empty-sequence() external
Binds a double variable to a placeholder inside a prepared statement. |
set-string
($pstmnt as xs:anyURI, $param-num as xs:integer, $val as xs:string) as empty-sequence() external
Binds a string variable to a placeholder inside a prepared statement. |
set-value
($pstmnt as xs:anyURI, $param-num as xs:integer, $val as item()) as empty-sequence() external
Binds a value to a placeholder inside a prepared statement using the same type as the item given. |
declare %an:sequential function s:clear-params($pstmnt as xs:anyURI) as empty-sequence() external
declare %an:sequential function s:close-prepared($pstmnt as xs:anyURI) as empty-sequence() external
declare %an:sequential function s:commit($conn as xs:anyURI) as xs:anyURI external
declare %an:nondeterministic function s:connect($db-name as xs:string) as xs:anyURI external
declare %an:nondeterministic function s:connect($db-name as xs:string, $options as object()?) as xs:anyURI external
All options are true/false values. Available options are: open-read-only, open-create, open-no-mutex, and open-shared-cache. The options are of the form:
{ "open_read_only" : true, "open_create : false, ... }
declare %an:sequential function s:execute-query-prepared($pstmnt as xs:anyURI) as object()* external
declare %an:nondeterministic function s:execute-query($conn as xs:anyURI, $sqlstr as xs:string) as object()* external
declare %an:sequential function s:execute-update-prepared($pstmnt as xs:anyURI) as xs:integer external
declare %an:sequential function s:execute-update($conn as xs:anyURI, $sqlstr as xs:string) as xs:integer external
declare %an:nondeterministic function s:is-connected($conn as xs:anyURI) as xs:boolean external
declare %an:nondeterministic function s:metadata($pstmnt as xs:anyURI) as object() external
SQLite metadata is returned in the following form:
{ "columns" : [{ "name" : <column name>, "table" : <table name>, "database" : <database name>, "type" : <type name>, "collation" : [BINARY|NOCASE|RTRIM], "nullable" : [true|false], "primary key" : [true|false], "autoincrement" : [true|false] }*] }
declare %an:nondeterministic function s:prepare-statement($conn as xs:anyURI, $stmnt as xs:string) as xs:anyURI external
You can use '?' in the sql command as placeholders so you will be able to bind variables later to such places.
declare %an:sequential function s:rollback($conn as xs:anyURI) as xs:anyURI external
declare %an:sequential function s:set-boolean($pstmnt as xs:anyURI, $param-num as xs:integer, $val as xs:boolean) as empty-sequence() external
declare %an:sequential function s:set-null($pstmnt as xs:anyURI, $param-num as xs:integer) as empty-sequence() external
declare %an:sequential function s:set-numeric($pstmnt as xs:anyURI, $param-num as xs:integer, $val as xs:anyAtomicType) as empty-sequence() external
declare %an:sequential function s:set-string($pstmnt as xs:anyURI, $param-num as xs:integer, $val as xs:string) as empty-sequence() external
declare %an:sequential function s:set-value($pstmnt as xs:anyURI, $param-num as xs:integer, $val as item()) as empty-sequence() external