Comparison

core/storagemanager.lua @ 5130:051d352ed03c

storagemanager, datamanager, mod_storage_{internal,sql}: Replace list_stores() with an iterator version
author Kim Alvefur <zash@zash.se>
date Mon, 17 Sep 2012 05:42:10 +0200
parent 5129:e8253c931166
child 5131:0cd962661fa2
comparison
equal deleted inserted replaced
5129:e8253c931166 5130:051d352ed03c
117 return open(host, datastore):get(username); 117 return open(host, datastore):get(username);
118 end 118 end
119 function datamanager.store(username, host, datastore, data) 119 function datamanager.store(username, host, datastore, data)
120 return open(host, datastore):set(username, data); 120 return open(host, datastore):set(username, data);
121 end 121 end
122 function datamanager.list_stores(username, host) 122 function datamanager.stores(username, host, typ)
123 return get_driver(host):list_stores(username); 123 return get_driver(host):stores(username, typ);
124 end 124 end
125 function datamanager.purge(username, host) 125 function datamanager.purge(username, host)
126 return purge(username); 126 return purge(username);
127 end 127 end
128 128