diff --git a/db/store.go b/db/store.go index 35f5407..913005d 100644 --- a/db/store.go +++ b/db/store.go @@ -81,3 +81,11 @@ type StoreClient interface { // considered healthy HealthCheck(ctx context.Context) error } + +type StoreCollectionTable[K any, E any] struct { + Col StoreCollection +} + +func (t *StoreCollectionTable[K, E]) Insert(ctx context.Context, key K, entry E) error { + return t.Col.InsertOne(ctx, key, entry) +}