Open sir4ur0n opened 1 year ago
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?