ソースを参照

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