# Functions
ColumnsToSelect returns the columns to select for a given query.
ContextualizedCaveatFrom convenience method that handles creation of a contextualized caveat given the possibility of arguments with zero-values.
LogOnError executes the function and logs the error.
NewChanges creates a new Changes object for change tracking and de-duplication.
NewCreateRelationshipExistsError creates a new CreateRelationshipExistsError.
No description provided by the author
NewReadOnlyTransactionError creates a new ReadOnlyTransactionError.
NewRevisionUnavailableError creates a new RevisionUnavailableError.
NewSchemaInformationWithOptions creates a new SchemaInformation with the passed in options set.
NewSchemaInformationWithOptionsAndDefaults creates a new SchemaInformation with the passed in options set starting from the defaults.
NewSchemaQueryFiltererForRelationshipsSelect creates a new SchemaQueryFilterer object for selecting relationships.
NewSchemaQueryFiltererWithStartingQuery creates a new SchemaQueryFilterer object for selecting relationships, with a custom starting query.
NewSerializationError creates a new SerializationError.
NewSliceRelationshipIterator creates a datastore.RelationshipIterator instance from a materialized slice of tuples.
QueryRelationships queries relationships for the given query and transaction.
RedactAndLogSensitiveConnString elides the given error, logging it only at trace level (after being redacted).
RegisterGCMetrics registers garbage collection metrics to the default registry.
RunGarbageCollection runs garbage collection for the datastore.
SchemaInformationWithOptions configures an existing SchemaInformation with the passed in options set.
StartGarbageCollector loops forever until the context is canceled and performs garbage collection on the provided interval.
UpdateRelationshipsInDatastore is a convenience method to perform multiple relation update operations on a Datastore.
WithColCaveatContext returns an option that can set ColCaveatContext on a SchemaInformation.
WithColCaveatName returns an option that can set ColCaveatName on a SchemaInformation.
WithColExpiration returns an option that can set ColExpiration on a SchemaInformation.
WithColIntegrityHash returns an option that can set ColIntegrityHash on a SchemaInformation.
WithColIntegrityKeyID returns an option that can set ColIntegrityKeyID on a SchemaInformation.
WithColIntegrityTimestamp returns an option that can set ColIntegrityTimestamp on a SchemaInformation.
WithColNamespace returns an option that can set ColNamespace on a SchemaInformation.
WithColObjectID returns an option that can set ColObjectID on a SchemaInformation.
WithColRelation returns an option that can set ColRelation on a SchemaInformation.
WithColumnOptimization returns an option that can set ColumnOptimization on a SchemaInformation.
WithColUsersetNamespace returns an option that can set ColUsersetNamespace on a SchemaInformation.
WithColUsersetObjectID returns an option that can set ColUsersetObjectID on a SchemaInformation.
WithColUsersetRelation returns an option that can set ColUsersetRelation on a SchemaInformation.
WithExpirationDisabled returns an option that can set ExpirationDisabled on a SchemaInformation.
WithIntegrityEnabled returns an option that can set IntegrityEnabled on a SchemaInformation.
WithNowFunction returns an option that can set NowFunction on a SchemaInformation.
WithPaginationFilterType returns an option that can set PaginationFilterType on a SchemaInformation.
WithPlaceholderFormat returns an option that can set PlaceholderFormat on a SchemaInformation.
WithRelationshipTableName returns an option that can set RelationshipTableName on a SchemaInformation.
WriteRelationships is a convenience method to perform the same update operation on a set of relationships.
# Constants
ColumnOptimizationOptionNone is the default option, which does not optimize the static columns.
ColumnOptimizationOptionStaticValues is an option that optimizes columns for static values.
No description provided by the author
ExpandedLogicComparison comparison uses a nested tree of ANDs and ORs to properly filter out already received relationships.
No description provided by the author
TupleComparison uses a comparison with a compound key, e.g.
# Variables
CaveatNameKey is a tracing attribute representing a caveat name.
No description provided by the author
ObjIDKey is a tracing attribute representing the resource object ID.
ObjNamespaceNameKey is a tracing attribute representing the resource object type.
ObjRelationNameKey is a tracing attribute representing the resource relation.
SubNamespaceNameKey is a tracing attribute representing the subject object type.
SubObjectIDKey is a tracing attribute representing the the subject object ID.
SubRelationNameKey is a tracing attribute representing the subject relation.
# Structs
Changes represents a set of datastore mutations that are kept self-consistent across one or more transaction revisions.
CreateRelationshipExistsError is an error returned when attempting to CREATE an already-existing relationship.
DeletionCounts tracks the amount of deletions that occurred when calling DeleteBeforeTx.
No description provided by the author
QueryRelationshipsExecutor is a relationships query runner shared by SQL implementations of the datastore.
ReadOnlyTransactionError is returned when an otherwise read-write transaction fails on writes with an error indicating that the datastore is currently in a read-only mode.
RelationshipsQueryBuilder is a builder for producing the SQL and arguments necessary for reading relationships.
RevisionUnavailableError is returned when a revision is not available on a replica.
SchemaInformation holds the schema information from the SQL datastore implementation.
SchemaQueryFilterer wraps a SchemaInformation and SelectBuilder to give an opinionated way to build query objects.
SerializationError is returned when there's been a serialization error while performing a datastore operation.
# Interfaces
GarbageCollector represents any datastore that supports external garbage collection.
Querier is an interface for querying the database.
Rows is a common interface for database rows reading.
# Type aliases
ColumnOptimizationOption is an enumerator for column optimization options.
ExecuteReadRelsQueryFunc is a function that can be used to execute a single rendered SQL query.
PaginationFilterType is an enumerator for pagination filter types.
No description provided by the author