package
0.14.0
Repository: https://github.com/sourcenetwork/defradb.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

GetContextIdentity returns the identity from the given context.
NewCanNotDeleteIndexedField returns a new error a failed attempt to delete an indexed field.
NewCollectionIndex creates a new collection index.
NewDB creates a new instance of the DB using the given options.
No description provided by the author
NewErrAddingP2PCollection returns a new error indicating that adding a collection ID to the persisted list of P2P collection IDs was not successful.
No description provided by the author
NewErrCannotAddIndexWithPatch returns a new error indicating that an index cannot be added with a patch.
No description provided by the author
NewErrCannotDropIndexWithPatch returns a new error indicating that an index cannot be dropped with a patch.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewErrCanNotReadCollection returns a new error indicating the collection doesn't exist.
NewErrCloseFile returns a new error indicating there was a failure in closing a file.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewErrCorruptedIndex returns a new error indicating that an index with the given name has been corrupted.
NewErrCreateFile returns a new error indicating there was a failure in creating a file.
No description provided by the author
NewErrDocCreate returns a new error indicating there was a failure to save a new doc to a collection.
NewErrDocFromMap returns a new error indicating there was a failure to create a new doc from a map.
No description provided by the author
No description provided by the author
NewErrDocUpdate returns a new error indicating there was a failure to update a doc to a collection.
NewErrDocVerification returns a new error indicating that the document verification failed.
No description provided by the author
NewErrFailedToCreateCollectionQuery returns a new error indicating that the query to create a collection failed.
NewErrFailedToGetAllCollections returns a new error indicating that the collection list could not be obtained.
NewErrFailedToGetCollection returns a new error indicating that the collection could not be obtained.
NewErrFailedToGetHeads returns a new error indicating that the heads of a document could not be obtained.
NewErrFailedToReadByte returns a new error indicating there was a failure in read a byte from the Reader.
NewErrFailedToReadStoredIndexDesc returns a new error indicating that the stored index description could not be read.
NewErrFailedToStoreIndexedField returns a new error indicating that the indexed field could not be stored.
NewErrFailedToWriteString returns a new error indicating there was a failure in writing a string to the Writer.
No description provided by the author
No description provided by the author
NewErrIndexDescHasNoFields returns a new error indicating that the given index description has no fields.
No description provided by the author
NewErrIndexWithNameAlreadyExists returns a new error indicating that an index with the given name already exists.
NewErrIndexWithNameDoesNotExists returns a new error indicating that an index with the given name does not exist.
NewErrInvalidFieldValue returns a new error indicating that the given value is invalid for the given field kind.
NewErrInvalidStoredIndex returns a new error indicating that the stored index in the database is invalid.
NewErrInvalidStoredIndexKey returns a new error indicating that the stored index in the database is invalid.
No description provided by the author
No description provided by the author
NewErrJSONDecode returns a new error indicating there was a failure in decoding some JSON from the JSON decoder.
No description provided by the author
No description provided by the author
NewErrNonExistingFieldForIndex returns a new error indicating the attempt to create an index on a non-existing field.
NewErrNonZeroIndexIDProvided returns a new error indicating that a non-zero index ID was provided.
No description provided by the author
NewErrOpenFile returns a new error indicating there was a failure in opening a file.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewErrRemoveFile returns a new error indicating there was a failure in removing a file.
NewErrRemovingP2PCollection returns a new error indicating that removing a collection ID to the persisted list of P2P collection IDs was not successful.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewErrUnsupportedIndexFieldType returns a new error indicating that the given field kind is not supported for indexing.
SetContextTxn returns a new context with the identity value set.
SetContextTxn returns a new context with the txn value set.
TryGetContextTxn returns a transaction and a bool indicating if the txn was retrieved from the given context.
WithMaxRetries sets the maximum number of retries per transaction.
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

CollectionIndex is an interface for collection indexes It abstracts away common index functionality to be implemented by different index types: non-unique, unique, and composite.

# Type aliases

Option is a funtion that sets a config value on the db.