Skip to content

Commit c655613

Browse files
author
Mark Junker
committed
Added a README
1 parent 7d5b7c8 commit c655613

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# SQL Batch Parser
2+
3+
This is a work-in-progress and **not** for production use.
4+
5+
## Intent
6+
7+
This project tries to solve the problem of finding (batches of) SQL statements
8+
to solve problems like `GO` in a command in an embedded SQL script in the
9+
FluentMigrator project.
10+
11+
## Structure
12+
13+
The main components are:
14+
15+
- `IRangeSearcher`
16+
- `ISpecialTokenSearcher`
17+
18+
### `IRangeSearcher`
19+
20+
Search for a range of things - like comments, quoted identifiers and SQL
21+
strings.
22+
23+
### `ISpecialTokenSearcher`
24+
25+
Search for special tokens like `GO`, or `;`. This allows
26+
splitting the SQL script into SQL statements and batches.

TestSqlServerBatchParser.sln

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FluentMigrator.BatchParser"
99
EndProject
1010
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FluentMigrator.BatchParser.Tests", "FluentMigrator.BatchParser.Tests\FluentMigrator.BatchParser.Tests.csproj", "{DE35A1DA-9DD3-44AB-8CE4-3059355D239F}"
1111
EndProject
12+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{B03559BE-8EFF-498B-BCC3-C98B9C9BC701}"
13+
ProjectSection(SolutionItems) = preProject
14+
README.md = README.md
15+
EndProjectSection
16+
EndProject
1217
Global
1318
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1419
Debug|Any CPU = Debug|Any CPU

0 commit comments

Comments
 (0)