Safe Haskell | None |
---|---|
Language | Haskell2010 |
- lookupValues :: MultiCursor e k v -> k -> Producer' v IO ()
- insert :: MultiCursor ReadWrite k v -> k -> v -> IO ()
- dupsert :: MultiCursor ReadWrite k v -> k -> v -> IO ()
Documentation
lookupValues :: MultiCursor e k v -> k -> Producer' v IO () Source #
Lookup all values at the given key. These values are provided
as a Producer
since there can be many pages of values. Since
the resulting Producer
captures the Cursor
given as the
first argument, it should not escape the call to withCursor
in
which the Cursor
was bound. Additionally, the Producer
should
be consumed before any other functions that use the Cursor
are
called. It is fine if the Producer
is not consumed entirely, as
long as the caller is not dependending on the cursor to end in a
particular place.
If values are encoded and decoded by a Codec
that uses a fixed
length, this function will take advantage of MDB_GET_MULTIPLE
and MDB_NEXT_MULTIPLE
.