return iterator(result);
end
+--- Archive store API
+
local archive_store = {}
+ archive_store.caps = {
+ total = true;
+ };
archive_store.__index = archive_store
- function archive_store:append(username, key, when, with, value)
- if value == nil then -- COMPAT early versions
- when, with, value, key = key, when, with, value
+ function archive_store:append(username, key, value, when, with)
+ if type(when) ~= "number" then
+ when, with, value = value, when, with;
end
local user,store = username,self.store;
return engine:transaction(function()