This commit is contained in:
2025-10-06 23:05:19 +03:00
committed by KentoNion
commit 4ecc170179
6 changed files with 356 additions and 0 deletions

12
models/models.go Normal file
View File

@@ -0,0 +1,12 @@
package models
import "errors"
var (
ErrNoItems = errors.New("no items recieved, batch is empty")
ErrInvalidBatchSize = errors.New("batch size must be greater than zero")
ErrCannotDetectPlaceholder = errors.New("cannot detect placeholder in query")
)
// BatchedQuery - single batch query
type BatchedQuery string