Deletes all of the index data associated with the item.
Optional
options: IndexLevelOptionsPut an item into the index using information that will allow it to be queried for.
a unique ID that represents the item being indexed, this is also used as the cursor value in a query.
(key-value pairs) to be included as part of indexing this item. Must include at least one indexing property.
Optional
options: IndexLevelOptionsIndexLevelOptions that include an AbortSignal.
Queries the index for items that match the filters. If no filters are provided, all items are returned.
Array of filters that are treated as an OR query.
query options for sort and pagination, requires at least sortProperty
. The default sort direction is ascending.
Optional
options: IndexLevelOptionsIndexLevelOptions that include an AbortSignal.
an array of IndexedItem
that match the given filters.
Queries the provided searchFilters asynchronously, returning results that match the matchFilters.
the filters passed to the parent query.
Optional
options: IndexLevelOptionsQueries the sort property index for items that match the filters. If no filters are provided, all items are returned. This query is a linear iterator over the sorted index, checking each item for a match. If a cursor is provided it starts the iteration from the cursor point.
Optional
options: IndexLevelOptionsStatic
createCreates a PaginationCursor from a given IndexedItem and sortProperty.
Static
createReturns a PaginationCursor using the last item of a given array of IndexedItems. If the given array is empty, undefined is returned.
Static
encodeEncodes a numerical value as a string for lexicographical comparison. If the number is positive it simply pads it with leading zeros. ex.: input: 1024 => "0000000000001024" input: -1024 => "!9007199254739967"
the number to encode.
a string representation of the number.
Static
encodeStatic
is
A LevelDB implementation for indexing the messages and events stored in the DWN.