スキル neon-postgres
📦

neon-postgres

安全

Implement Neon Postgres Database Patterns

こちらからも入手できます: Asmayaseen

Developers struggle with serverless database connection management and ORM configuration. This skill provides proven patterns for Neon Postgres with Prisma and Drizzle integration.

対応: Claude Codex Code(CC)
🥉 74 ブロンズ
1

スキルZIPをダウンロード

2

Claudeでアップロード

設定 → 機能 → スキル → スキルをアップロードへ移動

3

オンにして利用開始

テストする

「neon-postgres」を使用しています。 Configure Prisma for Neon Postgres

期待される結果:

Prisma datasource configured with dual connection strings: DATABASE_URL for pooled runtime connections (PgBouncer) and DIRECT_URL for direct migration operations. Schema includes proper provider and url settings.

「neon-postgres」を使用しています。 Set up Drizzle with Neon serverless driver

期待される結果:

Drizzle instance initialized with neon-serverless driver, enabling WebSocket-based sessions for transactions. HTTP driver available for simple queries in edge environments.

セキュリティ監査

安全
v1 • 2/24/2026

Static analysis flagged 4 patterns that are all false positives. The skill contains documentation-only content with no executable code. Environment variable references are configuration examples, not actual env access. Cryptographic algorithm warnings are pattern-matching errors on unrelated text.

1
スキャンされたファイル
61
解析された行数
0
検出結果
1
総監査数
セキュリティ問題は見つかりませんでした
監査者: claude

品質スコア

38
アーキテクチャ
100
保守性
87
コンテンツ
50
コミュニティ
100
セキュリティ
91
仕様準拠

作れるもの

Full-Stack Developer Setting Up New Project

Configure database connections for a new Next.js project using Prisma with Neon Postgres, including proper separation of pooled and direct connections.

Edge Application Database Integration

Implement Drizzle ORM with Neon serverless driver for edge runtime compatibility in serverless functions.

Database Migration Workflow

Set up safe migration workflows using direct connections while maintaining pooled connections for application runtime.

これらのプロンプトを試す

Basic Neon Setup
Help me configure a Neon Postgres connection string for my application. I need to understand the difference between pooled and direct connections.
Prisma Schema Configuration
Generate a Prisma schema configuration for Neon Postgres with proper datasource setup for both DATABASE_URL and DIRECT_URL environment variables.
Drizzle Serverless Driver Setup
Show me how to configure Drizzle ORM with the Neon serverless driver for use in Vercel Edge Functions, including transaction support.
Connection Pooling Optimization
Analyze my application connection patterns and recommend optimal PgBouncer pooling settings for Neon Postgres given my expected concurrent user load.

ベストプラクティス

  • Always use pooled connections for application runtime and direct connections for migrations
  • Reserve 7 connections for Neon superuser operations when calculating pool limits
  • Use database branching for isolated development and testing environments

回避

  • Using direct connection strings for application runtime connections
  • Exceeding connection pool limits without proper error handling
  • Running migrations against pooled connections instead of direct connections

よくある質問

What is the difference between pooled and direct connections in Neon?
Pooled connections use PgBouncer for efficient connection reuse (up to 10K connections). Direct connections bypass the pooler and are required for DDL operations like migrations.
How many connections can Neon handle?
Neon supports up to 10,000 concurrent connections to the pooler, with 7 connections reserved for the Neon superuser. Actual Postgres connections depend on your compute size.
Can I use Neon with serverless edge functions?
Yes. Use Drizzle ORM with the neon-http driver for HTTP-based queries or neon-serverless driver for WebSocket transactions in edge environments.
What is database branching in Neon?
Database branching creates instant copies of your database for isolated development, testing, or preview environments without duplicating storage.
Do I need both Prisma and Drizzle?
No. Choose one ORM based on your needs. Prisma offers a full-featured ORM with migrations. Drizzle provides lighter weight with better serverless support.
How do I handle connection errors in serverless environments?
Implement retry logic with exponential backoff. Use connection pooling to reduce connection overhead. Consider the neon-http driver for stateless query patterns.

開発者の詳細

ファイル構成

📄 SKILL.md