pgorm
A model-definition-first, AI-friendly PostgreSQL ORM for Rust.
Quick Start
use pgorm::prelude::*;
Two-level API
- Recommended: [
PgClient] — monitoring + SQL checking + statement cache + policy - Low-level: [
GenericClient] / [Sql] — pluggable, minimal abstraction
Modules
- [
monitor] — query monitoring, hooks, [InstrumentedClient] - [
check] — SQL schema checking, linting, [SchemaRegistry] - [
prelude] — convenientuse pgorm::prelude::*for daily use - [
qb] — thin wrapper aroundquery()for hand-written SQL
Stability: pgorm is pre-1.0. APIs may change between minor versions. MSRV: 1.88+