What problem does it solve?
Create and manage Replit's built-in PostgreSQL databases, check status, execute SQL queries with safety checks, and run read-only queries against the production database. Use when the user wants to check prod data, debug database issues in production, or asks to "check the prod db", "query production", "look at live data", or "see what's in the database on the deployed app".
Core Features & Use Cases
- checkDatabase(): Check if the PostgreSQL database is provisioned and accessible.
- createDatabase(): Create or verify a PostgreSQL database exists for the project.
- executeSql(): Execute a SQL query with safety checks and multiple environments.
- Safety Features: Environment Isolation, Stripe Protection, Discussion Mode, Destructive Query Protection.
- Best Practices: Prefer built-in database; check before creating; test queries; backups.
Quick Start
Ask it to check the database status and then run a safe query against the development database using executeSql().