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
Currently the way to specify that a field is nullable is to suffix the type hint with ?, e.g. SELECT x :: text?.
Unfortunately because this is invalid SQL syntax, it makes it harder to copy/paste SQL queries between an SQL editor/PSQL and Haskell.
Have you already considered an SQL-friendly syntax? E.g. using a comment?
SELECT x :: text/*null*/
The text was updated successfully, but these errors were encountered:
I have not and this does sound like a great idea! However this will possibly require some work on the parser, because it likely doesn't support comments for now. I don't have the time for that, so I'm leaving this one open for PRs.
Currently the way to specify that a field is nullable is to suffix the type hint with
?
, e.g.SELECT x :: text?
.Unfortunately because this is invalid SQL syntax, it makes it harder to copy/paste SQL queries between an SQL editor/PSQL and Haskell.
Have you already considered an SQL-friendly syntax? E.g. using a comment?
The text was updated successfully, but these errors were encountered: