Closed nathanielks closed 5 years ago
It might be possible to activate a flag saying "treat the following queries like they're an insert statement for table X until we receive a new query."
We could also store the initial INSERT INTO
statement and then prepend it onto the following lines until a new query is received.
Another option with the flag option I presented before would be to look for a ;
at the end of the line, which would signify that query is terminated.
I discovered today that this won't be able to parse multi-line insert statements like the following SQL:
Because we're parsing line by line, it reads each value as its own SQL statement which breaks the parser. I need to either merge them all into a single line or find some other solution.