Changeset

6736:4aee55c0cc5c

mod_storage_sql2: Add some comments
author Matthew Wild <mwild1@gmail.com>
date Wed, 24 Jun 2015 22:54:17 +0100
parents 6735:b553a30620b2
children 6737:9f932a31eeba
files plugins/mod_storage_sql2.lua
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_storage_sql2.lua	Wed Jun 03 15:57:46 2015 +0100
+++ b/plugins/mod_storage_sql2.lua	Wed Jun 24 22:54:17 2015 +0100
@@ -192,6 +192,8 @@
 	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 @@
 	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 @@
 	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)