diff --git a/colddb.lua b/colddb.lua index f3f198d..7aaba5a 100644 --- a/colddb.lua +++ b/colddb.lua @@ -79,6 +79,11 @@ function colddb.Colddb(dir) self.get_serializer = function() return serializer, deserializer end + + self.set_serializer = function(coder, decoder) + serializer = coder + deserializer = decoder + end local function file_exists(name) local f = io.open(string.format("%s/%s.cold", directory, name), "r")