Getting Started
Install DPG and create your first project
| Section | Description |
|---|---|
| Get Started | Introduction, installation, quick start, editor integration |
| Fundamentals | Two-part syntax, project structure, macros, snapshots and diffing |
| Schema Objects | Every PostgreSQL object type with DPG source and generated SQL |
| Access Control | Roles, grants, revocations, default privileges |
| Advanced Objects | Full-text search, logical replication, operators, casts, foreign data, and more |
| Migrations | Lifecycle directives, linting rules, drift detection |
| CLI Reference | All dpg commands with flags and examples |
| Extending DPG | Plugin API for custom linters, snapshot stores, and apply executors |
Install DPG and create your first project
Core concepts: two-part syntax, project structure, macros, snapshot-driven diffing, and name maps.
Every PostgreSQL object type DPG can declare, with the DPG source and generated SQL for each.
Roles, grants, revocations, and default privileges.
Full-text search, logical replication, event triggers, collations, operators, casts, statistics, foreign data, and tablespaces.
Lifecycle directives, linting, and drift detection.
All dpg commands with flags and examples.
Use the pkg/dpg public API to extend DPG with custom linters, snapshot stores, and apply executors.