sql-database-support
Skill by prest
Guides classifying, gap-analyzing and scaffolding support for a new SQL database in pREST. It covers wire-compatible variants such as TimescaleDB and new dialects.
Install sql-database-support
Built from the published package, never by AI.
git clone --depth 1 https://github.com/prest/prest /tmp/prest && mkdir -p ~/.claude/skills && cp -r /tmp/prest/.cursor/skills/sql-database-support ~/.claude/skills/sql-database-supportRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/prest/prest /tmp/prest && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/prest/.cursor/skills/sql-database-support ~/.gemini/antigravity-cli/skills/sql-database-supportAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install sql-database-support in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill walks a developer through adding a new SQL database to pREST. It starts by classifying the engine as either a Postgres-wire variant that can reuse the postgres adapter, or a new dialect that needs its own adapter. Next it has the developer write an integration/<db>/DIFFERENCES.md file that answers a gap worksheet covering driver, quoting, catalog listing, native features, ACL and compose ownership. Only after that does it point to the paths to change, such as integration/<db>/, Makefile targets and per-database GitHub workflows.
The skill is aimed at contributors working on the pREST codebase. It uses TimescaleDB as the reference engine and includes a note on handling engine-specific features through the adapter interface. It also sets safety rules, such as parameterized SQL only and failing closed on auth and ACL.
Written from the project's SKILL.md and checked against it.
What it can do
- Engine classificationDecides whether a new engine is a Postgres-wire variant or a new dialect before any scaffolding.
- Gap analysis worksheetLists seven items to answer in integration/<db>/DIFFERENCES.md, from driver to compose ownership.
- Change-path mappingShows which paths to change for a wire variant versus a new dialect.
- Test policy guidanceDescribes smoke, feature and compatibility tests for a new database under integration/.
- Adapter-specific feature patternExplains using a no-op base adapter method and overriding it in a specialized adapter.
- Support checklistProvides a checklist for opening a new database, including Make target and dedicated workflow.
What you need
- Go toolchain
- Docker and Docker compose
- Make
- GitHub Actions workflows
Try asking
- Classify whether MySQL would be a wire variant or a new dialect for pREST
- Help me write integration/<db>/DIFFERENCES.md for a new database
- Show the file paths I must change to add a new dialect adapter
Good to know
- Meant to plan and start support, not to ship a full product surface in one pass.
- New dialects also need unit tests with at least 80% package coverage and no live database.
- Engine-specific code must not be imported from controllers, middlewares or router.
- Shared integration suites stay on the Postgres job.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .cursor/skills/sql-database-support/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB -
examples.md2 KB
Alternatives to sql-database-support
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
sql-database-support: common questions
Does this skill add database support to pREST by itself?
No. The source describes it as a guide for analysis and scaffolding, meant to help a contributor think through and start support for an engine.
What is the difference between a wire variant and a new dialect here?
A wire variant can reuse the postgres adapter with only seed or extension changes. A new dialect needs its own adapter when it uses another driver or emits different SQL.
Which database is the reference example?
The source names integration/timescaledb/ and its DIFFERENCES.md as the reference engine.
How do I install sql-database-support?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is sql-database-support free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is sql-database-support safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to sql-database-support?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
