Helpers for using SQL views with Ecto
1# SPDX-FileCopyrightText: 2026 Łukasz Niemier <~@hauleth.dev>
2#
3# SPDX-License-Identifier: Apache-2.0
4
5defmodule EctoView.MixProject do
6 use Mix.Project
7
8 def project do
9 [
10 app: :ecto_view,
11 description: "Ecto helpers for creating and refreshing SQL views",
12 package: [
13 licenses: ["Apache-2.0"],
14 links: %{
15 "Tangled" => "https://tangled.org/hauleth.dev/ecto_view"
16 }
17 ],
18 version: "1.0.0",
19 elixir: "~> 1.12",
20 start_permanent: Mix.env() == :prod,
21 elixirc_paths: paths(Mix.env()),
22 deps: deps(),
23 docs: docs()
24 ]
25 end
26
27 # Run "mix help compile.app" to learn about applications.
28 def application do
29 [
30 extra_applications: [:logger]
31 ]
32 end
33
34 defp docs do
35 [
36 main: "readme",
37 extras: ["README.md"]
38 ]
39 end
40
41 defp paths(env) when env in ~w[dev test]a, do: ~w[lib test/support]
42 defp paths(_), do: ~w[lib]
43
44 # Run "mix help deps" to learn about dependencies.
45 defp deps do
46 [
47 {:ecto_sql, "~> 3.0"},
48 {:postgrex, ">= 0.0.0", only: [:dev]},
49 {:ex_doc, ">= 0.0.0", only: [:dev]}
50 # {:dep_from_hexpm, "~> 0.3.0"},
51 # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
52 ]
53 end
54end