Let a super admin read the database from the app
A new super admin settings page, /admin/settings/database, lists every table with its record count and size, and one page of the open table's records newest key first. Values are cut inside SQL (400 characters, with a flag saying so) and a record opens whole in a modal, so a table of long texts reads without shipping it all. A search matches every column's text, word by word or as a phrase, which is the one thing that also works on a virtual table. Nothing in it writes: the catalog, the records and the single record are all reads, GET only.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import SettingsShell from "../(partials)/settings-shell";
|
||||
import settingsPageMeta from "../(functions)/settings-page-meta";
|
||||
import DatabaseBrowser from "./(sections)/database-browser";
|
||||
|
||||
export default function AdminSettingsDatabasePage() {
|
||||
return (
|
||||
<SettingsShell
|
||||
title="Database"
|
||||
description="Every table and every record, read-only: open a record to read a value whole, search a table across all of its columns."
|
||||
wide
|
||||
>
|
||||
<DatabaseBrowser />
|
||||
</SettingsShell>
|
||||
);
|
||||
}
|
||||
|
||||
export const meta = settingsPageMeta({ label: "Database" });
|
||||
Reference in New Issue
Block a user