Recno/Queue#push
This commit is contained in:
parent
954ca1751b
commit
e3a18fa0f7
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue