Copyright © 2011 - 2022 Maas-Maarten Zeeman
Authors: Maas-Maarten Zeeman (mmzeeman@xs4all.nl).
cell() = undefined | integer() | float() | binary()
error() = {error, extended_errcode()}
error_info() = #{errcode := integer(), extended_errcode := extended_errcode(), errstr := unicode:unicode_binary(), errmsg := unicode:unicode_binary(), error_offset := integer()}
esqlite3_backup_ref() = reference()
Reference to a online backup object. See https://sqlite.org/c3ref/backup.html for more details.
esqlite3_ref() = reference()
Reference to a database connection handle. See https://sqlite.org/c3ref/sqlite3.html for more details.
esqlite3_stmt_ref() = reference()
Reference to a prepared statement object. See https://sqlite.org/c3ref/stmt.html for more details.
extended_errcode() = integer()
Extended sqlite3 error code. See https://sqlite.org/rescode.html for more details.
row() = [cell()]
rowid() = integer()
sql() = iodata()
Make sure the iodata contains utf-8 encoded data.
open/1 | Open the specified sqlite3 database. |
close/1 | Close the connection. |
error_info/1 | Get an error messages for the last occurred error. |
set_update_hook/2 | Set an update hook. |
exec/2 | Execute a sql statement. |
prepare/3 | Compile a sql statement. |
bind_int/3 | Bind an integer to a position in a prepared statement. |
bind_int64/3 | Bind a 64 bit integer to a position in a prepared statement. |
bind_double/3 | Bind an double/float to a position in a prepared statement. |
bind_text/3 | Bind a utf-8 string to a position in a prepared statement. |
bind_blob/3 | Bind a blob to a position in a prepared statement. |
bind_null/2 | Bind a null to a position in a prepared statement. |
bind_parameter_index/2 | |
step/1 | |
reset/1 | |
column_names/1 | Retrieve the column names of the prepared statement. |
column_decltypes/1 | Retrieve the declared datatypes of all columns. |
backup_init/4 | Initialize a backup procedure of a database. |
backup_remaining/1 | |
backup_pagecount/1 | |
backup_step/2 | |
backup_finish/1 | |
interrupt/1 | Interrupt all active queries. |
last_insert_rowid/1 | Get the last insert rowid. |
changes/1 | Get number of changes insert, delete of the most recent completed INSERT, DELETE or UPDATE statement. |
get_autocommit/1 | Get autocommit. |
memory_stats/1 | Get memory statistics. |
status/2 | Get sqlite status information. |
Open the specified sqlite3 database. It is possible to use sqlite's uri filenames to open files. See: https://sqlite.org/uri.html for more information.
Close the connection.
Get an error messages for the last occurred error.
Set an update hook
Execute a sql statement
prepare(Connection, Sql, PrepareFlags) -> PrepareResult
Compile a sql statement.
bind_int(Statement, Index, Value) -> Result
Bind an integer to a position in a prepared statement.
bind_int64(Statement, Index, Value) -> Result
Bind a 64 bit integer to a position in a prepared statement.
bind_double(Statement, Index, Value) -> Result
Bind an double/float to a position in a prepared statement.
bind_text(Statement, Index, Value) -> Result
Bind a utf-8 string to a position in a prepared statement.
bind_blob(Statement, Index, Value) -> Result
Bind a blob to a position in a prepared statement.
bind_null(Statement, Index) -> Result
Bind a null to a position in a prepared statement.
bind_parameter_index(Statement, ParameterName) -> Result
Retrieve the column names of the prepared statement
column_decltypes(Statement) -> Types
Retrieve the declared datatypes of all columns.
backup_init(Destination, DestinationName, Source, SourceName) -> InitResult
Initialize a backup procedure of a database.
backup_step(Backup, NPage) -> Result
interrupt(Db::esqlite3_ref()) -> ok
Interrupt all active queries.
last_insert_rowid(Connection::esqlite3_ref()) -> rowid()
Get the last insert rowid.
changes(Connection::esqlite3_ref()) -> integer()
Get number of changes insert, delete of the most recent completed INSERT, DELETE or UPDATE statement.
get_autocommit(Connection::esqlite3_ref()) -> true | false
Get autocommit
memory_stats(HighwaterResetFlag) -> Stats
Get memory statistics
status(Op, HighwaterResetFlag) -> Stats
Get sqlite status information.
MEMORY_USED 0
PAGECACHE_USED 1
PAGECACHE_OVERFLOW 2
MALLOC_SIZE 5
PARSER_STACK 6
PAGECACHE_SIZE 7
MALLOC_COUNT 8
Generated by EDoc