Merge: down later
This commit is contained in:
parent
b7a1c9fcc4
commit
94b62ac5ab
|
@ -80,6 +80,11 @@ function colddb.Colddb(dir)
|
||||||
return serializer, deserializer
|
return serializer, deserializer
|
||||||
end
|
end
|
||||||
|
|
||||||
|
self.set_serializer = function(coder, decoder)
|
||||||
|
serializer = coder
|
||||||
|
deserializer = decoder
|
||||||
|
end
|
||||||
|
|
||||||
local function file_exists(name)
|
local function file_exists(name)
|
||||||
local f = io.open(string.format("%s/%s.cold", directory, name), "r")
|
local f = io.open(string.format("%s/%s.cold", directory, name), "r")
|
||||||
if f ~= nil then
|
if f ~= nil then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user