Software / code / prosody
Comparison
plugins/mod_storage_sql.lua @ 6165:6a184b16b717
core.certmanager, core.moduleapi, mod_storage_sql, mod_storage_sql2: Import from util.paths
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 09 May 2014 19:35:29 +0200 |
| parent | 5776:bd0ff8ae98a8 |
| child | 6283:7cf6d3a2c855 |
comparison
equal
deleted
inserted
replaced
| 6164:ef4024f6bc40 | 6165:6a184b16b717 |
|---|---|
| 47 path = params.database, | 47 path = params.database, |
| 48 }; | 48 }; |
| 49 end | 49 end |
| 50 | 50 |
| 51 | 51 |
| 52 local resolve_relative_path = require "core.configmanager".resolve_relative_path; | 52 local resolve_relative_path = require "util.paths".resolve_relative_path; |
| 53 | 53 |
| 54 local function test_connection() | 54 local function test_connection() |
| 55 if not connection then return nil; end | 55 if not connection then return nil; end |
| 56 if connection:ping() then | 56 if connection:ping() then |
| 57 return true; | 57 return true; |