Copyright © 2011, 2012, 2013 Maas-Maarten Zeeman
Authors: Maas-Maarten Zeeman (mmzeeman@xs4all.nl).
connection() = tuple()
sql() = iolist()
statement() = term()
| bind/2 | Bind values to prepared statements. |
| bind/3 | Bind values to prepared statements. |
| changes/1 | Return the number of affected rows of last statement. |
| changes/2 | Return the number of affected rows of last statement. |
| close/1 | Close the database. |
| close/2 | Close the database. |
| column_names/1 | Return the column names of the prepared statement. |
| column_names/2 | |
| column_types/1 | Return the column types of the prepared statement. |
| column_types/2 | |
| exec/2 | Execute Sql statement, returns the number of affected rows. |
| exec/3 | Execute. |
| fetchall/1 | |
| fetchone/1 | |
| foreach/3 | |
| insert/2 | Insert records, returns the last rowid. |
| map/3 | |
| open/1 | Opens a sqlite3 database mentioned in Filename. |
| open/2 | Open a database connection. |
| prepare/2 | Prepare a statement. |
| prepare/3 | . |
| q/2 | Execute a sql statement, returns a list with tuples. |
| q/3 | Execute statement, bind args and return a list with tuples as result. |
| reset/1 | Reset the prepared statement back to its initial state. |
| step/1 | Step. |
| step/2 | . |
bind(Stmt::prepared_statement(), Args::value_list()) -> ok | {error, error_message()}
Bind values to prepared statements
bind(Stmt::prepared_statement(), Args::[], Timeout::timeout()) -> ok | {error, error_message()}
Bind values to prepared statements
changes(Connection) -> any()
Return the number of affected rows of last statement.
changes(X1, Timeout) -> any()
Return the number of affected rows of last statement.
close(Connection::connection()) -> ok | {error, error_message()}
Close the database
close(X1::connection(), Timeout::integer()) -> ok | {error, error_message()}
Close the database
column_names(Stmt::statement()) -> {atom()}
Return the column names of the prepared statement.
column_names(Stmt::statement(), Timeout::timeout()) -> {atom()}
column_types(Stmt::statement()) -> {atom()}
Return the column types of the prepared statement.
column_types(Stmt::statement(), Timeout::timeout()) -> {atom()}
exec(Sql::iolist(), Connection::connection()) -> integer() | {error, error_message()}
Execute Sql statement, returns the number of affected rows.
exec(Sql::iolist(), Params::connection(), Timeout::timeout()) -> integer() | {error, error_message()}
Execute
fetchall(Statement::statement()) -> [tuple()] | {error, term()}
fetchone(Statement::statement()) -> tuple()
foreach(F, Sql::sql(), Connection::connection()) -> ok
insert(Sql::iolist(), Connection::connection()) -> {ok, integer()} | {error, error_message()}
Insert records, returns the last rowid.
map(F, Sql::sql(), Connection::connection()) -> [Type]
open(FileName) -> {ok, connection()} | {error, term()}
Opens a sqlite3 database mentioned in Filename.
open(Filename, Timeout::timeout()) -> {ok, connection()} | {error, term()}
Open a database connection
prepare(Sql::iolist(), Connection::connection()) -> {ok, prepared_statement()} | {error, error_message()}
Prepare a statement
prepare(Sql, X2, Timeout) -> any()
q(Sql::sql(), Connection::connection()) -> [tuple()]
Execute a sql statement, returns a list with tuples.
q(Sql::sql(), Args::list(), Connection::connection()) -> [tuple()]
Execute statement, bind args and return a list with tuples as result.
reset(Stmt::prepared_statement()) -> ok | {error, error_message()}
Reset the prepared statement back to its initial state.
step(Stmt::prepared_statement()) -> tuple()
Step
step(Stmt::prepared_statement(), Timeout::timeout()) -> tuple()
Generated by EDoc