Update README.md

This commit is contained in:
Kijin-Seija 2024-05-16 09:51:17 +08:00 committed by GitHub
parent a63b373bae
commit cd79c1305c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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. 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: Example:
![alt text](./assets/alias-example.png) ![alt text](./assets/alias-example.png)
@ -86,7 +87,9 @@ Example:
```typescript ```typescript
const myPlugin = new DtSqlParserSemAnalysePlugin({ const myPlugin = new DtSqlParserSemAnalysePlugin({
preprocessor: [ preprocessor: [
(sql) => sql.toUpperCase() (sql) => sql.toUpperCase(),
...
]
}) })
``` ```