phpmyadmin / sql-parser

A validating SQL lexer and parser with a focus on MySQL dialect.
https://packagist.org/packages/phpmyadmin/sql-parser
GNU General Public License v2.0
430 stars 102 forks source link

The executable files should be merged into a single executable file #517

Open MauricioFauth opened 9 months ago

MauricioFauth commented 9 months ago

This library currently ships with three executable files: highlight-query, lint-query and tokenize-query.

I propose that the three files should be combined into a single executable file called sql-parser.

-lint-query --query "SELECT 1"
+sql-parser --query "SELECT 1"
-lint-query --query "SELECT 1"
+sql-parser --lint --query "SELECT 1"
-highlight-query --query "SELECT 1"
+sql-parser --highlight --query "SELECT 1"
-tokenize-query --query "SELECT 1"
+sql-parser --tokenize --query "SELECT 1"

I think that highlight-query, lint-query and tokenize-query should be removed only in version 7.0.0.

williamdes commented 9 months ago

I'd say in 6.0?