- add Batch
@@ -4,10 +4,11 @@ import (
"context"
)
-type Database[T any] interface {
+type Database[T any, B any] interface {
String() string
Close() error
Ping(ctx context.Context) error
Query(ctx context.Context, query string, args ...any) (T, error)
+ Batch(ctx context.Context, table string, release bool) (B, error)
}