Skip to main content

DB Browser

The DB Browser lets you connect to MySQL and PostgreSQL databases directly from Gatwy — no external client required. Browse tables, run SQL queries, and inspect data, all from the browser.

Creating a DB Connection

DB connections are created like any other connection type:

  1. Click New Connection in the sidebar
  2. Select MySQL or PostgreSQL as the protocol
  3. Fill in the connection details:
FieldDescription
NameDisplay name in the sidebar
HostDatabase host (IP or hostname)
PortDefault: 3306 (MySQL) or 5432 (PostgreSQL)
UsernameDatabase user
PasswordStored encrypted with AES-256
  1. Click Save — the connection appears in your sidebar like any other.

Connecting and Browsing

Click the connection to open the DB Browser tab. The left panel lists all databases and their tables. Click any table to load a paginated row view.

  • Pagination — results are paginated with a configurable row limit
  • Row count — total row count is shown in the query status bar
  • Disconnect — a disconnect screen appears if the connection drops, with a reconnect button

Running SQL Queries

The query editor supports full read and write SQL:

-- Browse
SELECT * FROM users WHERE active = 1 LIMIT 100;

-- Modify
UPDATE settings SET value = 'dark' WHERE key = 'theme';

-- DDL
CREATE TABLE logs (id INT PRIMARY KEY AUTO_INCREMENT, message TEXT, created_at DATETIME);
warning

The DB Browser runs queries with the credentials you configured on the connection. Ensure the database user has only the permissions you intend to grant.

Session Logging

DB Browser sessions are logged like file activity sessions — every query you run is recorded in the Sessions → DB Sessions history with a timestamp and the full SQL statement. Logs are exportable as JSON or CSV.

RBAC

DB Browser connections follow the same permission model as all other connections:

  • connections.create — create DB connections
  • connections.edit_own / connections.edit_any — edit connections
  • connections.delete_own / connections.delete_any — delete connections

Share a DB connection with specific users or roles the same way as any other connection type.