refactor: 移除antlr4减小包体积&ai助手优化

This commit is contained in:
meilin.huang
2026-05-08 20:45:13 +08:00
parent 3768cef62d
commit f23b243fc5
154 changed files with 13054 additions and 396804 deletions

View File

@@ -1,53 +1,9 @@
package sqlstmt
type (
IDdlStmt interface {
isDdl()
}
DdlStmt struct {
*Node
}
CreateDatabase struct {
DdlStmt
}
CreateTable struct {
DdlStmt
}
CreateIndex struct {
DdlStmt
}
AlterTable struct {
DdlStmt
}
AlterDatabase struct {
DdlStmt
}
DropDatabase struct {
DdlStmt
}
DropIndex struct {
DdlStmt
}
DropTable struct {
DdlStmt
}
DropView struct {
DdlStmt
}
)
func (d *DdlStmt) isDdl() {}
func IsDDL(node INode) bool {
return true
// DdlStmt DDL 语句
type DdlStmt struct {
Base
DdlKind string // CREATE_TABLE, DROP_TABLE, ALTER_TABLE 等
}
func (*DdlStmt) StmtKind() Kind { return KindDdl }