mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-05-19 09:25:19 +08:00
refactor: 移除antlr4减小包体积&ai助手优化
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user