You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multi-line SQL string literals are practically a must, even for simple programs.
Luckily, this library comes with the "sql" quasiquoter for handling this. Unfortunately, this is hidden away in the module Database.PostgreSQL.Simple.SqlQQ And this is among many other modules, that look like they are only for advanced functionality, so it is not clearly visible.
I was actually using a different haskell library for doing multiline SQL strings with postgresql-simple, because I didn't realize that "sql" existed. It was only by accident that I discovered it existed.
I suggest adding to the haddock overview in Database.PostgreSQL.Simple a section that mentions this feature (perhaps with the subheading "Multi-line SQL queries"), with a short example of how to use it.
Thank you
The text was updated successfully, but these errors were encountered:
Multi-line SQL string literals are practically a must, even for simple programs.
Luckily, this library comes with the "sql" quasiquoter for handling this. Unfortunately, this is hidden away in the module
Database.PostgreSQL.Simple.SqlQQ
And this is among many other modules, that look like they are only for advanced functionality, so it is not clearly visible.I was actually using a different haskell library for doing multiline SQL strings with postgresql-simple, because I didn't realize that "sql" existed. It was only by accident that I discovered it existed.
I suggest adding to the haddock overview in
Database.PostgreSQL.Simple
a section that mentions this feature (perhaps with the subheading "Multi-line SQL queries"), with a short example of how to use it.Thank you
The text was updated successfully, but these errors were encountered: