{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/7"},{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/16"}],"enrichment":{"capability":"Parses SQL queries into JSON-serializable parse trees, and can generate SQL back from JSON, supporting multiple database flavors including MySQL, SQLServer, and BigQuery.","skillfed_tags":["sql-parsing","query-translation","json-serialization"],"use_cases":["Translate SQL queries between different database systems by parsing to JSON and regenerating for the target dialect","Build query analysis tools that inspect SQL structure programmatically via JSON representation","Convert SQL to alternative query languages or intermediate representations for query optimization","Validate or normalize SQL syntax by parsing and reformatting through the JSON layer","Extract metadata from SQL (table names, column references, join conditions) by traversing the parse tree"],"what_it_does":"mo-sql-parsing converts SQL queries into JSON objects where each SQL clause becomes a named property. The parser originally targeted MySQL but now supports multiple database engines including SQLServer (with bracket identifiers) and BigQuery (with array syntax). It handles complex queries including subqueries, WITH clauses, window functions, CREATE/DROP/ALTER statements, and basic DML (INSERT/UPDATE/DELETE), with limited UDF support.\n\nThe package also works in reverse: you can generate SQL from a JSON parse tree using the format function. It offers multiple parsing modes\u2014parse_mysql for double-quoted strings, parse_sqlserver for bracket identifiers, and options to customize NULL representation and function call format (simple operator vs. normalized). The output is designed to be JSON-serializable, making it suitable for downstream translation to other datastores or query engines.","worth_installing":"Yes, if you need to parse SQL into a structured, JSON-friendly format for cross-database translation or query analysis. The package is stable (Production/Stable status) with broad Python version support and no known vulnerabilities. The aging maintenance status (290 days since last release) is a minor concern for active development, but the repository remains responsive to issues. The MPL 2.0 copyleft license requires disclosure of modifications. Install friction is low."},"id":"mo-sql-parsing","links":{"html":"https://skillfed.io/packages/mo-sql-parsing","md":"https://skillfed.io/packages/mo-sql-parsing.md","pypi":"https://pypi.org/project/mo-sql-parsing/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-10-28","license_spdx":null,"license_treatment":"copyleft","name":"mo-sql-parsing","python_support":"unspecified","summary":"More SQL Parsing! Parse SQL into JSON parse tree"},"popularity":{"monthly_downloads":204381,"position":9609,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"11.697.25301"}
