Directories
¶
| Path | Synopsis |
|---|---|
|
Package auth turns an HTTP request into verified claims and a database role: a JWT (HS* via shared secret, RS*/ES* via a cached JWKS endpoint), trusted-gateway claim headers, or nothing.
|
Package auth turns an HTTP request into verified claims and a database role: a JWT (HS* via shared secret, RS*/ES* via a cached JWKS endpoint), trusted-gateway claim headers, or nothing. |
|
Package cache (de)serializes the introspected Catalog so a product can boot without touching pg_catalog: gzip-compressed JSON with a format version and a content hash for drift detection (`schema dump|check`).
|
Package cache (de)serializes the introspected Catalog so a product can boot without touching pg_catalog: gzip-compressed JSON with a format version and a content hash for drift detection (`schema dump|check`). |
|
Package confx is the configuration toolkit shared by the products: koanf loading with the YAML < env < changed-flags precedence, the env key mapper, reference-YAML generation from `koanf`+`doc` struct tags, and the config sections (with validation) that both products expose verbatim.
|
Package confx is the configuration toolkit shared by the products: koanf loading with the YAML < env < changed-flags precedence, the env key mapper, reference-YAML generation from `koanf`+`doc` struct tags, and the config sections (with validation) that both products expose verbatim. |
|
Package httpx holds the transport-neutral HTTP scaffolding shared by the products: CORS, gzip, the health handler, and ListenAndServe with the standard timeouts and graceful shutdown.
|
Package httpx holds the transport-neutral HTTP scaffolding shared by the products: CORS, gzip, the health handler, and ListenAndServe with the standard timeouts and graceful shutdown. |
|
Package inflect defines the naming pipeline shared by every product: an open Kind, the Input a naming hook receives, the Next continuation, and the pure string helpers (camel casing, singular/plural, enum value names).
|
Package inflect defines the naming pipeline shared by every product: an open Kind, the Input a naming hook receives, the Next continuation, and the pure string helpers (camel casing, singular/plural, enum value names). |
|
Package introspect reads pg_catalog and produces a Catalog — the single serializable model that drives API building, caching, and plugins.
|
Package introspect reads pg_catalog and produces a Catalog — the single serializable model that drives API building, caching, and plugins. |
|
Package jwtmint turns function results of one composite type into signed JWTs (PostGraphile's pgJwtType): a function returning schema.type yields an HS256 token string whose claims are the composite's fields; an exp field becomes the token expiry.
|
Package jwtmint turns function results of one composite type into signed JWTs (PostGraphile's pgJwtType): a function returning schema.type yields an HS256 token string whose claims are the composite's fields; an exp field becomes the token expiry. |
|
Package pgexec is the transport-neutral execution layer shared by pdbq and pdbr: pool setup, per-request transactions with RLS role switching and claims via set_config (SET LOCAL only, so pooled connections never leak identity), serialization-failure retries, identifier quoting, and PostgreSQL error classification with the dev/prod/strict message policy.
|
Package pgexec is the transport-neutral execution layer shared by pdbq and pdbr: pool setup, per-request transactions with RLS role switching and claims via set_config (SET LOCAL only, so pooled connections never leak identity), serialization-failure retries, identifier quoting, and PostgreSQL error classification with the dev/prod/strict message policy. |
|
Package plugin defines the transport-neutral hook surfaces and the ordered registry.
|
Package plugin defines the transport-neutral hook surfaces and the ordered registry. |
|
Package postgis models the PostGIS spatial types as a small, catalog-driven value layer shared by the schema builder, the SQL compiler, and the postgis plugin.
|
Package postgis models the PostGIS spatial types as a small, catalog-driven value layer shared by the schema builder, the SQL compiler, and the postgis plugin. |
|
smartcomments
|
|
|
catalog
Package catalog is the catalog half of the smart-comments plugin: it indexes PostGraphile-style tags parsed from database COMMENTs and applies the ones with a structural representation in the introspect.Catalog — @omit on whole objects, @omit create/update/delete → privilege flags, @primaryKey / @unique / @foreignKey synthesis, @notNull / @nullable, and @filterable / @sortable as a synthetic index.
|
Package catalog is the catalog half of the smart-comments plugin: it indexes PostGraphile-style tags parsed from database COMMENTs and applies the ones with a structural representation in the introspect.Catalog — @omit on whole objects, @omit create/update/delete → privilege flags, @primaryKey / @unique / @foreignKey synthesis, @notNull / @nullable, and @filterable / @sortable as a synthetic index. |
|
Package smarttags parses PostGraphile-style "smart comments": lines at the start of a database COMMENT beginning with '@' are machine-readable tags, everything after the first non-tag line is the human description.
|
Package smarttags parses PostGraphile-style "smart comments": lines at the start of a database COMMENT beginning with '@' are machine-readable tags, everything after the first non-tag line is the human description. |
|
Package testutil provides the shared test fixture: FixtureSQL (the DDL both products' compose stacks and e2e suites load) and FixtureCatalog, a hand-built Catalog mirroring what introspecting that DDL yields, so builder and compiler tests run without a database.
|
Package testutil provides the shared test fixture: FixtureSQL (the DDL both products' compose stacks and e2e suites load) and FixtureCatalog, a hand-built Catalog mirroring what introspecting that DDL yields, so builder and compiler tests run without a database. |
|
cmd/fixture
command
Command fixture prints testutil.FixtureSQL so product repos can generate their compose init script from the module:
|
Command fixture prints testutil.FixtureSQL so product repos can generate their compose init script from the module: |
|
Package watch re-introspects on DDL changes (dev mode).
|
Package watch re-introspects on DDL changes (dev mode). |
Click to show internal directories.
Click to hide internal directories.