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

Slink notes

note.livemd

Slink notes

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

Knonw bugs

  • unspport non chrome-extension://xxxx like non-http links in code

DB Explore

opts = [
  hostname: "localhost",
  port: 5432,
  username: "postgres",
  password: "postgres",
  database: "slink_dev",
  socket_options: [:inet6]
]

{:ok, conn} = Kino.start_child({Postgrex, opts})
links = Postgrex.query!(conn, ~S"select * from links order by id desc limit 10", [])
users = Postgrex.query!(conn, ~S"select * from users limit 100", [])

Test accounts

ref test/support/fixtures.ex

  • a1@b.c / 123456123456
  • adm1@b.c / same above