{"id":43311380,"url":"https://github.com/zlepper/mssql-validator","last_synced_at":"2026-02-01T21:17:05.786Z","repository":{"id":65162473,"uuid":"350456141","full_name":"zlepper/mssql-validator","owner":"zlepper","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-27T12:22:19.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-16T07:41:34.023Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zlepper.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-22T18:55:46.000Z","updated_at":"2024-06-13T19:12:46.000Z","dependencies_parsed_at":"2023-01-05T05:04:02.121Z","dependency_job_id":null,"html_url":"https://github.com/zlepper/mssql-validator","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":0.09090909090909094,"last_synced_commit":"53d741fbb12dcc2d1cd27e6dd37daa6cf0171fd5"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zlepper/mssql-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zlepper%2Fmssql-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zlepper%2Fmssql-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zlepper%2Fmssql-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zlepper%2Fmssql-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zlepper","download_url":"https://codeload.github.com/zlepper/mssql-validator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zlepper%2Fmssql-validator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28991588,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T20:57:35.821Z","status":"ssl_error","status_checked_at":"2026-02-01T20:57:29.580Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-02-01T21:17:05.085Z","updated_at":"2026-02-01T21:17:05.781Z","avatar_url":"https://github.com/zlepper.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MSSQL Validator\nValidates that your T-SQL files are valid T-SQL.\n\n## Example\nThis will checkout your code and validate all files in the `scripts` directory, that ends in .sql, recursively.\n\n\n```yaml\nname: SQL\n\non:\n  push:\n\njobs:\n  validate-sql:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - name: Validate SQL\n        uses: zlepper/mssql-validator@v1\n        with:\n          pattern: 'scripts/**/*.sql'\n```\n\n## Parameters\n|name|description|\n|----|-----------|\n|pattern|The file glob pattern to use to find files to check. Uses [DotNet.Glob](https://github.com/dazinator/DotNet.Glob) for matching, so check their documentation for more information on what patterns are supported|\n\n\n## How does it work\nInternally there is a tiny C# program, seen in the `Validator` folder, which connects to a sql server\ninstance that is running inside the same docker image, and then uses [`SET PARSEONLY ON`](https://docs.microsoft.com/en-us/sql/t-sql/statements/set-parseonly-transact-sql?view=sql-server-ver15) to \"execute\" the code. That way only the syntax itself is validated, and it doesn't requite a database that actually exists, or a potential slow execution of all the scripts. \n\nThis also means, that it doesn't validate that you code will actually work, just that it is valid T-SQL, and that you at least shouldn't get a syntax error when trying to run the code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzlepper%2Fmssql-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzlepper%2Fmssql-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzlepper%2Fmssql-validator/lists"}