Skip to content

Adding comments to generated SQL #643

Open

Description

@charJe

Is there a way to construct SQL statement in the usual way, then add a an SQL comment with custom content, to the query before sending it to the database? Ideally this comment would be able to be added at any point in the construction process; for example, I could add a comment to a filter_ and it would show up above the where in SQL. It would also be acceptable to only be able to add the comment right before runBeamPostgres or runSelect*; Maybe a different version of these functions that would take a comment string.

Activity

  1. tathougies commented on Feb 22, 2023

    @tathougies
    Collaborator

    All the database syntaxes in this repository are ultimately newtype wrappers over what amounts to string builders, so this is fairly easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions