View Source Exqlite.Sqlite3NIF (Exqlite v0.27.0)

This is the module where all of the NIF entry points reside. Calling this directly should be avoided unless you are aware of what you are doing.

Summary

Types

@type db() :: reference()
@type reason() :: :atom | String.Chars.t()
@type row() :: list()
@type statement() :: reference()

Functions

Link to this function

bind_blob(stmt, index, blob)

View Source
@spec bind_blob(statement(), non_neg_integer(), binary()) :: :ok
Link to this function

bind_float(stmt, index, float)

View Source
@spec bind_float(statement(), non_neg_integer(), float()) :: :ok
Link to this function

bind_integer(stmt, index, integer)

View Source
@spec bind_integer(statement(), non_neg_integer(), integer()) :: :ok
@spec bind_null(statement(), non_neg_integer()) :: :ok
Link to this function

bind_parameter_count(stmt)

View Source
@spec bind_parameter_count(statement()) :: integer()
Link to this function

bind_text(stmt, index, text)

View Source
@spec bind_text(statement(), non_neg_integer(), String.t()) :: :ok
@spec changes(db()) :: {:ok, integer()} | {:error, reason()}
@spec close(db()) :: :ok | {:error, reason()}
Link to this function

columns(conn, statement)

View Source
@spec columns(db(), statement()) :: {:ok, [binary()]} | {:error, reason()}
Link to this function

deserialize(conn, database, serialized)

View Source
@spec deserialize(db(), String.t(), binary()) :: :ok | {:error, reason()}
Link to this function

enable_load_extension(conn, flag)

View Source
@spec enable_load_extension(db(), integer()) :: :ok | {:error, reason()}
@spec errmsg(db() | statement()) :: String.t() | nil
@spec errstr(integer()) :: String.t()
@spec execute(db(), String.t()) :: :ok | {:error, reason()}
@spec interrupt(db()) :: :ok | {:error, reason()}
@spec last_insert_rowid(db()) :: {:ok, integer()}
Link to this function

multi_step(conn, statement, chunk_size)

View Source
@spec multi_step(db(), statement(), integer()) ::
  :busy | {:rows, [row()]} | {:done, [row()]} | {:error, reason()}
@spec open(String.t(), integer()) :: {:ok, db()} | {:error, reason()}
@spec prepare(db(), String.t()) :: {:ok, statement()} | {:error, reason()}
Link to this function

release(conn, statement)

View Source
@spec release(db(), statement()) :: :ok | {:error, reason()}
@spec reset(statement()) :: :ok
Link to this function

serialize(conn, database)

View Source
@spec serialize(db(), String.t()) :: {:ok, binary()} | {:error, reason()}
@spec set_log_hook(pid()) :: :ok | {:error, reason()}
Link to this function

set_update_hook(conn, pid)

View Source
@spec set_update_hook(db(), pid()) :: :ok | {:error, reason()}
@spec step(db(), statement()) :: :done | :busy | {:row, row()} | {:error, reason()}
Link to this function

transaction_status(conn)

View Source
@spec transaction_status(db()) :: {:ok, :idle | :transaction}