db-patterns

Community

Standard PostgreSQL patterns for reliable data access.

AuthorRaNDoM6913
Version1.0.0
Installs0

System Documentation

What problem does it solve?

A ready-to-use blueprint for building robust PostgreSQL data access layers in Go without an ORM, reducing boilerplate and risk across services.

Core Features & Use Cases

  • Repository pattern implementation for Go services using pgx with a zero-ORM approach.
  • Migrations organization and conventions (backend/migrations) with standard up/down scripts and versioning.
  • Consistent error wrapping, debug-friendly query patterns, and JSONB usage for flexible data modeling.
  • Connection pooling with pgxpool and patterns for Redis-backed session storage and caching.
  • Use cases include building scalable data access layers for microservices, audit trails, and high-traffic apps.

Quick Start

Apply this pattern by wiring a pgxpool connection, implementing repository methods, and running migrations to bootstrap your database layer.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: db-patterns
Download link: https://github.com/RaNDoM6913/claude-code-superkit/archive/main.zip#db-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.