본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)33k · #8781

neon-postgres

하는 일

이 스킬은 AI 에이전트에게 앱에서 서버리스 Postgres 데이터베이스인 Neon을 쓰기 위한 패턴을 제공합니다. Prisma 또는 Drizzle을 Neon에 연결하고 연결 풀링을 다루는 개발자를 위한 것입니다.

사용하는 경우

  • ✓Prisma나 Drizzle 앱을 Neon 데이터베이스에 연결할 때.
  • ✓서버리스 Neon 앱에 연결 풀링이 필요할 때.
  • ✓개발이나 테스트를 위해 데이터베이스 브랜칭을 쓰고 싶은 경우.

스킬 링크

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/neon-postgres/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/neon-postgres/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Prisma를 제 Neon 데이터베이스와 함께 설정해 주세요. 앱에는 풀링된 연결을, 마이그레이션에는 직접 연결을 쓰세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 두 개의 연결 문자열을 설정합니다. 하나는 애플리케이션용 풀링 연결이고, 다른 하나는 마이그레이션용 직접 연결입니다. 또한 단일 쿼리에는 HTTP, 트랜잭션에는 WebSocket처럼 알맞은 Neon 드라이버를 고릅니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Neon Postgres

Patterns

Prisma with Neon Connection

Configure Prisma for Neon with connection pooling.

Use two connection strings:

  • DATABASE_URL: Pooled connection for Prisma Client
  • DIRECT_URL: Direct connection for Prisma Migrate

The pooled connection uses PgBouncer for up to 10K connections. Direct connection required for migrations (DDL operations).

Drizzle with Neon Serverless Driver

Use Drizzle ORM with Neon's serverless HTTP driver for edge/serverless environments.

Two driver options:

  • neon-http: Single queries over HTTP (fastest for one-off queries)
  • neon-serverless: WebSocket for transactions and sessions

Connection Pooling with PgBouncer

Neon provides built-in connection pooling via PgBouncer.

Key limits:

  • Up to 10,000 concurrent connections to pooler
  • Connections still consume underlying Postgres connections
  • 7 connections reserved for Neon superuser

Use pooled endpoint for application, direct for migrations.

⚠️ Sharp Edges

Issue Severity Solution
Issue high See docs
Issue high See docs
Issue high See docs
Issue medium See docs
Issue medium See docs
Issue low See docs
Issue medium See docs
Issue high See docs
자주 묻는 질문

연결 문자열이 두 개인 이유는 무엇인가요?

풀링 연결은 앱에 쓰이고, 직접 연결은 마이그레이션 작업에 필요하기 때문입니다.

어떤 드라이버가 트랜잭션을 처리하나요?

스킬은 트랜잭션과 세션에 WebSocket 서버리스 드라이버를 쓴다고 말합니다.

풀러는 얼마나 많은 연결을 처리할 수 있나요?

스킬은 풀러가 최대 10,000개의 동시 연결을 지원한다고 안내합니다.

상세 정보

작성자의 원본 설명

Expert patterns for Neon serverless Postgres, branching, connection pooling, and Prisma/Drizzle integration Use when: neon database, serverless postgres, database branching, neon postgres, postgres serverless.

repo: davila7/claude-code-templates

인기도

GitHub 스타
33k
순위
#8781
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬