Docs

Hold the statement. Keep the undo.

Tablebelt is a self-hosted Postgres proxy. The agent connects to it. Safe SQL passes through. DROP, TRUNCATE, ALTER ... DROP and unscoped writes wait until you approve them. The proxy snapshots the affected tables first. tablebelt restore puts those tables back.

Sixty seconds

install.sh
curl -fsSL https://tablebelt.com/install.sh | sh
tablebelt init
tablebelt run
  1. Install the binary, or run the Docker image.
  2. tablebelt init writes tablebelt.yaml, an agent password, and an admin token file (mode 0600). It prints a DATABASE_URL that contains no upstream credential.
  3. tablebelt run listens on 127.0.0.1:5439.
  4. Give the agent only that URL. Keep the real DSN on the proxy host.
  5. When something is held, tablebelt approve on Free, or the dashboard on Pro and Team.

On this site

Free runs any number of local databases, with CLI approvals, and makes no outbound calls. Pro is $19 per database per month. Team is $79 per month. Prices are USD. Checkout shows local currency (GBP/EUR) where available. Hosted approvals are at app.tablebelt.com.