dtm-examples
dtm-examples copied to clipboard
various examples for dtm
`c# saga.SetBranchHeaders(new System.Collections.Generic.Dictionary { { "x-tenant-id","1" }, { "Auhthorization","1" } }); saga.SetBranchHeaders(new System.Collections.Generic.Dictionary { { { "Auhthorization","1" } });//直接覆盖了x-tenant-id ` 需要更灵活地控制BranchHeader
使用go-zero 加gorm xa模式报错 no trans with gid: 5tHc638HuemiecVeFkxmLQ status: prepared found FAILURE
 app.POST(BusiAPI+"/SagaBTransOutGorm", dtmutil.WrapHandler(func(c *gin.Context) interface{} { req := reqFrom(c) barrier := MustBarrierFromGin(c) tx := dbGet().DB.Begin() return barrier.Call(tx.Statement.ConnPool.(*sql.Tx), func(tx1 *sql.Tx) error { return tx.Exec("update dtm_busi.user_account set balance = balance + ?...
hi It is my first time working with DTM for transactions in a microservice architecture. Using mongodb in my services, I need more examples of distributed transactions. MongoDB has transaction...
项目运行出错
$ go run main.go # github.com/dtm-labs/dtm-examples/examples examples/grpc_headers.go:50:10: undefined: dtmcli.SetPassthroughHeaders 如上,提示dtmcli.SetPassthroughHeaders 未定义