diff --git a/lib/sbdb/db.rb b/lib/sbdb/db.rb index 2d82c8f..6aed277 100644 --- a/lib/sbdb/db.rb +++ b/lib/sbdb/db.rb @@ -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