Packages

ArangoDB 3.4+ driver for Elixir with connection pooling, support for VelocyStream, active failover, transactions and streamed cursors.

Current section

Files

Jump to
arangox mix.exs
Raw

mix.exs

defmodule Arangox.MixProject do
use Mix.Project
@version "0.4.2"
@description """
ArangoDB 3.3.9+ driver for Elixir with connection pooling, VelocyStream, \
support for Active Failover, transactions and cursors.
"""
@source_url "https://github.com/ArangoDB-Community/arangox"
@homepage_url "https://www.arangodb.com"
def project do
[
app: :arangox,
version: @version,
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
name: "Arangox",
description: @description,
source_url: @source_url,
homepage_url: @homepage_url,
package: package(),
docs: docs(),
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[extra_applications: [:logger] ++ extras(Mix.env())]
end
defp extras(:prod), do: []
defp extras(_), do: [:gun]
defp package do
[
licenses: ["MIT"],
links: %{"GitHub" => @source_url}
]
end
defp docs do
[
source_ref: "v#{@version}",
main: "readme",
extras: ["README.md"]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:db_connection, "~> 2.1"},
{:velocy, "~> 0.1", optional: true},
{:jason, "~> 1.1", optional: true},
{:gun, "~> 1.3", optional: true},
{:mint, "~> 0.4.0", optional: true},
{:ex_doc, "> 0.0.0", only: :dev, runtime: false},
{:credo, "~> 1.1", only: [:dev, :test], runtime: false}
]
end
end