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