API Reference schema_generator v0.4.0

Mix Tasks

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. The exception for this is if a sort function is tagged as :sg_override, using the syntax @tag :sg_override. This function will be kept, with other sort functions generated as usual. Any of the overridden functions will be added after the generated sort functions.

Task for removing query functions generated by this library. Will remove any code or comments added between schema_gen_tag attributes, with the exception being any function tagged with :sg_override. These will be rewritten in the space previously occupied by the generated functions.