DerekStride / tree-sitter-sql

SQL grammar for tree-sitter
http://derek.stride.host/tree-sitter-sql/
MIT License
147 stars 47 forks source link

add: `copy from stdin` #257

Closed matthias-Q closed 3 months ago

matthias-Q commented 3 months ago

adds COPY FROM STDIN parsing

Closes #256

matthias-Q commented 3 months ago

@DerekStride @dmfay I have not implemented the data block in the SQL statement like in the example given in the issue:

COPY some_table (a, b, c) FROM STDIN (FORMAT CSV);
1,2,3
d,e,f
\.

I am quite unsure if we want to do that.