mix ecto.gen.queries (schema_generator v0.1.3)
Task for running a generator to write query functions. All query functions are designed to be composable, as in a query is required as the first argument. The task takes command line options to control generating functions to only what is necessary. If a function already exists with the same name as a generated function, it will be skipped.
Command line options
--skip_fields
- won't generate field based query functions, aka by_field(query, field)--skip_assocs
- won't generate assoc based query functions, aka with_assoc(query)--skip_sort
- won't generate field sorting query functions, aka sort(query, "field_asc")--primary_key
- allows overriding the default primary key function generation when the pk isn't found in the file
Summary
Functions
Link to this function
generate(path_or_files, options)
Link to this function