canonical / sqlair

Friendly type mapping for SQL databases
Apache License 2.0
17 stars 9 forks source link

Full advance function #31

Closed Aflynn50 closed 1 year ago

Aflynn50 commented 1 year ago

This PR adds a complete advance function.

The advance function passes over quoted strings and stops at interesting characters. When it finds them it passes control back to the main Parse loop.

This advance function changes the behaviour of the parser. Instead of quoted strings being handled in the parser loop they are handled here in the advance function (as a result of this the BypassParts in the tests had to be merged).