connects to the database
disconnects from the database
macro that opens the database and ensures that it is properly closed after the code is run
macro is used to execute code within transaction.
This clause will bind vars (a list of variables) to the values of the columns of query.
(for (vars) in-sqlite-query sql on-database db &optional with-parameters (&rest parameters))
Positional and named parameters in queries are supported. Positional parameters are denoted by question mark in SQL code, and named parameters are denoted by prefixing color (:), at sign (@) or dollar sign ($) before parameter name.
Additionally, it is possible to use the prepared statements API of sqlite.
Create the prepared statement with prepare-statement
, bind its parameters
with bind-parameter
, step through it with step-statement
, retrieve the
results with statement-column-value
, and finally reset it to be used again
with reset-statement
or dispose of it with finalize-statement
.
Following types are supported: