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 use_async = value
end end
self.get_serializer_type = function(value) self.get_serializer_type = function()
return serializer_type return serializer_type
end end
@ -76,6 +76,10 @@ function colddb.Colddb(dir)
end end
end end
self.get_serializer = function()
return serializer, deserializer
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