Copyright © 2011 - 2022 Maas-Maarten Zeeman
Authors: Maas-Maarten Zeeman (mmzeeman@xs4all.nl).
raw_backup() = reference()
raw_connection() = reference()
raw_statement() = reference()
sql() = iodata()
start/0 | Start a low level thread which will can handle sqlite3 calls. |
open/4 | Open the specified sqlite3 database. |
set_update_hook/4 | |
exec/4 | Exec the query. |
changes/3 | Get the number of affected rows of last statement. |
prepare/4 | . |
multi_step/5 | . |
reset/4 | . |
finalize/4 | . |
bind/5 | Bind parameters to a prepared statement. |
column_names/4 | Retrieve the column names of the prepared statement. |
column_types/4 | Retrieve the column types of the prepared statement. |
backup_init/6 | Initialize a backup procedure of a database. |
backup_step/5 | Do a backup step. |
backup_remaining/4 | Get the amount of remaining pages which need to be backed up. |
backup_pagecount/4 | Get the total number of pages which need to be backed up. |
backup_finish/4 | Finish the backup. |
interrupt/1 | Interrupt all active queries. |
close/3 | Close the connection. |
insert/4 | Insert record. |
last_insert_rowid/3 | Get the last insert rowid. |
get_autocommit/3 | Get automcommit. |
start() -> {ok, raw_connection()} | {error, term()}
Start a low level thread which will can handle sqlite3 calls.
open(Db::raw_connection(), Ref::reference(), Dest::pid(), Filename::string()) -> ok | {error, term()}
Open the specified sqlite3 database.
Sends an asynchronous open command over the connection and returns ok immediately. When the database is openedset_update_hook(Db::raw_connection(), Ref::reference(), Dest::pid(), Pid::pid()) -> ok | {error, term()}
exec(Db::raw_connection(), Ref::reference(), Dest::pid(), Sql::sql()) -> ok | {error, term()}
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()}changes(Db::raw_connection(), Ref::reference(), Dest::pid()) -> ok | {error, term()}
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()}prepare(Db::raw_connection(), Ref::reference(), Dest::pid(), Sql::sql()) -> ok | {error, term()}
multi_step(Db::raw_connection(), Stmt::raw_statement(), Chunk_Size::pos_integer(), Ref::reference(), Dest::pid()) -> ok | {error, term()}
reset(Db::raw_connection(), Stmt::raw_statement(), Ref::reference(), Dest::pid()) -> ok | {error, term()}
finalize(Db::raw_connection(), Stmt::raw_statement(), Ref::reference(), Dest::pid()) -> ok | {error, term()}
bind(Db::raw_connection(), Stmt::raw_statement(), Ref::reference(), Dest::pid(), Args::[any()]) -> ok | {error, term()}
Bind parameters to a prepared statement.
column_names(Db::raw_connection(), Stmt::raw_statement(), Ref::reference(), Dest::pid()) -> ok | {error, term()}
Retrieve the column names of the prepared statement
column_types(Db::raw_connection(), Stmt::raw_statement(), Ref::reference(), Dest::pid()) -> ok | {error, term()}
Retrieve the column types of the prepared statement
backup_init(DestDb::raw_connection(), DestName::string(), SourceDb::raw_connection(), SourceName::string(), Ref::reference(), Dest::pid()) -> ok | {error, term()}
Initialize a backup procedure of a database.
backup_step(Db::raw_connection(), Backup::raw_backup(), NPages::integer(), Ref::reference(), Dest::pid()) -> ok | {error, term()}
Do a backup step.
backup_remaining(Db::raw_connection(), Backup::raw_backup(), Ref::reference(), Dest::pid()) -> ok | {error, term()}
Get the amount of remaining pages which need to be backed up.
backup_pagecount(Db::raw_connection(), Backup::raw_backup(), Ref::reference(), Dest::pid()) -> ok | {error, term()}
Get the total number of pages which need to be backed up.
backup_finish(Db::raw_connection(), Backup::raw_backup(), Ref::reference(), Dest::pid()) -> ok | {error, term()}
Finish the backup.
interrupt(Db::raw_connection()) -> ok
Interrupt all active queries.
close(Db::raw_connection(), Ref::reference(), Dest::pid()) -> ok | {error, term()}
Close the connection.
insert(Db::raw_connection(), Ref::reference(), Dest::pid(), Sql::sql()) -> ok | {error, term()}
Insert record
last_insert_rowid(Db::raw_connection(), Ref::reference(), Dest::pid()) -> ok | {error, term()}
Get the last insert rowid.
get_autocommit(Db::raw_connection(), Ref::reference(), Dest::pid()) -> ok | {error, term()}
Get automcommit
Generated by EDoc