Add: sub_database function

This commit is contained in:
Coder12a 2019-05-19 23:55:05 -05:00
parent e953987c9c
commit 63cfeb4cb9
1 changed files with 6 additions and 0 deletions

View File

@ -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