diff options
author | Marcus Stoegbauer <ms@man-da.de> | 2014-07-20 08:48:50 +0200 |
---|---|---|
committer | Marcus Stoegbauer <ms@man-da.de> | 2014-07-20 08:48:50 +0200 |
commit | c3b006a449bcf3f6d9afb4de31499c865748748a (patch) | |
tree | bad7bba600e301d60d59115f2380403a65228bb0 /extra | |
parent | cee5eaf2d57f9e9c591a2d506a35d0e338264e56 (diff) |
Added support for custom SQL databases. Works as expected for sqlite, except config option "file" got renamed to "database", added authentication options for other SQL adapters and an optional query argument to overwrite the generic query.
config snipplet:
sql:
adapter: mysql2
user: sqluser
password: sekrit
host: mysql.local
database: inventory
table: devices
query: SELECT `fqhn` AS `name`, lower(`vendor`) AS `model` FROM `devices` INNER JOIN `devtypes` ON (`devtypes`.`id` = `devices`.`model_id`) WHERE (`aktiv` = 'J')
map:
name: name
model: model
Diffstat (limited to 'extra')
0 files changed, 0 insertions, 0 deletions