Copyright © 2011 - 2017 Maas-Maarten Zeeman
Authors: Maas-Maarten Zeeman (mmzeeman@xs4all.nl).
bind/5 | Bind parameters to a prepared statement. |
changes/3 | Get the number of affected rows of last statement. |
close/3 | Close the connection. |
column_names/4 | Retrieve the column names of the prepared statement. |
column_types/4 | Retrieve the column types of the prepared statement. |
exec/4 | Exec the query. |
finalize/4 | . |
get_autocommit/3 | Get automcommit. |
insert/4 | Insert record. |
key/4 | Give the encryption key for a specified sqlite3 database. |
multi_step/5 | . |
open/4 | Open the specified sqlite3 database. |
prepare/4 | . |
rekey/4 | Change the encryption key for a specified sqlite3 database. |
reset/4 | . |
set_update_hook/4 | |
start/0 | Start a low level thread which will can handle sqlite3 calls. |
bind(Db::connection(), Stmt::statement(), Ref::reference(), Dest::pid(), Args::[]) -> ok | {error, message()}
Bind parameters to a prepared statement.
changes(Db, Ref, Dest) -> any()
Get the number of affected rows of last statement
When the statement is executed Dest will receive message {Ref, answer()} with answer() integer | {error, reason()}close(Db::connection(), Ref::reference(), Dest::pid()) -> ok | {error, message()}
Close the connection.
column_names(Db::connection(), Stmt::statement(), Ref::reference(), Dest::pid()) -> {ok, tuple()} | {error, message()}
Retrieve the column names of the prepared statement
column_types(Db::connection(), Stmt::statement(), Ref::reference(), Dest::pid()) -> {ok, tuple()} | {error, message()}
Retrieve the column types of the prepared statement
exec(Db::connection(), Ref::reference(), Dest::pid(), Sql::string()) -> ok | {error, message()}
Exec the query.
Sends an asynchronous exec command over the connection and returns ok immediately.
When the statement is executed Dest will receive message {Ref, answer()} with answer() integer | {error, reason()}finalize(Db::connection(), Stmt::statement(), Ref::reference(), Dest::pid()) -> ok | {error, message()}
get_autocommit(Db::connection(), Ref::reference(), Dest::pid()) -> true | false
Get automcommit
insert(Db::connection(), Ref::reference(), Dest::pid(), Sql::string()) -> {ok, integer()} | {error, message()}
Insert record
key(Db::connection(), Ref::reference(), Dest::pid(), Key::string()) -> ok | {error, message()}
Give the encryption key for a specified sqlite3 database.
Note that there will be no error if the key is wrong -- try accessing the database and look for a NOTADB error to check for that!multi_step(Db::connection(), Stmt::statement(), Chunk_Size::pos_integer(), Ref::reference(), Dest::pid()) -> {term(), [tuple]} | {error, message()}
open(Db::connection(), Ref::reference(), Dest::pid(), Filename::string()) -> ok | {error, message()}
Open the specified sqlite3 database.
Sends an asynchronous open command over the connection and returns ok immediately. When the database is openedprepare(Db::connection(), Ref::reference(), Dest::pid(), Sql::string()) -> ok | {error, message()}
rekey(Db::connection(), Ref::reference(), Dest::pid(), Key::string()) -> ok | {error, message()}
Change the encryption key for a specified sqlite3 database.
Note that this will only work once the database is decrypted, i.e. key/4 has been calledreset(Db::connection(), Stmt::statement(), Ref::reference(), Dest::pid()) -> ok | {error, message()}
set_update_hook(Db, Ref, Dest, Pid) -> any()
start() -> {ok, connection()} | {error, msg()}
Start a low level thread which will can handle sqlite3 calls.
Generated by EDoc