feat: sql 构建支持 FOR UPDATE

This commit is contained in:
2025-10-11 18:10:29 +08:00
parent 4acb528533
commit cb3d32c360
3 changed files with 19 additions and 120 deletions

View File

@ -34,6 +34,7 @@ type Option struct {
Like map[string]string `json:"like"` // like 语句
NotLike map[string]string `json:"not_like"` // not like 语句
NotEqual map[string]any `json:"not_equal"` // != 语句
ForUpdate bool `json:"for_update"` // 加互斥锁
Order []string `json:"order"` // 排序规则
OR [][]SetOption `json:"or"` // or 语句, or 和其他属性 and 关系, 内部 OR 关系
}