Exqlite.Sqlite3NIF (Exqlite v0.7.2) View Source

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.

Link to this section Summary

Link to this section Types

Specs

db() :: reference()

Specs

reason() :: :atom | String.Chars.t()

Specs

statement() :: reference()

Link to this section Functions

Link to this function

bind(conn, statement, args)

View Source

Specs

bind(db(), statement(), []) ::
  :ok | {:error, reason()} | {:error, {atom(), any()}}

Specs

changes(db()) :: {:ok, integer()}

Specs

close(db()) :: :ok | {:error, reason()}
Link to this function

columns(conn, statement)

View Source

Specs

columns(db(), statement()) :: {:ok, []} | {:error, reason()}
Link to this function

deserialize(conn, database, serialized)

View Source

Specs

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

enable_load_extension(conn, flag)

View Source

Specs

enable_load_extension(db(), boolean()) :: :ok | {:error, reason()}

Specs

execute(db(), String.Chars.t()) :: :ok | {:error, reason()}

Specs

last_insert_rowid(db()) :: {:ok, integer()}
Link to this function

multi_step(conn, statement, chunk_size)

View Source

Specs

multi_step(db(), statement(), integer()) ::
  :busy | {:rows, [[]]} | {:done, [[]]}

Specs

open(String.Chars.t()) :: {:ok, db()} | {:error, reason()}

Specs

prepare(db(), String.Chars.t()) :: {:ok, statement()} | {:error, reason()}
Link to this function

release(conn, statement)

View Source

Specs

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

serialize(conn, database)

View Source

Specs

serialize(db(), String.Chars.t()) :: {:ok, binary()} | {:error, reason()}

Specs

step(db(), statement()) :: :done | :busy | {:row, []}
Link to this function

transaction_status(conn)

View Source

Specs

transaction_status(db()) :: {:ok, :idle | :transaction}