From a63b373baec2296f5af98f0095dac5297c3ad100 Mon Sep 17 00:00:00 2001 From: Kijin-Seija Date: Wed, 15 May 2024 19:57:04 +0800 Subject: [PATCH 1/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index aa82e08..a4c376f 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ select_target_alias: [ ## Alias -Some node names in dt-sql-parser code are different from its antlr4's definition. +Some node names in dt-sql-parser code are different from their antlr4's definition. You can find possible alias in https://github.com/DTStack/dt-sql-parser/blob/main/src/grammar/postgresql/PostgreSqlParser.g4, then add it into `alias` option. From cd79c1305c2bcdf046554c00f5bdf15ef7f8c708 Mon Sep 17 00:00:00 2001 From: Kijin-Seija Date: Thu, 16 May 2024 09:51:17 +0800 Subject: [PATCH 2/3] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a4c376f..64c560f 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,7 @@ Some node names in dt-sql-parser code are different from their antlr4's definiti You can find possible alias in https://github.com/DTStack/dt-sql-parser/blob/main/src/grammar/postgresql/PostgreSqlParser.g4, then add it into `alias` option. Example: + ![alt text](./assets/alias-example.png) @@ -86,7 +87,9 @@ Example: ```typescript const myPlugin = new DtSqlParserSemAnalysePlugin({ preprocessor: [ - (sql) => sql.toUpperCase() + (sql) => sql.toUpperCase(), + ... + ] }) ``` From 08ce5c0c419bc1b91b96152f967be584d6732ac4 Mon Sep 17 00:00:00 2001 From: Kijin-Seija Date: Fri, 17 May 2024 16:48:51 +0800 Subject: [PATCH 3/3] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 64c560f..be47fd0 100644 --- a/README.md +++ b/README.md @@ -75,12 +75,11 @@ select_target_alias: [ Some node names in dt-sql-parser code are different from their antlr4's definition. -You can find possible alias in https://github.com/DTStack/dt-sql-parser/blob/main/src/grammar/postgresql/PostgreSqlParser.g4, then add it into `alias` option. - Example: ![alt text](./assets/alias-example.png) +You can find possible alias in https://github.com/DTStack/dt-sql-parser/blob/main/src/grammar/postgresql/PostgreSqlParser.g4, then add it into `alias` option. ## Add a preprocessor