Bogdan Popa <bogdan@defn.io>
This module provides utilities for turning ".sql" files into virtual-statement s in a way that cooperates with raco dist.
syntax
( define-query-definer define-idpath-expr)
The syntax of define-id is:
binder = query-id| [query-idfilename-expr]filename-expr : path-string?
A define-id form binds the query-ids by loading the contents of their associated files (relative to path-expr) at runtime and passing those contents to virtual-statement . If a filename-expr is not provided for a binder, it defaults to the result of appending ".sql" to the string version of query-id.
For example:
"metadata-queries")(define-metadata-queryget-metadataput-metadata)