Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextualAttributes ¶
ContextualAttributes - A collection of attributes with context.
func NewContextualAttributes ¶
func NewContextualAttributes(attributes ...*base.Attribute) *ContextualAttributes
NewContextualAttributes - Creates a new collection of attributes with context.
func (*ContextualAttributes) QueryAttributes ¶
func (c *ContextualAttributes) QueryAttributes(filter *base.AttributeFilter, pagination database.CursorPagination) (*database.AttributeIterator, error)
QueryAttributes filters the attributes based on the provided filter, and returns an iterator to traverse through the filtered attributes.
func (*ContextualAttributes) QuerySingleAttribute ¶
func (c *ContextualAttributes) QuerySingleAttribute(filter *base.AttributeFilter) (*base.Attribute, error)
QuerySingleAttribute filters the attributes based on the provided filter, and returns the first attribute from the filtered attributes, if any exist. If no attributes match the filter, it returns nil.
type ContextualTuples ¶
ContextualTuples - A collection of tuples with context.
func NewContextualTuples ¶
func NewContextualTuples(tuples ...*base.Tuple) *ContextualTuples
NewContextualTuples - Creates a new collection of tuples with context.
func (*ContextualTuples) QueryRelationships ¶
func (c *ContextualTuples) QueryRelationships(filter *base.TupleFilter, pagination database.CursorPagination) (*database.TupleIterator, error)
QueryRelationships filters the ContextualTuples based on the provided TupleFilter and returns a TupleIterator for the filtered tuples. QueryRelationships filters the ContextualTuples based on the provided TupleFilter, applies cursor-based pagination, and returns a TupleIterator for the filtered tuples.