百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

tsql-parser

> 编程语言
开源

使用 C# 编写的库,用于在 .Net 中解析 SQL Server T-SQL 脚本

337 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

使用 C# 编写的库,用于在 .Net 中解析 SQL Server T-SQL 脚本

tsql-parser

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

Available on Nuget, TSQL.Parser.

Install-Package TSQL.Parser

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.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#parseparserparsing-scriptssql

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言