hasql-th icon indicating copy to clipboard operation
hasql-th copied to clipboard

support comments

Open mwotton opened this issue 5 years ago • 1 comments

I have some large chunks of pre-existing sql that are heavily commented, to make it clear what's going on. Unfortunately hasql-th doesn't seem to cope:

select   "bar" :: text as subnets

works fine, but

select   "bar" :: text as subnets -- foo

gives me this:

 |         
1 | select   "bar" :: text as subnets -- foo
  |                                   ^
unexpected '-'
expecting end of input or white space

mwotton avatar Dec 30 '19 20:12 mwotton

This will require an extension to the parser. I'm leaving this for PRs.

nikita-volkov avatar Jan 06 '20 08:01 nikita-volkov