Software / code / prosody
Comparison
plugins/mod_storage_sql.lua @ 8036:7ebaefc88b3d
mod_storage_sql: Split long lines [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 01 Apr 2017 19:45:37 +0200 |
| parent | 8035:58d6c2ab3d16 |
| child | 8037:5a802653d50d |
comparison
equal
deleted
inserted
replaced
| 8035:58d6c2ab3d16 | 8036:7ebaefc88b3d |
|---|---|
| 522 return database; | 522 return database; |
| 523 end | 523 end |
| 524 | 524 |
| 525 local function normalize_params(params) | 525 local function normalize_params(params) |
| 526 return { | 526 return { |
| 527 driver = assert(params.driver, "Configuration error: Both the SQL driver and the database need to be specified"); | 527 driver = assert(params.driver, |
| 528 database = assert(normalize_database(params.driver, params.database), "Configuration error: Both the SQL driver and the database need to be specified"); | 528 "Configuration error: Both the SQL driver and the database need to be specified"); |
| 529 database = assert(normalize_database(params.driver, params.database), | |
| 530 "Configuration error: Both the SQL driver and the database need to be specified"); | |
| 529 username = params.username; | 531 username = params.username; |
| 530 password = params.password; | 532 password = params.password; |
| 531 host = params.host; | 533 host = params.host; |
| 532 port = params.port; | 534 port = params.port; |
| 533 }; | 535 }; |