aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit9fa3cd9382ad96fdbf1091f54e9f2c0a5607029d (patch)
tree229ebcbe10570a26967c6cdffdb87ced573f95fd /plugins
parent3edc813e77f2bb5597a7f49aaf2146562313936b (diff)
downloadprosody-9fa3cd9382ad96fdbf1091f54e9f2c0a5607029d.tar.gz
prosody-9fa3cd9382ad96fdbf1091f54e9f2c0a5607029d.zip
mod_storage_sql2: Add some comments
Diffstat (limited to 'plugins')
-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)