SBDB::Env#[]
This commit is contained in:
parent
b9d22ea98c
commit
8bb9d18313
|
@ -80,8 +80,8 @@ module SBDB
|
|||
# it returns the old instance.
|
||||
# If you use this, never use close. It's possible somebody else use it too.
|
||||
# The Databases, which are opened, will close, if the Environment will close.
|
||||
def [] file, name = nil, type = nil, &e
|
||||
@dbs[ [file, name]] ||= (type || SBDB::Unkown).new file, name, nil, nil, nil, self, &e
|
||||
def [] file, name = nil, type = nil, flags = nil, mode = nil, &e
|
||||
@dbs[ [file, name, flags | CREATE]] ||= (type || SBDB::Unkown).new file, name, flags, mode, nil, self, &e
|
||||
end
|
||||
end
|
||||
Env = Environment
|
||||
|
|
Loading…
Reference in a new issue