View Source Ecto Firebird Adapter

An Ecto Firebird adapter. Uses Firebirdex as the driver to communicate with Firebird.

Based on Ecto SQLite3 Adapter. Special thanks to the developers of Ecto SQLite3 Adapter!

Installation

defp deps do
  [
    ...
    {:ecto_firebird, ">= 0.0.0"}
  ]
end

Usage

Define your repo similar to this.

defmodule MyApp.Repo do
  use Ecto.Repo, otp_app: :my_app, adapter: Ecto.Adapters.Ecto.Adapters.Firebird
end

Configure your repository similar to the following.

config :my_app,
  ecto_repos: [MyApp.Repo]

config :my_app, MyApp.Repo,
  hostname: "servername",
  username: "SYSDBA",
  password: "secret",
  database: "/path/to/my/database.db"