1 Star 1 Fork 1

c./goframe框架

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

搜索帮助