Software /
code /
prosody
Comparison
core/storagemanager.lua @ 5037:c34fdcae6d29
storagemanager: Add method for listing stores
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 28 Jul 2012 21:30:54 +0200 |
parent | 5036:be33164aa97e |
child | 5041:be204204cc5f |
comparison
equal
deleted
inserted
replaced
5036:be33164aa97e | 5037:c34fdcae6d29 |
---|---|
98 return open(host, datastore):get(username); | 98 return open(host, datastore):get(username); |
99 end | 99 end |
100 function datamanager.store(username, host, datastore, data) | 100 function datamanager.store(username, host, datastore, data) |
101 return open(host, datastore):set(username, data); | 101 return open(host, datastore):set(username, data); |
102 end | 102 end |
103 function datamanager.list_stores(username, host) | |
104 return get_driver(host):list_stores(username, host); | |
105 end | |
103 | 106 |
104 return _M; | 107 return _M; |