Skip to content

netlify-database

Use this skill whenever a Netlify project needs a Postgres database. It covers Netlify Database setup, queries from Functions or Edge Functions, schema changes

— (0 ratings) 3.3K downloads netlify
$ npx skills add https://github.com/netlify/context-and-tools --skill netlify-database

Skills can run code on your computer. Review the source before installing. This listing is community-made and isn't affiliated with Anthropic.

About this skill

Netlify Database

Managed Postgres built into Netlify. Netlify provisions the database, applies migrations on deploy, and creates a database branch for every deploy preview and agent run.

Use this, not that

// ✅ Modern: auto-configured, branch-aware
import { getDatabase } from "@netlify/database";
const db = getDatabase();
const users = await db.sql`SELECT * FROM users WHERE id = ${id}`;

// ✅ Drizzle: native adapter, connection configured automatically
import { drizzle } from "drizzle-orm/netlify-db";
export const db = drizzle({ schema });

Installs: 3.3K | GitHub stars: 57 | First seen: Apr 28, 2026

Related skills

New

Databases

azure-resource-lookup

Fast discovery and inventory of Azure resources across subscriptions using Resource Graph queries.

New • 779.5K
New

Databases

azure-kusto

Execute KQL queries and analyze data in Azure Data Explorer for log analytics, telemetry, and time series insights.

New • 779.1K
New

Databases

supabase-postgres-best-practices

Postgres performance optimization rules across 8 priority categories, from query tuning to advanced features.

New • 502.1K