View Source Firebirdex (Firebirdex v0.3.11)

Firebird driver for Elixir.

Summary

Functions

@spec child_spec([Firebirdex.Connection.connection_opt()]) :: :supervisor.child_spec()
Link to this function

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

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

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

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

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

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

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

View Source
Link to this function

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

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

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

View Source
@spec prepare!(DBConnection.conn(), iodata(), iodata(), list()) ::
  Firebirdex.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, Firebirdex.Query.t(), Firebirdex.Result.t()}
  | {:error, Firebirdex.Error.t()}
Link to this function

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

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

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

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

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

View Source
@spec query!(DBConnection.conn(), iodata(), list(), list()) :: Firebirdex.Result.t()
@spec rollback(DBConnection.t(), any()) :: no_return()
@spec start_link([Firebirdex.Connection.connection_opt()]) ::
  {:ok, pid()} | {:error, Firebirdex.Error.t()}
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