DB: Recno/Queue-support

This commit is contained in:
Denis Knauf 2010-02-02 15:15:10 +01:00
parent e9e06b1b99
commit b9d22ea98c

View file

@ -88,6 +88,14 @@ module SBDB
def self.new file, name = nil, *p, &e
super file, name, RECNO, *p, &e
end
def [] k
super [k].pack('I')
end
def []= k, v
super [k].pack('I'), v
end
end
Array = Recno
@ -95,5 +103,13 @@ module SBDB
def self.new file, name = nil, *p, &e
super file, name, QUEUE, *p, &e
end
def [] k
super [k].pack('I')
end
def []= k, v
super [k].pack('I'), v
end
end
end