1 Star 0 Fork 0

c./goframe

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
gdb_model_lock.go 659 Bytes
一键复制 编辑 原始数据 按行查看 历史
admin 提交于 2024-09-04 23:05 . 2024-09-04
// 版权归GoFrame作者(https://goframe.org)所有。保留所有权利。
//
// 本源代码形式受MIT许可证条款约束。
// 如果未随本文件一同分发MIT许可证副本,
// 您可以在https://github.com/gogf/gf处获取。
// md5:a9832f33b234e3f3
package db类
// X锁读写 为当前操作设置更新锁。 md5:ecffaffee1e7b1df
func (m *Model) X锁读写() *Model {
model := m.getModel()
model.lockInfo = "FOR UPDATE"
return model
}
// X锁写入 将当前操作的锁设置为共享模式。 md5:d3afc426055403b9
func (m *Model) X锁写入() *Model {
model := m.getModel()
model.lockInfo = "LOCK IN SHARE MODE"
return model
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/go_888/goframe.git
git@gitee.com:go_888/goframe.git
go_888
goframe
goframe
7e18bcecf929

搜索帮助