Vercel Postgres Integration

•
5
•

Facilitates secure and efficient Serverless PostgreSQL operations on Vercel using the edge-compatible SDK.

This skill provides Claude Code with domain-specific guidance for managing Vercel Postgres databases via the @vercel/postgres SDK. It enforces best practices for serverless environments, including the use of the 'sql' tagged template for injection-safe queries, connection pooling management to prevent exhaustion, and distinct handling for Edge vs. Node.js runtimes. While acknowledging the package's deprecation as of late 2024, it offers robust patterns for maintaining existing projects and provides clear migration paths to @neondatabase/serverless.

主な機能

01Edge-runtime optimized configurations for Vercel functions
02Automatic connection pooling management via POSTGRES_URL
03Structured migration guidance to @neondatabase/serverless
045 GitHub stars
05Multi-query transaction patterns using sql.connect() with release safety
06Safe one-shot queries with auto-parameterized 'sql' tagged templates

ユースケース

01Migrating legacy @vercel/postgres implementations to the modern Neon serverless driver
02Building serverless API endpoints that query Postgres from Vercel Edge functions
03Managing database transactions and sequential queries in existing Vercel projects