package sqlite3_utils
Module Sqlite3_utilsSource
Exception raised by most of the functions below when a Sqlite failure occurs, with the corresponding error code.
Exception raised when the declared Ty.t does not match the actual result returned by Sqlite.
Source
val with_db :
?mode:[ `NO_CREATE | `READONLY ] ->
?mutex:[ `FULL | `NO ] ->
?cache:[ `PRIVATE | `SHARED ] ->
?vfs:string ->
?timeout:int ->
string ->
(t -> 'a) ->
'aTemporarily open a DB connection. Parameters follow Sqlite3.db_open.
Values representing types to pass to a statement, or to extract from a row
Locally make a statement out of the given string, then cleanup when f returns.
Source
val exec_raw_args_exn :
t ->
string ->
Sqlite3.Data.t array ->
f:(Data.t array Cursor.t -> 'b) ->
'b