Software /
code /
prosody
Comparison
plugins/mod_storage_internal.lua @ 5122:b41c33dc7c36
mod_storage_*: Don't explicitly set driver name, to ease copying/renaming modules.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 12 Sep 2012 23:46:10 +0500 |
parent | 5121:b5a5643f8572 |
child | 5133:1443d1c37c6c |
comparison
equal
deleted
inserted
replaced
5121:b5a5643f8572 | 5122:b41c33dc7c36 |
---|---|
1 local datamanager = require "core.storagemanager".olddm; | 1 local datamanager = require "core.storagemanager".olddm; |
2 | 2 |
3 local host = module.host; | 3 local host = module.host; |
4 | 4 |
5 local driver = { name = "internal" }; | 5 local driver = {}; |
6 local driver_mt = { __index = driver }; | 6 local driver_mt = { __index = driver }; |
7 | 7 |
8 function driver:open(store) | 8 function driver:open(store) |
9 return setmetatable({ store = store }, driver_mt); | 9 return setmetatable({ store = store }, driver_mt); |
10 end | 10 end |