AshCsvInterchange. Transformers. ValidateReadAction
(AshCsvInterchange v0.1.0)
Copy Markdown
View Source
Compile-time validation for csv_exports entities. For every
csv_export entity declared on the resource:
- The configured
read_actionexists on the resource and is a:readaction. - Every column
fieldresolves to an attribute, calculation, or aggregate on the resource. - Column headers are unique within the entity.
- If a column's
format:opt is a function, it has arity 1. If it is{module, function, extra_args}, the module exportsfunction/(length(extra_args) + 1).
Failures raise Spark.Error.DslError pointing at the offending entity.
Summary
Functions
Callback implementation for Spark.Dsl.Transformer.after_compile?/0.
Callback implementation for Spark.Dsl.Transformer.before?/1.
Functions
Callback implementation for Spark.Dsl.Transformer.after_compile?/0.
Callback implementation for Spark.Dsl.Transformer.before?/1.