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})