Documentation
¶
Overview ¶
Package methods type-checks and statically interprets GolemModel and GraphQL extension declarations.
The interpreter consumes generated descriptor overlays; it never executes application code and never recovers meaning by reparsing source text.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Dir string
ModulePath string
Env []string
Compilation ir.CompilationIR
Packages []modelcodegen.PackageSpec
Bootstrap modelcodegen.Result
Registry *schemaexpr.Registry
IDRegistry *ir.IDRegistry
GolemImportPath string
}
Config contains the resolved model graph and the package locations needed to type-check the registered model packages on a clean checkout.
type RelationOptionDeclaration ¶
type RelationOptionDeclaration struct {
ModelID ir.ModelID
RelationID ir.RelationID
RelationField ir.FieldID
OnUpdate *ir.ReferentialAction
OnDelete *ir.ReferentialAction
Provider ir.ProviderScope
Span ir.SourceSpan
}
RelationOptionDeclaration is kept separate from keyindex input because relation linking owns foreign-key construction.
type Result ¶
type Result struct {
Advanced []keyindex.AdvancedModelDeclarations
RelationOptions []RelationOptionDeclaration
OptimisticConcurrency []compilerconcurrency.Declaration
GraphQLModels []graphqlcontract.ModelPatch
GraphQLComputed []graphqlextension.ComputedDeclaration
GraphQLCustom []graphqlextension.CustomOperationDeclaration
AnalyticsModels []analyticscontract.ModelPatch
Extensions []ir.ProviderExtensionIR
Diagnostics []ir.Diagnostic
}
Click to show internal directories.
Click to hide internal directories.