View Source Exqlite (Exqlite v0.27.0)

SQLite3 driver for Elixir.

Summary

Functions

Link to this function

close(conn, query, opts \\ [])

View Source
@spec close(DBConnection.conn(), Exqlite.Query.t(), list()) ::
  :ok | {:error, Exception.t()}
Link to this function

close!(conn, query, opts \\ [])

View Source
@spec close!(DBConnection.conn(), Exqlite.Query.t(), list()) :: :ok
Link to this function

execute(conn, query, params, opts \\ [])

View Source
@spec execute(DBConnection.conn(), Exqlite.Query.t(), list(), list()) ::
  {:ok, Exqlite.Result.t()} | {:error, Exqlite.Error.t()}
Link to this function

execute!(conn, query, params, opts \\ [])

View Source
@spec execute!(DBConnection.conn(), Exqlite.Query.t(), list(), list()) ::
  Exqlite.Result.t()
Link to this function

prepare(conn, name, statement, opts \\ [])

View Source
Link to this function

prepare!(conn, name, statement, opts \\ [])

View Source
@spec prepare!(DBConnection.conn(), iodata(), iodata(), list()) :: Exqlite.Query.t()
Link to this function

prepare_execute(conn, name, statement, params, opts \\ [])

View Source
@spec prepare_execute(DBConnection.conn(), iodata(), iodata(), list(), list()) ::
  {:ok, Exqlite.Query.t(), Exqlite.Result.t()} | {:error, Exqlite.Error.t()}
Link to this function

prepare_execute!(conn, name, statement, params, opts \\ [])

View Source
@spec prepare_execute!(DBConnection.conn(), iodata(), iodata(), list(), list()) ::
  {Exqlite.Query.t(), Exqlite.Result.t()}
Link to this function

query(conn, statement, params \\ [], opts \\ [])

View Source
@spec query(DBConnection.conn(), iodata(), list(), list()) ::
  {:ok, Exqlite.Result.t()} | {:error, Exception.t()}
Link to this function

query!(conn, statement, params \\ [], opts \\ [])

View Source
@spec query!(DBConnection.conn(), iodata(), list(), list()) :: Exqlite.Result.t()
@spec rollback(DBConnection.t(), term()) :: no_return()
@spec start_link([Exqlite.Connection.connection_opt()]) ::
  {:ok, pid()} | {:error, Exqlite.Error.t()}

See Exqlite.Connection.connect/1

Link to this function

transaction(conn, fun, opts \\ [])

View Source
@spec transaction(DBConnection.conn(), (DBConnection.t() -> result), list()) ::
  {:ok, result} | {:error, any()}
when result: var