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

SlinkV2 Dev Notes

notes/dev.livemd

SlinkV2 Dev Notes

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

Data

opts = [
  hostname: "localhost",
  port: 5432,
  username: "postgres",
  password: "postgres",
  database: "slink_v2_dev"
]

{:ok, conn} = Kino.start_child({Postgrex, opts})
Kino.nothing()
result = Postgrex.query!(conn, ~S"select * from users order by id asc", [])
result2 =
  Postgrex.query!(conn, ~S"select * from users_tokens order by id desc limit 30", [])

Auth