Documentation
README
PostgreSQL Development Patterns
Overview
Enforce transaction safety, type safety, and naming conventions to prevent data corruption and runtime errors.
Core principles:
- Transactions prevent partial updates (data corruption)
- Type safety catches errors at compile time
- Naming conventions ensure consistency
- Read-write separation prevents accidental mutations
For TypeScript/Drizzle implementations: See typescript-drizzle.md for concrete patterns.
Transaction Management
TX_ Prefix Rule (STRICT ENFORCEMENT)
Methods that START transactions:
- Prefix method name with
TX_ - Must NOT accept connection/executor parameter
- Call
connection.transaction()ordb.transaction()internally
This is the opening of the README. Read the full README on GitHub.