02.11.2025
This commit is contained in:
@@ -52,7 +52,7 @@ func NewBtchrr(batchSize int, db *sql.DB) (*Btchrr, error) {
|
||||
}
|
||||
|
||||
// Exec - accepts a query for single item, items and executes it in batches
|
||||
func (b *Btchrr) Exec(ctx context.Context, query string, items []any) (sql.Result, error) {
|
||||
func (b *Btchrr) ExecWitchContext(ctx context.Context, query string, items []any) (sql.Result, error) {
|
||||
err := b.executor.CheckQuery(query)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user