package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Packages
Package reltest provides tools for testing the rel package.
# Functions
And constructs a clause represents a set of clauses which should be taken in conjunction and exist so that go functions can be written to return a single clause without needing to get involved in appending to a slice of clauses.
AttrType maps the Attr to the provided type.
EntityAttr defines a mapping of selector[s] to Attr for an entity.
EntityAttrOneOf defines a mapping of selector[s] to Attr for an entity.
EntityMapping is used to specify how fields of a type are mapped to Attrs.
Filter is used to construct a clause which runs an arbitrary predicate over variables.
MustSchema is like NewSchema but any errors result in a panic.
NewDatabase constructs a new Database with the specified indexes.
NewQuery construct a new query with the provided clauses forming the conjunction of constraints on the results of the query when it is evaluated against a database.
NewSchema constructs a new schema from mappings.
# Structs
Database is a data structure for indexing entities.
Index defines an index over the stored entities.
IndexWhere is a partial index predicate for a rel index.
Query searches for sets of entities which uphold a set of constraints.
RuleDef describes a rule.
Schema defines a mapping of entities to their attributes and decomposition.
# Interfaces
Attr is used to define a property of entities.
Clause is the basic building block of a query.
EntityMappingOption is used to build an EntityMapping.
Result represents A setting of entities which fulfills the constraints of its corresponding query.
SchemaOption is used to construct a schema.