From 7413f8bab97af104f0a28431538eb9f93a4f7b1c Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 24 Jun 2015 22:54:17 +0100 Subject: mod_storage_sql2: Add some comments --- plugins/mod_storage_sql2.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugins') 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) -- cgit v1.2.3