Add: sub_database function
This commit is contained in:
parent
e953987c9c
commit
63cfeb4cb9
@ -264,6 +264,12 @@ function colddb.Colddb(dir)
|
||||
delete_file(name)
|
||||
end
|
||||
end
|
||||
|
||||
self.sub_database = function(path)
|
||||
local db = colddb.Colddb(dir .. "/" .. path)
|
||||
db.set_async(async)
|
||||
return db
|
||||
end
|
||||
|
||||
return self
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user