Module cursor

Source
Expand description

Database cursors, for querying both local and remote databases.

The cursor API provides a common interface for requesting data from both the local database and any number of remote nodes. When a cursor is moved around, the request may be fulfilled by any nodes in the Group this cursor was opened on. The same goes for when a cursor is used to make queries: any connected node within the group may respond to the query, and it is up to the various networking implementations to deduplicate query results as best as they are able.

Structs§

CursorBackError
DbQuery
A full query made against a database and zero or more remote nodes.
QueryResult
An entry returned from a query.

Enums§

CursorError
Index
QueryUpdate
A update event from an ongoing query.
Usefulness
An indication of how useful a query was. This is advisory information for the network subsystem that returned the query.

Traits§

Cursor
A cursor for navigating through a database.
CursorQuery
An active query on a document.
ForkCursor
ForkSpawner
Used to fork a querying cursor into one of the documents linked to by a returned Entry.
UsefulReport
Used to report how useful a query result was.

Type Aliases§

NewCursor
Successful result of forking a cursor.