Преглед на файлове

service.Database

- add Batch
Alexey Kim преди 1 година
родител
ревизия
55a7c208b3
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      database/database.go

+ 2 - 1
database/database.go

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