diff --git a/database/doc.go b/database/doc.go index 041f7f3..f683818 100644 --- a/database/doc.go +++ b/database/doc.go @@ -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) +*/