View Source Firebirdex (Firebirdex v0.3.11)
Firebird driver for Elixir.
Summary
Functions
@spec child_spec([Firebirdex.Connection.connection_opt()]) :: :supervisor.child_spec()
@spec close(DBConnection.conn(), Firebirdex.Query.t(), list()) :: :ok | {:error, Exception.t()}
@spec close!(DBConnection.conn(), Firebirdex.Query.t(), list()) :: :ok
@spec execute(DBConnection.conn(), Firebirdex.Query.t(), list(), list()) :: {:ok, Firebirdex.Result.t()} | {:error, Firebirdex.Error.t()}
@spec execute!(DBConnection.conn(), Firebirdex.Query.t(), list(), list()) :: Firebirdex.Result.t()
@spec prepare(DBConnection.conn(), iodata(), iodata(), list()) :: {:ok, Firebirdex.Query.t()} | {:error, Exception.t()}
@spec prepare!(DBConnection.conn(), iodata(), iodata(), list()) :: Firebirdex.Query.t()
@spec prepare_execute(DBConnection.conn(), iodata(), iodata(), list(), list()) :: {:ok, Firebirdex.Query.t(), Firebirdex.Result.t()} | {:error, Firebirdex.Error.t()}
@spec prepare_execute!(DBConnection.conn(), iodata(), iodata(), list(), list()) :: {Firebirdex.Query.t(), Firebirdex.Result.t()}
@spec query(DBConnection.conn(), iodata(), list(), list()) :: {:ok, Firebirdex.Result.t()} | {:error, Exception.t()}
@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()}
@spec transaction(DBConnection.conn(), (DBConnection.t() -> result), list()) :: {:ok, result} | {:error, any()} when result: var