PhoenixLens (phoenix_lens v0.1.3)

Copy Markdown View Source

Mountable SQL notebook for Phoenix.

Point it at your Ecto repo, save questions, pin dashboards, and mask PII/PHI in every result sink.

config :phoenix_lens,
  repo: MyApp.Repo,
  masked_fields: [:email, :first_name, :phone]

import PhoenixLensWeb.Router

scope "/" do
  pipe_through [:browser, :require_admin]
  lens "/lens"
end

Summary

Functions

See PhoenixLens.Config.get/0.

See PhoenixLens.Query.run/2.

Functions

config()

See PhoenixLens.Config.get/0.

databases()

run(sql, opts \\ [])

See PhoenixLens.Query.run/2.