Re-exports§
pub use backend_trait::CodegenBackend;pub use backend_trait::RbsEnumInfo;pub use backend_trait::RbsGenerationContext;pub use backend_trait::RbsQueryInfo;pub use backend_trait::ResolvedColumn;pub use backend_trait::ResolvedParam;pub use backends::get_backend;pub use overrides::TypeOverride;
Modules§
- backend_
options - backend_
trait - backends
- overrides
- provenance
- The provenance header line every generated file carries, and the exact byte ordering it sits in.
- resolve
- validation
Structs§
- Generated
Code - Nested
Struct Def - One rendered nested-aggregate struct definition, paired with the name it declares so file writers can deduplicate.
Functions§
- degrade_
unsupported_ nested_ structs - Degradation pass for nested-aggregate columns (
json_agg(o.*),row_to_json(u.*)). Must run beforeresolve::resolve_columns– every caller that resolvesAnalyzedColumns into a backend’s types needs this, not justgenerate_with_backend_and_overrides:scythe-cli’s RBS signature generation (generate_rbs_if_supported) callsresolve::resolve_columnsdirectly on a second, independent path, so it must run this pass too or it silently bypasses the byte-identity guarantee for any backend that hasn’t opted in. - generate
- Backward-compatible: generate code using the default sqlx backend.
- generate_
from_ catalog - Stub for catalog-level codegen. Returns default for now.
- generate_
single_ enum_ def - Backward-compatible: generate a single enum definition (sqlx backend). Uses the manifest directly for backward compatibility with existing callers.
- generate_
single_ enum_ def_ with_ backend - Generate a single enum definition using a specific backend.
- generate_
with_ backend - Generate code using a specific backend.
- generate_
with_ backend_ and_ overrides - Generate code using a specific backend with type overrides.
- get_
manifest_ for_ backend - Get the manifest for a backend. Defaults to PostgreSQL engine.
- load_
or_ default_ manifest - Backward-compatible: load the default sqlx manifest.
- nested_
type_ is_ emitted - Whether
sql_nameis reachable from a nested-aggregate struct the backend actually emitted a definition for. - singularize
- Simple singularization: remove trailing ‘s’.