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
|
def self.new file, name = nil, *p, &e
|
||||||
super file, name, RECNO, *p, &e
|
super file, name, RECNO, *p, &e
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def [] k
|
||||||
|
super [k].pack('I')
|
||||||
|
end
|
||||||
|
|
||||||
|
def []= k, v
|
||||||
|
super [k].pack('I'), v
|
||||||
|
end
|
||||||
end
|
end
|
||||||
Array = Recno
|
Array = Recno
|
||||||
|
|
||||||
|
@ -95,5 +103,13 @@ module SBDB
|
||||||
def self.new file, name = nil, *p, &e
|
def self.new file, name = nil, *p, &e
|
||||||
super file, name, QUEUE, *p, &e
|
super file, name, QUEUE, *p, &e
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def [] k
|
||||||
|
super [k].pack('I')
|
||||||
|
end
|
||||||
|
|
||||||
|
def []= k, v
|
||||||
|
super [k].pack('I'), v
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue