Exqlite.Sqlite3NIF (Exqlite v0.5.11) 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()}

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()}

Specs

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

transaction_status(conn)

View Source

Specs

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