Entry point for code generation.
Given a resolved %Flatbuf.Schema{} and options, produces a list of
{module_name, source} pairs covering the Wire helper plus one module
per enum, struct, and table.
Summary
Functions
Generate all artifacts for the schema.
Types
Functions
@spec generate(Flatbuf.Schema.t(), options()) :: [artifact()]
Generate all artifacts for the schema.
Options:
:wire_module(required) — module name for the emitted wire helper. Every generated table aliases this module.:namespace(optional) — string like"Arrow.Ipc.Flatbuf". When set, every generated module's name uses the override as its root, with the schema type's short name appended. The original namespace in the.fbsfile is ignored.:niceties(optional, default[]) — list of atoms enabling opt-in protocols/behaviours on generated root tables::behaviour—@behaviour Flatbuf.Table.:jason—@derive Jason.Encoderon the table struct.