sqlite v1.0.1 Sqlite
Use a Sqlite3 database in Elixir and Erlang!
Link to this section Summary
Functions
Bind values to prepared statements
Bind values to prepared statements
Return the number of affected rows of last statement
Return the number of affected rows of last statement
Close the database connection
Close the database connection
Return the column names of the prepared statement
Return the column names of the prepared statement
Return the column types of the prepared statement
Return the column types of the prepared statement
Enable the database to load extensions
Enable the database to load extensions
Execute sql statement, returns the number of affected rows
Execute SQL statement and bind params to it
Execute SQL statement and bind params to it
Return the results after enumerating an entire statement
Return the results of stepping into a statement
Apply a function over the results of SQL query
Insert records, returns the last rowid
Insert records, returns the last rowid
Enumerate sql
applying f
to each result
Opens a sqlite3 database mentioned in filename
Opens a sqlite3 database mentioned in filename with flags
Opens a sqlite3 database with a flags tuple and a timeout
Prepare a statement
Prepare a statement
Execute a sql statement, returns a list with tuples
Execute a sql statement, returns a list with tuples
Reset the prepared statement back to its initial state
Reset the prepared statement back to its initial state
Step into a prepared statement
Step into a prepared statement
Link to this section Types
Connection record.
File to open.
prepared_statement() :: {:statement, Sqlite3Nif.statement(), connection()}
Statement record.
SQL binary or charlist.
Link to this section Functions
bind(prepared_statement(), Sqlite3Nif.bind_args()) :: :ok | error_tup2()
Bind values to prepared statements
bind(prepared_statement(), Sqlite3Nif.bind_args(), timeout()) :: :ok | error_tup2()
Bind values to prepared statements
Return the number of affected rows of last statement.
changes(connection(), timeout()) :: {:ok, integer()} | error_tup2()
Return the number of affected rows of last statement.
Close the database connection.
close(connection(), timeout()) :: :ok | error_tup2()
Close the database connection.
column_names(prepared_statement()) :: tuple() | error_tup2()
Return the column names of the prepared statement.
column_names(prepared_statement(), timeout()) :: tuple() | error_tup2()
Return the column names of the prepared statement.
column_types(prepared_statement()) :: tuple() | error_tup2()
Return the column types of the prepared statement.
column_types(prepared_statement(), timeout()) :: tuple() | error_tup2()
Return the column types of the prepared statement.
enable_load_extension(connection()) :: :ok | error_tup2()
Enable the database to load extensions
enable_load_extension(connection(), timeout()) :: :ok | error_tup2()
Enable the database to load extensions
Execute sql statement, returns the number of affected rows.
exec(sql(), connection(), timeout()) :: :ok | error_tup2()
exec(sql(), Sqlite3Nif.bind_args(), connection()) :: :ok | error_tup2()
Execute SQL statement and bind params to it.
exec(sql(), Sqlite3Nif.bind_args(), connection(), timeout()) :: :ok | error_tup2()
Execute SQL statement and bind params to it.
Return the results after enumerating an entire statement
.
Return the results of stepping into a statement
.
Apply a function over the results of SQL query.
insert(sql(), connection()) :: {:ok, integer()} | error_tup2()
Insert records, returns the last rowid.
insert(sql(), connection(), timeout()) :: {:ok, integer()} | error_tup2()
Insert records, returns the last rowid.
Enumerate sql
applying f
to each result.
Opens a sqlite3 database mentioned in filename.
Opens a sqlite3 database mentioned in filename with flags.
open(filename(), tuple(), timeout()) :: {:ok, connection()} | error_tup2()
Opens a sqlite3 database with a flags tuple and a timeout.
prepare(sql(), connection()) :: {:ok, prepared_statement()} | error_tup2()
Prepare a statement
prepare(sql(), connection(), timeout()) :: {:ok, prepared_statement()} | error_tup2()
Prepare a statement
Execute a sql statement, returns a list with tuples.
Execute a sql statement, returns a list with tuples.
Reset the prepared statement back to its initial state.
reset(prepared_statement(), timeout()) :: :ok | error_tup2()
Reset the prepared statement back to its initial state.
Step into a prepared statement.
step(prepared_statement(), timeout()) :: :"$busy" | :"$done" | {:row, any()} | error_tup2()
Step into a prepared statement.