english docs updated
This commit is contained in:
parent
455b1a2471
commit
e3ff13ee93
@ -5,7 +5,7 @@
|
||||
[](https://pkg.go.dev/github.com/yedf/dtm)
|
||||
[](https://github.com/avelino/awesome-go#database)
|
||||
|
||||
# [English Docs](https://github.com/yedf/dtm/blob/main/README-en.md)
|
||||
# [English Docs](https://en.dtm.pub)
|
||||
# GO语言分布式事务管理服务
|
||||
|
||||
DTM是首款golang的开源分布式事务管理器,优雅的解决了幂等、空补偿、悬挂等分布式事务难题。提供了简单易用、高性能、易水平扩展的分布式事务解决方案。
|
||||
|
||||
@ -65,6 +65,7 @@ func query(c *gin.Context) (interface{}, error) {
|
||||
}
|
||||
trans := TransGlobal{}
|
||||
db := dbGet()
|
||||
db.Begin()
|
||||
dbr := db.Must().Where("gid", gid).First(&trans)
|
||||
if dbr.Error == gorm.ErrRecordNotFound {
|
||||
return M{"transaction": nil, "branches": [0]int{}}, nil
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user