Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bruce-dunwiddie/tsql-parser
Library Written in C# For Parsing SQL Server T-SQL Scripts in .Net
https://github.com/bruce-dunwiddie/tsql-parser
parse parser parsing-scripts sql sql-server statement-parsers tsql tsql-parser
Last synced: about 1 month ago
JSON representation
Library Written in C# For Parsing SQL Server T-SQL Scripts in .Net
- Host: GitHub
- URL: https://github.com/bruce-dunwiddie/tsql-parser
- Owner: bruce-dunwiddie
- License: apache-2.0
- Created: 2015-11-20T03:02:49.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-06-19T09:53:47.000Z (5 months ago)
- Last Synced: 2024-09-29T14:03:15.417Z (about 1 month ago)
- Topics: parse, parser, parsing-scripts, sql, sql-server, statement-parsers, tsql, tsql-parser
- Language: C#
- Homepage:
- Size: 1.9 MB
- Stars: 324
- Watchers: 25
- Forks: 56
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tsql-parser
Library Written in C# For Parsing SQL Server T-SQL Scripts in .NetAvailable on Nuget, [TSQL.Parser](https://www.nuget.org/packages/TSQL.Parser/).
Install-Package TSQL.Parser
[![NuGet](https://img.shields.io/nuget/dt/TSQL.Parser.svg)](https://www.nuget.org/packages/TSQL.Parser/)
[![AppVeyor](https://ci.appveyor.com/api/projects/status/lcfjc4jox76dia8q?svg=true)](https://ci.appveyor.com/project/bruce-dunwiddie/tsql-parser)
[![Coverity](https://scan.coverity.com/projects/9334/badge.svg)](https://scan.coverity.com/projects/bruce-dunwiddie-tsql-parser)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
### 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, Insert, Update, Delete, and Merge statement parsers.
- .Net Framework 4.0+ and .Net Core 2.0+ compatible.### Code Samples
- See [wiki]() for simple code examples and output.
- See [test cases]() in project.### Class Documentation
- [bruce-dunwiddie.github.io/tsql-parser/]()### Some Possible Current Uses
- [Colorization]()
- [Dependency Parsing]()
- Parsing comments.
- Find and replace.
- Script validation.### Future Additions
- More statement parsers built on top of tokenizer.## Building From Source
If you're looking to fork the project or build from source, the dependencies below are required for backwards compatibility support.### .Net Framework 4.5.2
- Download and install the [.Net Framework 4.5.2 Targeting Pack]().### Sandcastle Help File Builder
- Follow instructions for installing the latest [SFHB release]().
- Update the target .Net Framework on SandcastleDocs project if prompted.