View Source Exqlite (Exqlite v0.29.0)

SQLite3 driver for Elixir.

Summary

Functions

child_spec(opts)

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

@spec close(DBConnection.conn(), Exqlite.Query.t(), list()) ::
  :ok | {:error, Exception.t()}

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

@spec close!(DBConnection.conn(), Exqlite.Query.t(), list()) :: :ok

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

@spec execute(DBConnection.conn(), Exqlite.Query.t(), list(), list()) ::
  {:ok, Exqlite.Result.t()} | {:error, Exqlite.Error.t()}

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

@spec execute!(DBConnection.conn(), Exqlite.Query.t(), list(), list()) ::
  Exqlite.Result.t()

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

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

@spec prepare!(DBConnection.conn(), iodata(), iodata(), list()) :: Exqlite.Query.t()

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

@spec prepare_execute(DBConnection.conn(), iodata(), iodata(), list(), list()) ::
  {:ok, Exqlite.Query.t(), Exqlite.Result.t()} | {:error, Exqlite.Error.t()}

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

@spec prepare_execute!(DBConnection.conn(), iodata(), iodata(), list(), list()) ::
  {Exqlite.Query.t(), Exqlite.Result.t()}

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

@spec query(DBConnection.conn(), iodata(), list(), list()) ::
  {:ok, Exqlite.Result.t()} | {:error, Exception.t()}

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

@spec query!(DBConnection.conn(), iodata(), list(), list()) :: Exqlite.Result.t()

rollback(conn, reason)

@spec rollback(DBConnection.t(), term()) :: no_return()

start_link(opts)

@spec start_link([Exqlite.Connection.connection_opt()]) ::
  {:ok, pid()} | {:error, Exqlite.Error.t()}

See Exqlite.Connection.connect/1

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

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