awesome-repositories.com
Blog
awesome-repositories.com

Descubre los mejores repositorios open-source con nuestra búsqueda potenciada por IA.

ExplorarBúsquedas curadasAlternativas open-sourceSoftware autohospedableBlogMapa del sitio
ProyectoAcerca deCómo clasificamosPrensaServidor MCP
Aviso legalPrivacidadTérminos
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
jdorn avatar

jdorn/sql-formatter

0
View on GitHub↗
jdorn.github.com/sql-formatter↗

Sql Formatter

This project is a PHP library designed for parsing, beautifying, and syntax-highlighting SQL queries. It provides a set of utilities to improve the readability of database code, facilitate debugging, and assist in the maintenance of complex query structures.

The library distinguishes itself by offering both aesthetic and functional processing capabilities. It can transform raw SQL strings into structured, indented formats for human review, or compress them by removing comments and unnecessary whitespace to optimize them for network transmission and logging. Additionally, it includes a syntax highlighter that injects markup into tokens, allowing for color-coded visual representation of database logic.

Beyond formatting, the tool functions as a query parser capable of splitting batches of database commands into individual, executable statements. It handles these tasks through a state-machine parsing model that tracks query context, such as nested structures and parentheses, ensuring that the original logic remains intact while the string is processed.

Búsqueda con IA

Explora más repositorios increíbles

Describe lo que necesitas en lenguaje sencillo: la IA clasifica miles de proyectos open-source curados por relevancia.

Start searching with AI

Features

  • SQL Formatters - Provides a comprehensive PHP library for beautifying, compressing, and syntax highlighting SQL queries.
  • SQL Parsers - Parses SQL strings to split batches into individual statements and strip comments for cleaner execution.
  • Context-Aware State Parsers - Tracks query context and nested structures using a state-machine model to ensure logic remains intact during processing.
  • Delimiter-Aware Batch Splitters - Splits batches of database commands into individual, executable statements by identifying termination characters.
  • Database Query Optimizations - Optimizes SQL queries by removing unnecessary whitespace and comments to reduce payload size for transmission.
  • Query Readability Formatters - Improves the visual structure of complex database queries through automatic indentation and formatting.
  • Query Compression Utilities - Compresses database queries by removing comments and unnecessary whitespace for efficient network transmission.
  • SQL Statement Parsing - Splits SQL batches into individual queries by parsing strings based on specific delimiters.
  • Batch Statement Execution - Parses multi-statement SQL strings into individual commands to simplify the management of complex migration scripts.
  • Regex Token Stream Lexers - Processes raw SQL strings into typed token sequences using regex patterns for keywords, operators, and identifiers.
  • SQL Syntax Highlighting - Applies color-coded formatting to SQL queries to make complex logic easier to scan and troubleshoot.
  • Manipulación de cadenas - Formats SQL queries for readability.
3,857 estrellas·184 forks·HTML·MIT·4 vistas

Historial de estrellas

Gráfico del historial de estrellas de jdorn/sql-formatterGráfico del historial de estrellas de jdorn/sql-formatter

Alternativas open-source a Sql Formatter

Proyectos open-source similares, clasificados según cuántas características comparten con Sql Formatter.
  • andialbrecht/sqlparseAvatar de andialbrecht

    andialbrecht/sqlparse

    4,008Ver en GitHub↗

    sqlparse is a Python library for the programmatic analysis and manipulation of SQL statements. It provides a non-validating parser that breaks down SQL text into tokens and a utility to divide strings containing multiple queries into individual statements. The project includes a code formatter that reorganizes SQL statements using consistent indentation and keyword casing. It also provides mechanisms for automating this formatting and linting process through version control hooks to maintain code consistency.

    Python
    Ver en GitHub↗4,008
  • tobymao/sqlglotAvatar de tobymao

    tobymao/sqlglot

    9,336Ver en GitHub↗

    sqlglot is a SQL parser and transpiler that represents queries as abstract syntax trees to enable structural analysis, modification, and semantic transformation. It functions as a dialect translator and query optimizer, converting SQL code between different database engines and simplifying syntax trees through rule-based normalization. The project provides a framework for defining custom SQL dialects by overriding tokenizers, parsers, and generators. It includes a lineage analyzer to track data flow from source tables through complex queries to identify the origin of specific columns. Additi

    Python
    Ver en GitHub↗9,336
  • analysis-tools-dev/static-analysisAvatar de analysis-tools-dev

    analysis-tools-dev/static-analysis

    14,389Ver en GitHub↗

    This project is a comprehensive, curated directory of static analysis, linting, and security scanning utilities. It serves as a central resource for developers to discover, compare, and select tools based on specific programming languages, licensing models, and integration requirements. The directory distinguishes itself by providing deep metadata for each listed utility, including community-driven popularity rankings, maintenance status, and deployment methods. By aggregating these tools into a single searchable index, it enables teams to identify solutions for enforcing coding standards, ma

    Rustanalysisawesome-listcode-quality
    Ver en GitHub↗14,389
  • jooq/jooqAvatar de jOOQ

    jOOQ/jOOQ

    6,666Ver en GitHub↗

    jOOQ is a type-safe SQL query builder for Java that generates code from live database schemas, enabling compile-time validation of SQL syntax and data types. Its core identity is built around a fluent DSL that mirrors SQL structure, a code generator that maps tables, views, and routines to Java objects, and a multi-dialect engine that translates the same DSL into vendor-specific SQL for over 30 databases. The project also includes a SQL parser and transformer for refactoring or dialect conversion, reactive stream integration for non-blocking query execution, and a JDBC proxy diagnostics tool f

    Javacode-generatordatabasedb2
    Ver en GitHub↗6,666
Ver las 30 alternativas a Sql Formatter→

Preguntas frecuentes

¿Qué hace jdorn/sql-formatter?

This project is a PHP library designed for parsing, beautifying, and syntax-highlighting SQL queries. It provides a set of utilities to improve the readability of database code, facilitate debugging, and assist in the maintenance of complex query structures.

¿Cuáles son las características principales de jdorn/sql-formatter?

Las características principales de jdorn/sql-formatter son: SQL Formatters, SQL Parsers, Context-Aware State Parsers, Delimiter-Aware Batch Splitters, Database Query Optimizations, Query Readability Formatters, Query Compression Utilities, SQL Statement Parsing.

¿Qué alternativas de código abierto existen para jdorn/sql-formatter?

Las alternativas de código abierto para jdorn/sql-formatter incluyen: andialbrecht/sqlparse — sqlparse is a Python library for the programmatic analysis and manipulation of SQL statements. It provides a… tobymao/sqlglot — sqlglot is a SQL parser and transpiler that represents queries as abstract syntax trees to enable structural analysis,… analysis-tools-dev/static-analysis — This project is a comprehensive, curated directory of static analysis, linting, and security scanning utilities. It… jooq/jooq — jOOQ is a type-safe SQL query builder for Java that generates code from live database schemas, enabling compile-time… sqlfluff/sqlfluff — SQLFluff is a multi-dialect SQL linter, formatter, and style guide enforcer. It functions as a parser and analyzer… barryvdh/laravel-debugbar — Laravel Debugbar is a web-based debugging toolbar and application profiler for Laravel. It provides a visual interface…