SelectoMix.DomainGenerator (selecto_mix v0.4.7)
Generates Selecto domain configuration files from schema introspection data.
This module creates complete, functional Selecto domain files that users can immediately use in their applications. The generated files include helpful comments, overlay hooks, and suggested configurations.
This module is a thin facade; the actual rendering work is split across:
SelectoMix.DomainGenerator.FileTemplate- renders the generated domain module source (moduledoc, helper functions, module naming)SelectoMix.DomainGenerator.MapBuilder- builds the domain configuration map (source, columns, associations, joins, etc.)SelectoMix.DomainGenerator.SchemaExpansion- introspects related schemas and infers table/schema names for expansion
Summary
Functions
Resolve the generated domain module name for a source/config pair.
Generate a complete Selecto domain file.
Generate the core domain configuration map.
Functions
Resolve the generated domain module name for a source/config pair.
Generate a complete Selecto domain file.
Creates a comprehensive domain configuration file with:
- Schema-based field and type definitions
- Association configurations for joins
- Suggested default selections and filters
- Overlay hooks for user modifications
- Documentation and usage examples
Generate the core domain configuration map.