utils

package
v0.8.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterAttributesQuery added in v0.5.0

func FilterAttributesQuery(tenantID string, filter *base.AttributeFilter) memdb.FilterFunc

FilterAttributesQuery - Filter attributes according to given filter

func FilterRelationTuplesQuery added in v0.5.0

func FilterRelationTuplesQuery(tenantID string, filter *base.TupleFilter) memdb.FilterFunc

FilterRelationTuplesQuery - Filter relation tuples according to given filter

func GetAttributesIndexNameAndArgsByFilters added in v0.5.0

func GetAttributesIndexNameAndArgsByFilters(tenantID string, filter *base.AttributeFilter) (string, []any)

func GetRelationTuplesIndexNameAndArgsByFilters added in v0.5.0

func GetRelationTuplesIndexNameAndArgsByFilters(tenantID string, filter *base.TupleFilter) (string, []any)

GetRelationTuplesIndexNameAndArgsByFilters - Get index name and arguments by filters

func NewContinuousToken

func NewContinuousToken(value string) database.ContinuousToken

NewContinuousToken - Creates a new continuous token

func Union added in v0.5.0

func Union(a, b []string) []string

Union - Get union of two slices

Types

type AutoIncForAttributes added in v0.5.0

type AutoIncForAttributes struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*AutoIncForAttributes) ID added in v0.5.0

func (a *AutoIncForAttributes) ID() (id uint64)

ID -

type AutoIncForRelationTuples

type AutoIncForRelationTuples struct {
	sync.Mutex
	// contains filtered or unexported fields
}
var (
	RelationTuplesID AutoIncForRelationTuples
	AttributesID     AutoIncForRelationTuples
)

func (*AutoIncForRelationTuples) ID

func (a *AutoIncForRelationTuples) ID() (id uint64)

ID -

type ContinuousToken

type ContinuousToken struct {
	Value string
}

ContinuousToken - Structure for continuous token

func (ContinuousToken) Encode

Encode - Encodes the token to a string

type EncodedContinuousToken

type EncodedContinuousToken struct {
	Value string
}

EncodedContinuousToken - Structure for encoded continuous token

func (EncodedContinuousToken) Decode

Decode decodes the token from a string

func (EncodedContinuousToken) String

func (t EncodedContinuousToken) String() string

Decode decodes the token from a string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL