(ctx context.Context, r *T)
| 224 | } |
| 225 | |
| 226 | func (c createG[T]) Create(ctx context.Context, r *T) error { |
| 227 | return c.g.apply(ctx).Create(r).Error |
| 228 | } |
| 229 | |
| 230 | func (c createG[T]) CreateInBatches(ctx context.Context, r *[]T, batchSize int) error { |
| 231 | return c.g.apply(ctx).CreateInBatches(r, batchSize).Error |