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