Skip to content
/ txx Public

Small lib to manage SQL transaction in Go context

License

Notifications You must be signed in to change notification settings

MartyHub/txx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Txx

Txx is a small lib to manage SQL transaction in Go context.

build

Usage

txx.Ensure(ctx, db, txx.ReadOnly(), func (ctx context.Context) {
	// In a read-only transaction 
	tx := txx.Get(ctx).Tx
})

About

Small lib to manage SQL transaction in Go context

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published