Add: sub_database function
This commit is contained in:
parent
e953987c9c
commit
63cfeb4cb9
@ -265,5 +265,11 @@ function colddb.Colddb(dir)
|
|||||||
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