Next: Sleepycat, Previous: Collections, Up: Reference
Class precedence list:
cursor, standard-object, t
A cursor for traversing (primary) BTrees.
Class precedence list:
secondary-cursor, cursor, standard-object, t
Cursor for traversing secondary indices.
Close the cursor. Make sure to close cursors before the enclosing transaction is closed!
Macro which opens a named cursor on a BTree (primary or not), evaluates the forms, then closes the cursor.
Get the key / value at the cursor position. Returns has-pair key value, where has-pair is a boolean indicating there was a pair.
Delete by cursor. The cursor is at an invalid position after a successful delete.
Move the cursor to the beginning of the BTree, returning has-pair key value.
Moves the cursor to the first key / value pair with key equal to the key argument and value greater or equal to the value argument. Not really useful for us since primaries don't have duplicates. Returns has-pair key value.
Moves the cursor to a particular key / value pair, returning has-pair key value.
Move the cursor to the end of the BTree, returning has-pair key value.
Move to the next duplicate element (with the same key.) Returns has-pair key value.
Move to the next non-duplicate element (with different key.) Returns has-pair key value.
Returns has-tuple / secondary key / value / primary key at the current position.
Moves the key to the beginning of the secondary index. Returns has-tuple / secondary key / value / primary key.
Moves the cursor to a the first secondary key / primary key pair, with secondary key equal to the key argument, and primary key greater or equal to the pkey argument. Returns has-tuple / secondary key / value / primary key.
Moves the cursor to a particular secondary key / primary key pair. Returns has-tuple / secondary key / value / primary key.
Moves the key to the end of the secondary index. Returns has-tuple / secondary key / value / primary key.
Move to the next duplicate element (with the same key.) Returns has-tuple / secondary key / value / primary key.
Move to the next non-duplicate element (with different key.) Returns has-tuple / secondary key / value / primary key.
Advances the cursor. Returns has-tuple / secondary key / value / primary key.
Move to the previous non-duplicate element (with different key.) Returns has-tuple / secondary key / value / primary key.
Moves the cursor back. Returns has-tuple / secondary key / value / primary key.
Move to the previous non-duplicate element (with different key.) Returns has-pair key value.
Move the cursor to the first key-value pair with key greater or equal to the key argument, according to the lisp sorter. Returns has-pair secondary key value primary key.
Moves the cursor to a particular key. Returns has-tuple / secondary key / value / primary key.