galchemy/schema/generator/gleam
Types
pub type GeneratedModule {
GeneratedModule(
module_path: String,
file_path: String,
source: String,
)
}
Constructors
-
GeneratedModule( module_path: String, file_path: String, source: String, )
pub type GeneratorOptions {
GeneratorOptions(
root_module: String,
include_schema_segment: Bool,
)
}
Constructors
-
GeneratorOptions( root_module: String, include_schema_segment: Bool, )
Values
pub fn default_options(root_module: String) -> GeneratorOptions
pub fn generate(
snapshot: model.SchemaSnapshot,
options: GeneratorOptions,
) -> List(GeneratedModule)
pub fn generate_table(
table_schema: model.TableSchema,
options: GeneratorOptions,
) -> GeneratedModule
pub fn generate_table_with_relations(
table_schema: model.TableSchema,
table_relations: relation.TableRelations,
options: GeneratorOptions,
) -> GeneratedModule
pub fn without_schema_segment(
options: GeneratorOptions,
) -> GeneratorOptions