Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2d552eb

Browse files
committedFeb 17, 2025·
feat(postgre): check seplling errors for postgre g4
1 parent ecc8c4b commit 2d552eb

File tree

6 files changed

+6883
-6878
lines changed

6 files changed

+6883
-6878
lines changed
 

‎src/grammar/postgresql/PostgreSqlParser.g4

Lines changed: 762 additions & 757 deletions
Large diffs are not rendered by default.

‎src/lib/postgresql/PostgreSqlParser.interp

Lines changed: 196 additions & 196 deletions
Large diffs are not rendered by default.

‎src/lib/postgresql/PostgreSqlParser.ts

Lines changed: 4388 additions & 4388 deletions
Large diffs are not rendered by default.

‎src/lib/postgresql/PostgreSqlParserListener.ts

Lines changed: 958 additions & 958 deletions
Large diffs are not rendered by default.

‎src/lib/postgresql/PostgreSqlParserVisitor.ts

Lines changed: 573 additions & 573 deletions
Large diffs are not rendered by default.

‎src/parser/postgresql/postgreEntityCollector.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import {
2-
type AltertablestmtContext,
2+
type AlterTableStmtContext,
33
Column_defContext,
44
type ColumnCreateTableContext,
55
type ColumnNameCreateContext,
66
type CreateDatabaseContext,
77
type CreateForeignTableContext,
8-
type CreatefunctionstmtContext,
8+
type CreateFunctionStmtContext,
99
type CreateMaterializedViewContext,
1010
type CreatePartitionForeignTableContext,
1111
type CreateViewContext,
@@ -184,17 +184,17 @@ export class PostgreSqlEntityCollector extends EntityCollector implements Postgr
184184
this.popStmt();
185185
}
186186

187-
enterCreatefunctionstmt(ctx: CreatefunctionstmtContext) {
187+
enterCreateFunctionStmt(ctx: CreateFunctionStmtContext) {
188188
this.pushStmt(ctx, StmtContextType.CREATE_FUNCTION_STMT);
189189
}
190190

191-
exitCreatefunctionstmt(ctx: CreatefunctionstmtContext) {
191+
exitCreateFunctionStmt(ctx: CreateFunctionStmtContext) {
192192
this.popStmt();
193193
}
194-
enterAltertablestmt(ctx: AltertablestmtContext) {
194+
enterAlterTableStmt(ctx: AlterTableStmtContext) {
195195
this.pushStmt(ctx, StmtContextType.ALTER_TABLE_STMT);
196196
}
197-
exitAltertablestmt(ctx: AltertablestmtContext) {
197+
exitAlterTableStmt(ctx: AlterTableStmtContext) {
198198
this.popStmt();
199199
}
200200
}

0 commit comments

Comments
 (0)
Please sign in to comment.