{"categories":[{"label":"Linguistic","url":"https://skillfed.io/packages/category/text-processing-linguistic"},{"label":"Compilers","url":"https://skillfed.io/packages/category/software-development-compilers"}],"enrichment":{"capability":"Provides a tree-sitter SQL grammar for parsing SQL code into an abstract syntax tree, enabling programmatic analysis and manipulation of SQL statements.","skillfed_tags":["sql-parsing","tree-sitter","ast-generation"],"use_cases":["Build SQL linters or formatters that need to parse and understand SQL syntax structure.","Implement SQL code analysis tools that extract information about queries, tables, or columns.","Create IDE plugins or editor extensions that provide SQL syntax highlighting or error detection.","Develop database schema migration tools that parse and transform SQL DDL statements.","Analyze SQL query performance or security by examining the parsed syntax tree."],"what_it_does":"tree-sitter-sql is a tree-sitter grammar module that enables parsing of SQL code into an abstract syntax tree. It provides a general, permissive SQL grammar designed to handle SQL syntax across multiple dialects, drawing from SQLite, PostgreSQL, and MariaDB references. The package is distributed as precompiled wheels for common platforms, reducing installation friction compared to building from source.\n\nThe grammar itself is maintained separately from the parser implementation; the package installs the compiled parser binary that tree-sitter tools can use to analyze SQL code. It's intended for developers building SQL analysis tools, linters, formatters, or any system that needs to programmatically understand SQL structure. The package requires Python 3.10+ and has no runtime dependencies beyond tree-sitter itself.","worth_installing":"Yes, if you need to parse SQL code programmatically and are already using tree-sitter. The package is actively maintained, has no known vulnerabilities, and uses a permissive MIT license. Install friction is moderate due to the requirement for Python 3.10+ and the need to pair it with tree-sitter bindings, but prebuilt wheels are available for common platforms. Not worth installing if you don't need tree-sitter integration or are on Python versions below 3.10."},"id":"tree-sitter-sql","links":{"html":"https://skillfed.io/packages/tree-sitter-sql","md":"https://skillfed.io/packages/tree-sitter-sql.md","pypi":"https://pypi.org/project/tree-sitter-sql/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-10-01","license_spdx":null,"license_treatment":"permissive","name":"tree-sitter-sql","python_support":"supports_current","summary":"Tree-sitter Grammar for SQL"},"popularity":{"monthly_downloads":2185061,"position":3227,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.3.11"}
