Generates Elixir source code from a SpacetimeDB schema.
Pure function: takes a %Schema{} and a base module name, returns a list of
{relative_path, source_string} tuples ready to be written to disk.
Generated modules
BaseModule.Tables.TableName— defstruct +@type t+from_row/1for each tableBaseModule.Reducers— typed functions that callClient.call_reducerBaseModule.Client—use Spacetimedbex.Clientskeleton with config and stub callbacks
Summary
Functions
Generate source files from a schema.
Functions
@spec generate(Spacetimedbex.Schema.t(), String.t(), keyword()) :: [ {String.t(), String.t()} ]
Generate source files from a schema.
Returns [{relative_path, formatted_source}].