graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Data.SqlCommenter

Description

Add metadata tags as comments to SQL queries.

Synopsis

Documentation

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 Attributes Spec https://google.github.io/sqlcommenter/spec/#sql-commenter See Note [Ambiguous SQLCommenterGoogle Specification]