fastapi-postgres-repository

Community

PostgreSQL repo with bulk upsert and soft-delete.

Authoragusmdev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a reusable PostgreSQL-backed repository layer for FastAPI apps, enabling consistent data access patterns and advanced features without duplicating code.

Core Features & Use Cases

  • CRUD operations based on a flexible base repository
  • Bulk upsert using ON CONFLICT for efficient batch inserts and updates
  • Soft delete filtering with optional restoration support
  • Integration with fastapi-pagination and fastapi-filter for paginated, queryable results
  • Easy extension by creating entity-specific repositories

Quick Start

Create your first repository by inheriting from PostgresRepository and supplying your SQLAlchemy model and Pydantic schemas. Use bulk_upsert to insert or update multiple records in a single database round trip. Apply soft delete operations and leverage paginated queries in your FastAPI endpoints.

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: fastapi-postgres-repository
Download link: https://github.com/agusmdev/burntop/archive/main.zip#fastapi-postgres-repository

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.