1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
|
# 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 <em> close</em>
def c_close()
end
#Return the count of duplicate
#
def count()
end
#same than <em> count</em>
def c_count()
end
#Same than <tt>get(BDB::CURRENT)</tt>
#
def current()
end
#same than <em> current</em>
def c_current()
end
#Deletes the key/data pair currently referenced by the cursor.
#
def del()
end
#same than <em> del</em>
def delete()
end
#same than <em> del</em>
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.
#
#<em>flags</em> can have the value <em>BDB::DB_POSITION</em>, 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 <em> dup</em>
def clone(flags = 0)
end
#same than <em> dup</em>
def c_dup(flags = 0)
end
#same than <em> dup</em>
def c_clone(flags = 0)
end
#Same than <tt>get(BDB::FIRST)</tt>
#
def first()
end
#same than <em> first</em>
def c_first()
end
#Retrieve key/data pair from the database
#
#See the description of <tt>c_get</tt> in the Berkeley distribution
#for the different values of the <em>flags</em> parameter.
#
#<em>key</em> must be given if the <em>flags</em> parameter is
#<em>BDB::SET</em> | <em>BDB::SET_RANGE</em> | <em>BDB::SET_RECNO</em>
#
#<em>key</em> and <em>value</em> must be specified for <em>BDB::GET_BOTH</em>
#
def get(flags, key = nil, value = nil)
end
#same than <em> get</em>
def c_get(flags, key = nil, value = nil)
end
#Same than <tt>get(BDB::LAST)</tt>
#
def last()
end
#same than <em> last</em>
def c_last()
end
#Same than <tt>get(BDB::NEXT)</tt>
#
def next()
end
#same than <em> next</em>
def c_next()
end
#Retrieve key/primary key/data pair from the database
#
def pget(flags, key = nil, value = nil)
end
#same than <em> pget</em>
def c_pget(flags, key = nil, value = nil)
end
#Same than <tt>get(BDB::PREV)</tt>
#
def prev()
end
#same than <em> prev</em>
def c_prev()
end
#Stores data value into the database.
#
#See the description of <tt>c_put</tt> in the Berkeley distribution
#for the different values of the <em>flags</em> parameter.
#
def put(flags, value)
end
#same than <em> put</em>
def c_put(flags, value)
end
#Stores key/data pairs into the database (only for Btree and Hash
#access methods)
#
#<em>flags</em> must have the value <em>BDB::KEYFIRST</em> or
#<em>BDB::KEYLAST</em>
#
def put(flags, key, value)
end
#same than <em> put</em>
def c_put(flags, key, value)
end
#Same than <tt>get</tt> with the flags <em>BDB::SET</em> or <em>BDB::SET_RANGE</em>
#or <em>BDB::SET_RECNO</em>
#
def set(key)
end
#same than <em> set</em>
def c_set(key)
end
#same than <em> set</em>
def set_range(key)
end
#same than <em> set</em>
def c_set_range(key)
end
#same than <em> set</em>
def set_recno(key)
end
#same than <em> set</em>
def c_set_recno(key)
end
end
|