class

Spacetime::Codegen::CrystalGenerator

Inherits Reference < Object

Generates strongly-typed Crystal client bindings (Spacetime.table structs, custom product types, simple sum enums, and typed reducer call helpers) from a Schema::ModuleSchema.

Constructors

new(schema : Schema::ModuleSchema, module_name : String = "GeneratedModule")
Source

Instance methods

crystal_type_for(ty : SATS::AlgebraicType) : String
Source
generate
Source
module_name
Source
schema
Source