Helpers for using SQL views with Ecto
at master 16 lines 504 B view raw
1# SPDX-FileCopyrightText: 2026 Łukasz Niemier <~@hauleth.dev> 2# 3# SPDX-License-Identifier: Apache-2.0 4 5import Config 6 7config :ecto_view, ecto_repos: [EctoView.Repo] 8 9config :ecto_view, EctoView.Repo, 10 username: System.get_env("POSTGRES_USER", "postgres"), 11 password: System.get_env("POSTGRES_PASSWORD", "postgres"), 12 database: System.get_env("POSTGRES_DB", "ecto_view"), 13 hostname: "postgres", 14 socket_dir: System.get_env("PGHOST"), 15 show_sensitive_data_on_connection_error: true, 16 pool_size: 10