DB: Recno/Queue-support
This commit is contained in:
parent
e9e06b1b99
commit
b9d22ea98c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue