forked from jehugaleahsa/SQLGeneration
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempting to add batch parsing support - jehugaleahsa#14
1. Created a unit test 'TestBatch_MultipleInserts' that tests whether we can parse sql text that has 2 seperate insert statements in, using semi colon as the line termnator. 2. Extended the SqlTokenRegistry class with support for LineTerminator. 3. Extended the SqlGrammar class, the defineStart() method was changed so that it expects an optional LineTerminator after every statement. I'm now stuck.. I think I want the Parser Class to return a MatchResult that includes all the Statements, however at the moment it just returns the individual InsertStatement - although it does correctly detect the LineTerminator token..
- Loading branch information
Showing
3 changed files
with
45 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters