Software / code / prosody
Comparison
plugins/mod_storage_sql.lua @ 3730:5aa586d1366e
mod_storage_sql: Fixed a typo.
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Sun, 12 Dec 2010 05:38:08 +0500 |
| parent | 3729:b351fa47a743 |
| child | 3731:b3a5f9b1d1df |
comparison
equal
deleted
inserted
replaced
| 3729:b351fa47a743 | 3730:5aa586d1366e |
|---|---|
| 23 local tostring = tostring; | 23 local tostring = tostring; |
| 24 local tonumber = tonumber; | 24 local tonumber = tonumber; |
| 25 local pairs = pairs; | 25 local pairs = pairs; |
| 26 local next = next; | 26 local next = next; |
| 27 local setmetatable = setmetatable; | 27 local setmetatable = setmetatable; |
| 28 local json = { stringify = function(s) return require"util.serialzation".serialize(s) end, parse = require"util.serialization".deserialze }; | 28 local json = { stringify = function(s) return require"util.serialization".serialize(s) end, parse = require"util.serialization".deserialze }; |
| 29 | 29 |
| 30 local connection = ...; | 30 local connection = ...; |
| 31 local host,user,store = module.host; | 31 local host,user,store = module.host; |
| 32 | 32 |
| 33 do -- process options to get a db connection | 33 do -- process options to get a db connection |