SkhcDb.DatabaseSourcePrimitive operations on the database.
type of a database handler.
val open' :
?mode:[ `NO_CREATE | `READONLY ] ->
?uri:bool ->
?memory:bool ->
?mutex:[ `FULL | `NO ] ->
?cache:[ `PRIVATE | `SHARED ] ->
?vfs:string ->
string ->
topen' filename opens the database at filename and returns a database handler.
see Sqlite3.db_open for details of all parameters.
create_tables db creates the tables used by shakuhachi in db.
transaction db f runs f inside a transaction block. If f returns Result.Ok, modifications applied to db are commited. Otherwise, modifications are rollbacked.
errmsg db returns the error message of the last operation on database db.