02.11.2025

This commit is contained in:
2025-11-02 19:55:58 +03:00
parent 49371e3eca
commit 9c204a9554
4 changed files with 50 additions and 28 deletions

View File

@@ -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