database

Create and manage Replit PostgreSQL databases and execute SQL queries with safety checks.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/BotchaVarun/EduBot --skill database-botchavarun
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: database
Source: https://github.com/BotchaVarun/EduBot/tree/main/.local/skills/database
Command: npx skills add https://github.com/BotchaVarun/EduBot --skill database-botchavarun

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up and querying databases often requires manual provisioning, connection string management, and careful handling of production data. This Skill automates PostgreSQL database creation on Replit and executes SQL queries with built-in safety guardrails that protect production data and Stripe tables. ## Core Features & Use Cases - Database Provisioning: Check whether a PostgreSQL database exists and create one automatically, with connection environment variables (DATABASE_URL, PGHOST, etc.) set for you. - Safe SQL Execution: Run queries against development with full SQL support, or run read-only SELECT queries against a production replica, with destructive operations blocked. - Data Warehouse Queries: Query BigQuery, Databricks, or Snowflake with optional result sampling. - Use Case: You are building a web app and need a users table. The Skill checks provisioning, creates the database, creates the table schema, inserts seed data, and verifies the results, all without leaving your development environment. ## Quick Start Ask the AI to create a PostgreSQL database for your project and set up a users table with email and created_at columns.

Frequently Asked Questions about database

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a PostgreSQL database on Replit?▼

Call checkDatabase() first to see if one is provisioned, then call createDatabase() if needed. The creation sets environment variables like DATABASE_URL, PGHOST, and PGPASSWORD automatically, so your application can connect immediately.

How do I run SQL queries against a production database safely?▼

Use executeSql with the environment parameter set to production. Production queries run read-only against a replica, so only SELECT statements are allowed, and INSERT, UPDATE, DELETE, and DDL statements will fail.

Can I query BigQuery or Snowflake from Replit?▼

Yes, executeSql supports bigquery, databricks, and snowflake as target values alongside the default replit_database. You can pass a sampleSize parameter to limit warehouse query results, but production environment queries only work with replit_database.

Why is my DROP or TRUNCATE query blocked?▼

Destructive queries like DROP and TRUNCATE are blocked through the skill callback path as a safety measure. Mutating queries are also blocked in Planning mode, and modifications to Stripe schema tables are always prevented.

Should I use Replit's built-in database or an external service like Supabase?▼

The built-in PostgreSQL database is preferred because it supports rollbacks and integrates directly with Replit. Only use external database services when you have specific requirements the built-in option cannot meet.