Skip to content

Commit

Permalink
docs: update readme.md (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
dk-lockdown authored Jun 9, 2022
1 parent d5f9c80 commit 5024e2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ hptx.InitWithConf(&config.DistributedTransaction{
mysql.RegisterResource(config.GetATConfig().DSN)
resource.InitATBranchResource(mysql.GetDataSourceManager())
```

Support GlobalLock:
```go
db.ExecContext(context.WithValue(context.Background(), "GlobalLock", true), sql, args...)
```
[Examples are available in our repos](https://github.com/CECTC/hptx-samples)

---
Expand Down

0 comments on commit 5024e2f

Please sign in to comment.