aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-06-24 22:54:17 +0100
committerMatthew Wild <mwild1@gmail.com>2015-06-24 22:54:17 +0100
commit7413f8bab97af104f0a28431538eb9f93a4f7b1c (patch)
tree229ebcbe10570a26967c6cdffdb87ced573f95fd
parent3b9fc2367c5aa463af77143fde018d9a79219a33 (diff)
downloadprosody-7413f8bab97af104f0a28431538eb9f93a4f7b1c.tar.gz
prosody-7413f8bab97af104f0a28431538eb9f93a4f7b1c.zip
mod_storage_sql2: Add some comments
-rw-r--r--plugins/mod_storage_sql2.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/mod_storage_sql2.lua b/plugins/mod_storage_sql2.lua
index d5e0494f..74f95417 100644
--- a/plugins/mod_storage_sql2.lua
+++ b/plugins/mod_storage_sql2.lua
@@ -192,6 +192,8 @@ local function keyval_store_set(data)
return true;
end
+--- Key/value store API (default store type)
+
local keyval_store = {};
keyval_store.__index = keyval_store;
function keyval_store:get(username)
@@ -214,6 +216,8 @@ function keyval_store:users()
return iterator(result);
end
+--- Archive store API
+
local archive_store = {}
archive_store.__index = archive_store
function archive_store:append(username, key, when, with, value)
@@ -342,6 +346,10 @@ local stores = {
archive = archive_store;
};
+--- Implement storage driver API
+
+-- FIXME: Some of these operations need to operate on the archive store(s) too
+
local driver = {};
function driver:open(store, typ)