using-pgdbm

Community

Master one pool, many schemas with pgdbm.

Authorjuanre
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill clarifies how to design and operate a scalable pgdbm setup using one shared pool and per-service schemas, including template-based queries and per-module migrations.

Core Features & Use Cases

  • ONE pool to rule them all: centralized connection management to minimize database load.
  • Schema isolation: each service/module operates in its own PostgreSQL schema for safe multi-tenancy.
  • Template-driven queries: {{tables.*}} syntax ensures portability across deployment modes.
  • Migrations per module: run migrations independently for each service while sharing the pool.
  • Production patterns: example architectures for microservices, libraries, and FastAPI-style apps.

Quick Start

Instantiate a shared pool with a DatabaseConfig, create AsyncDatabaseManager instances per schema, and run migrations for each module. Then perform queries using the template syntax {{tables.*}}.

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: using-pgdbm
Download link: https://github.com/juanre/pgdbm/archive/main.zip#using-pgdbm

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 223,000+ vetted skills library on demand.