{"id":15002469,"url":"https://github.com/bruce-dunwiddie/tsql-parser","last_synced_at":"2025-05-15T20:01:07.004Z","repository":{"id":3632747,"uuid":"46535559","full_name":"bruce-dunwiddie/tsql-parser","owner":"bruce-dunwiddie","description":"Library Written in C# For Parsing SQL Server T-SQL Scripts in .Net","archived":false,"fork":false,"pushed_at":"2024-06-19T09:53:47.000Z","size":1993,"stargazers_count":331,"open_issues_count":12,"forks_count":56,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-05-12T04:20:00.741Z","etag":null,"topics":["parse","parser","parsing-scripts","sql","sql-server","statement-parsers","tsql","tsql-parser"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bruce-dunwiddie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-20T03:02:49.000Z","updated_at":"2025-04-09T06:36:15.000Z","dependencies_parsed_at":"2024-06-19T17:08:46.807Z","dependency_job_id":"21c2b1fe-c79b-4a1d-b4ca-6d77c1053b7c","html_url":"https://github.com/bruce-dunwiddie/tsql-parser","commit_stats":{"total_commits":297,"total_committers":9,"mean_commits":33.0,"dds":0.06734006734006737,"last_synced_commit":"c774854103b8f9760fc25530b11935d0eaf5c3c6"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruce-dunwiddie%2Ftsql-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruce-dunwiddie%2Ftsql-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruce-dunwiddie%2Ftsql-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruce-dunwiddie%2Ftsql-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bruce-dunwiddie","download_url":"https://codeload.github.com/bruce-dunwiddie/tsql-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254414457,"owners_count":22067263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["parse","parser","parsing-scripts","sql","sql-server","statement-parsers","tsql","tsql-parser"],"created_at":"2024-09-24T18:50:32.913Z","updated_at":"2025-05-15T20:01:06.623Z","avatar_url":"https://github.com/bruce-dunwiddie.png","language":"C#","funding_links":[],"categories":["C\\#","SQL Server Web Resources"],"sub_categories":[],"readme":"# tsql-parser\nLibrary Written in C# For Parsing SQL Server T-SQL Scripts in .Net\n\nAvailable on Nuget, [TSQL.Parser](https://www.nuget.org/packages/TSQL.Parser/).\n\n    Install-Package TSQL.Parser\n\n\n[![NuGet](https://img.shields.io/nuget/dt/TSQL.Parser.svg)](https://www.nuget.org/packages/TSQL.Parser/)\n\n[![AppVeyor](https://ci.appveyor.com/api/projects/status/lcfjc4jox76dia8q?svg=true)](https://ci.appveyor.com/project/bruce-dunwiddie/tsql-parser)\n\n[![Coverity](https://scan.coverity.com/projects/9334/badge.svg)](https://scan.coverity.com/projects/bruce-dunwiddie-tsql-parser)\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n### Current Features\n- Full T-SQL token implementation.\n- Streaming tokenizer for parsing scripts into tokens.\n- Returns tokens of type characters, comments, identifiers, keywords, literals, variables, and operators.\n- Handles both single line and multi line comments.\n- Select, Insert, Update, Delete, and Merge statement parsers.\n- .Net Framework 4.0+ and .Net Core 2.0+ compatible.\n\n### Code Samples\n- See [wiki](\u003chttps://github.com/bruce-dunwiddie/tsql-parser/wiki/TSQL-Parser-Code-Samples\u003e) for simple code examples and output.\n- See [test cases](\u003chttps://github.com/bruce-dunwiddie/tsql-parser/tree/master/TSQL_Parser/Tests\u003e) in project.\n\n### Class Documentation\n- [bruce-dunwiddie.github.io/tsql-parser/](\u003chttp://bruce-dunwiddie.github.io/tsql-parser/\u003e)\n\n### Some Possible Current Uses\n- [Colorization](\u003chttps://github.com/bruce-dunwiddie/tsql-color\u003e)\n- [Dependency Parsing](\u003chttps://github.com/bruce-dunwiddie/tsql-depends\u003e)\n- Parsing comments.\n- Find and replace.\n- Script validation.\n\n### Future Additions\n- More statement parsers built on top of tokenizer.\n\n## Building From Source\nIf you're looking to fork the project or build from source, the dependencies below are required for backwards compatibility support.\n\n### .Net Framework 4.5.2\n- Download and install the [.Net Framework 4.5.2 Targeting Pack](\u003chttps://www.microsoft.com/en-us/download/details.aspx?id=42637\u003e).\n\n### Sandcastle Help File Builder\n- Follow instructions for installing the latest [SFHB release](\u003chttps://github.com/EWSoftware/SHFB/releases\u003e).\n- Update the target .Net Framework on SandcastleDocs project if prompted.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbruce-dunwiddie%2Ftsql-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbruce-dunwiddie%2Ftsql-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbruce-dunwiddie%2Ftsql-parser/lists"}