Txx Txx is a small lib to manage SQL transaction in Go context. Usage txx.Ensure(ctx, db, txx.ReadOnly(), func (ctx context.Context) { // In a read-only transaction tx := txx.Get(ctx).Tx })