Skip to content

Library Written in C# For Parsing SQL Server T-SQL Scripts in .Net

License

Notifications You must be signed in to change notification settings

swidz/tsql-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tsql-parser

Library Written in C# For Parsing SQL Server T-SQL Scripts in .Net

Available on Nuget, TSQL.Parser.

Install-Package TSQL.Parser

NuGet

Travis

AppVeyor

Coverage

Code Quality

Coverity

License

Current Features

  • Full T-SQL token implementation.
  • Streaming tokenizer for parsing scripts into tokens.
  • Returns tokens of type characters, comments, identifiers, keywords, literals, variables, and operators.
  • Handles both single line and multi line comments.
  • Select statement parser.
  • .Net Framework 4.0+ and .Net Core 2.0+ compatible.

Some Possible Current Uses

  • Colorization
  • Parsing comments.
  • Find and replace.
  • Script validation.

Future Additions

  • More statement parsers built on top of tokenizer.

Code Samples

  • See wiki for simple code examples and output.
  • See test cases in project.

Class Documentation

About

Library Written in C# For Parsing SQL Server T-SQL Scripts in .Net

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.3%
  • Batchfile 0.7%