This commit is contained in:
parent
6aa7788fd0
commit
56752521c2
@ -13,3 +13,15 @@ Example usage:
|
||||
go dba.Run(ctx)
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
Transactor Example:
|
||||
|
||||
func insert(ctx context.Context, db *sql.DB) error{
|
||||
// SQL HERE
|
||||
}
|
||||
|
||||
...
|
||||
|
||||
dba.ActionChan <- db.WithTransaction(insert)
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user