Safe Haskell | None |
---|---|
Language | Haskell2010 |
Add metadata tags as comments to SQL queries.
Synopsis
Documentation
sqlCommenterGoogle :: QueryTagsAttributes -> QueryTagsComment Source #
query-tags format as defined in the Spec https://google.github.io/sqlcommenter/spec/#sql-commenter
sqlCommenterStandard :: QueryTagsAttributes -> QueryTagsComment Source #
Default 'Query Tags' format in the Hasura GraphQL Engine Creates simple 'key=value' pairs of query tags. No sorting, No URL encoding. If the format of query tags is not mentioned in the metadata then, query-tags are formatted using hte below format
generateCommentTags :: NonEmpty Attribute -> Text Source #
Top-level algorithm to generate the string comment from list of
Attribute
s
Spec https://google.github.io/sqlcommenter/spec/#sql-commenter
See Note [Ambiguous SQLCommenterGoogle Specification]