forked from elixir-ecto/postgrex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
79 lines (73 loc) · 1.8 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
defmodule Postgrex.Mixfile do
use Mix.Project
@version "0.14.0-dev"
def project do
[
app: :postgrex,
version: @version,
elixir: "~> 1.4",
deps: deps(),
name: "Postgrex",
description: "PostgreSQL driver for Elixir",
source_url: "https://github.com/elixir-ecto/postgrex",
docs: docs(),
package: package()
]
end
# Configuration for the OTP application
def application do
[
applications: [:logger, :db_connection, :decimal, :crypto],
mod: {Postgrex.App, []},
env: [type_server_reap_after: 3 * 60_000, json_library: Jason]
]
end
defp deps do
[
{:ex_doc, "~> 0.14", only: :docs},
{:jason, "~> 1.0", only: :test},
{:decimal, "~> 1.0"},
{:db_connection, "~> 1.1", github: "elixir-ecto/db_connection", ref: "4947966"},
{:connection, "~> 1.0"}
]
end
defp docs do
[
source_ref: "v#{@version}",
main: "readme",
extras: ["README.md"],
groups_for_modules: [
# Postgrex
# Postgrex.Notifications
# Postgrex.Query
# Postgrex.Result
"Data Types": [
Postgrex.Box,
Postgrex.Circle,
Postgrex.INET,
Postgrex.Interval,
Postgrex.Lexeme,
Postgrex.Line,
Postgrex.LineSegment,
Postgrex.MACADDR,
Postgrex.Path,
Postgrex.Point,
Postgrex.Polygon,
Postgrex.Range
],
"Custom types and Extensions": [
Postgrex.Extension,
Postgrex.TypeInfo,
Postgrex.Types
]
]
]
end
defp package do
[
maintainers: ["Eric Meadows-Jönsson", "James Fish"],
licenses: ["Apache 2.0"],
links: %{"Github" => "https://github.com/elixir-ecto/postgrex"}
]
end
end