Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

PostgreSQL connection

postgresql_connection.livemd

PostgreSQL connection

Mix.install([
  {:kino_db, "~> 0.2.10"},
  {:postgrex, ">= 0.0.0"}
])

Section

opts = [
  hostname: "learn_phoenix_postgres",
  port: 5432,
  username: "postgres",
  password: System.fetch_env!("LB_PASSWD"),
  database: "learn_phoenix_dev"
]

{:ok, conn} = Kino.start_child({Postgrex, opts})