# A database cursor is a sequential pointer to the database entries. It # allows traversal of the database and access to duplicate keyed # entries. Cursors are used for operating on collections of records, # for iterating over a database, and for saving handles to individual # records, so that they can be modified after they have been read. # # A cursor is created with the methods BDB::Common#cursor and # BDB::Common#cursor_write # class BDB::Cursor #Discards the cursor. # def close() end #same than close def c_close() end #Return the count of duplicate # def count() end #same than count def c_count() end #Same than get(BDB::CURRENT) # def current() end #same than current def c_current() end #Deletes the key/data pair currently referenced by the cursor. # def del() end #same than del def delete() end #same than del def c_del() end #Creates new cursor that uses the same transaction and locker ID as #the original cursor. This is useful when an application is using #locking and requires two or more cursors in the same thread of #control. # #flags can have the value BDB::DB_POSITION, in this case the #newly created cursor is initialized to reference the same position in #the database as the original cursor and hold the same locks. # def dup(flags = 0) end #same than dup def clone(flags = 0) end #same than dup def c_dup(flags = 0) end #same than dup def c_clone(flags = 0) end #Same than get(BDB::FIRST) # def first() end #same than first def c_first() end #Retrieve key/data pair from the database # #See the description of c_get in the Berkeley distribution #for the different values of the flags parameter. # #key must be given if the flags parameter is #BDB::SET | BDB::SET_RANGE | BDB::SET_RECNO # #key and value must be specified for BDB::GET_BOTH # def get(flags, key = nil, value = nil) end #same than get def c_get(flags, key = nil, value = nil) end #Same than get(BDB::LAST) # def last() end #same than last def c_last() end #Same than get(BDB::NEXT) # def next() end #same than next def c_next() end #Retrieve key/primary key/data pair from the database # def pget(flags, key = nil, value = nil) end #same than pget def c_pget(flags, key = nil, value = nil) end #Same than get(BDB::PREV) # def prev() end #same than prev def c_prev() end #Stores data value into the database. # #See the description of c_put in the Berkeley distribution #for the different values of the flags parameter. # def put(flags, value) end #same than put def c_put(flags, value) end #Stores key/data pairs into the database (only for Btree and Hash #access methods) # #flags must have the value BDB::KEYFIRST or #BDB::KEYLAST # def put(flags, key, value) end #same than put def c_put(flags, key, value) end #Same than get with the flags BDB::SET or BDB::SET_RANGE #or BDB::SET_RECNO # def set(key) end #same than set def c_set(key) end #same than set def set_range(key) end #same than set def c_set_range(key) end #same than set def set_recno(key) end #same than set def c_set_recno(key) end end