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,26 +1,11 @@
package sqlstmt
type (
IUpdateStmt interface {
INode
isUpdate()
}
UpdateStmt struct {
*Node
TableSources *TableSources
UpdatedElements []*UpdatedElement
Where IExpr
}
)
func (*UpdateStmt) isUpdate() {}
type UpdatedElement struct {
*Node
ColumnName *ColumnName
Value IExpr
// UpdateStmt UPDATE 语句
type UpdateStmt struct {
Base
Tables []TableRef // 更新的表(支持多表)
Set []Assignment // SET 子句
Where *Expr
}
func (*UpdateStmt) StmtKind() Kind { return KindUpdate }