View Source Exqlite.Sqlite3NIF (Exqlite v0.22.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(conn, statement, args)

View Source
@spec bind(db(), statement(), list()) ::
  :ok | {:error, reason()} | {:error, {atom(), any()}}
@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.Chars.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 execute(db(), String.Chars.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.Chars.t(), integer()) :: {:ok, db()} | {:error, reason()}
@spec prepare(db(), String.Chars.t()) :: {:ok, statement()} | {:error, reason()}
Link to this function

release(conn, statement)

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

serialize(conn, database)

View Source
@spec serialize(db(), String.Chars.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}