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

Method QueryRelationships

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

QueryRelationships reads relation tuples from the storage based on the given filter. It returns an iterator to iterate over the tuples and any error encountered.

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

Source from the content-addressed store, hash-verified

13 // QueryRelationships reads relation tuples from the storage based on the given filter.
14 // It returns an iterator to iterate over the tuples and any error encountered.
15 QueryRelationships(ctx context.Context, tenantID string, filter *base.TupleFilter, snap string, pagination database.CursorPagination) (iterator *database.TupleIterator, err error)
16
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.

Callers 15

QueryRelationshipsMethod · 0.65
QueryRelationshipsMethod · 0.65
expandDirectRelationMethod · 0.65
expandTupleToUserSetMethod · 0.65
relationEntranceMethod · 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