A read-only database explorer in the admin: list Postgres tables with row counts and size, preview rows, and watch INSERT, UPDATE and DELETE activity in real time through LISTEN/NOTIFY triggers installed when a table is first viewed. Values in secret-named columns are masked on the server.
Use it when
- You want to inspect production data from the admin without opening psql
- You are debugging which rows a feature writes and want to see changes as they happen
What it gives you
- Table list with row counts and size at /admin/db
- Paginated row preview at /admin/db/:schema/:table
- Live activity feed with diff highlighting at /admin/db/activity
- Masking of password, token, secret and similar columns, also inside JSON
- Triggers removed when the module is disabled
Example
config :phoenix_kit_db, ddl_lock_timeout_ms: 2000
Database Explorer news
-
Database Explorer 0.4.0: Works with PhoenixKit 3
Database Explorer 0.4.0 widens its PhoenixKit requirement so the Postgres table browser installs next to PhoenixKit 3.x. No change to the pages.
-
Database Explorer 0.3.0: Masked secrets, estimated counts and its own translations
Database Explorer 0.3.0 hides passwords, tokens and secret settings from the Postgres table browser, estimates huge row counts and adds Estonian and Russian.
-
Database Explorer 0.2.1: Dependency update only
Database Explorer 0.2.1 updates its locked dependencies to PhoenixKit 2.2.0 and Phoenix 1.8.10. The table browser and activity feed are unchanged.
-
Database Explorer 0.2.0: Moves to PhoenixKit 2.0
Database Explorer 0.2.0 requires PhoenixKit 2.0. The table browser is unchanged, but the core upgrade needs the database at migration V135 first.
-
Database Explorer 0.1.1: Documentation fix
Database Explorer 0.1.1 fixes a link in the module's documentation. No change for a running site: the table browser and activity feed are the same.
Install
1
Add to mix.exs
{:phoenix_kit_db, "~> 0.4"}
2 Fetch it and run its migrations
$ mix deps.get && mix phoenix_kit.update
3
Switch it on in /admin/modules
- Package
- phoenix_kit_db
- Releases
-
- 0.4.0
- 0.3.0
- 0.2.1
- Admin
-
/admin/db - Links
- HexDocs ↗ GitHub ↗ Changelog ↗
Related modules
What it needs, what builds on it, and its neighbours in Platform & tools.
Dashboards
Build admin dashboard pages from widgets that any module exposes
No other modules needed
Hello World
A demo module to copy when building your own PhoenixKit module
No other modules needed
Legal
Generated legal pages, cookie consent banner and consent logging
Needs Publishing
Stats
Collect and chart time-series metrics from external sources over Graphite
No other modules needed
Sync
Pull data between PhoenixKit sites over token-based connections
No other modules needed
Templates Editor
Edit your app's email template files from the email settings page
Needs templates