MCPcopy Create free account
hub / github.com/Permify/permify / ReadRelationships

Method ReadRelationships

internal/storage/storage.go:19–19  ·  view source on GitHub ↗

ReadRelationships reads relation tuples from the storage based on the given filter and pagination. It returns a collection of tuples, a continuous token indicating the position in the data set, and any error encountered.

(ctx context.Context, tenantID string, filter *base.TupleFilter, snap string, pagination database.Pagination)

Source from the content-addressed store, hash-verified

17 // ReadRelationships reads relation tuples from the storage based on the given filter and pagination.
18 // It returns a collection of tuples, a continuous token indicating the position in the data set, and any error encountered.
19 ReadRelationships(ctx context.Context, tenantID string, filter *base.TupleFilter, snap string, pagination database.Pagination) (collection *database.TupleCollection, ct database.EncodedContinuousToken, err error)
20
21 // QuerySingleAttribute retrieves a single attribute from the storage based on the given filter.
22 // It returns the retrieved attribute and any error encountered.

Callers 8

ReadRelationshipsMethod · 0.65
ReadRelationshipsMethod · 0.65
ReadRelationshipsMethod · 0.65

Implementers 5

NoopDataReaderinternal/storage/storage.go
DataReaderinternal/storage/proxies/circuitbreake
DataReaderinternal/storage/proxies/singleflight/
DataReaderinternal/storage/postgres/data_reader.
DataReaderinternal/storage/memory/data_reader.go

Calls

no outgoing calls

Tested by

no test coverage detected