Add: get and set serializer function

This commit is contained in:
Coder12a 2019-05-23 10:26:30 -05:00
parent e70923c8fc
commit b7a1c9fcc4

View File

@ -64,7 +64,7 @@ function colddb.Colddb(dir)
use_async = value
end
self.get_serializer_type = function(value)
self.get_serializer_type = function()
return serializer_type
end
@ -76,6 +76,10 @@ function colddb.Colddb(dir)
end
end
self.get_serializer = function()
return serializer, deserializer
end
local function file_exists(name)
local f = io.open(string.format("%s/%s.cold", directory, name), "r")
if f ~= nil then