Recno/Queue#push

This commit is contained in:
Denis Knauf 2010-02-22 16:17:25 +01:00
parent 954ca1751b
commit e3a18fa0f7

View file

@ -108,6 +108,10 @@ module SBDB
def []= k, v def []= k, v
super [k].pack('I'), v super [k].pack('I'), v
end end
def push v
put nil, nil, v, Bdb::DB_APPEND
end
end end
Array = Recno Array = Recno
TYPES[DB::RECNO] = Recno TYPES[DB::RECNO] = Recno
@ -128,6 +132,10 @@ module SBDB
def unshift def unshift
get nil, nil, nil, Bdb::DB_CONSUME get nil, nil, nil, Bdb::DB_CONSUME
end end
def push v
put nil, nil, v, Bdb::DB_APPEND
end
end end
TYPES[DB::QUEUE] = Queue TYPES[DB::QUEUE] = Queue
end end