(config_decl)
| 28 | |
| 29 | @extend('ddserver.config:ConfigDeclaration') |
| 30 | def config_db(config_decl): |
| 31 | with config_decl.declare('db') as s: |
| 32 | s('host', |
| 33 | conv = str, |
| 34 | default = 'localhost') |
| 35 | s('port', |
| 36 | conv = int, |
| 37 | default = 3306) |
| 38 | s('name', |
| 39 | conv = str, |
| 40 | default = 'ddserver') |
| 41 | s('username', |
| 42 | conv = str, |
| 43 | default = 'ddserver') |
| 44 | s('password', |
| 45 | conv = str) |
| 46 | |
| 47 | |
| 48 |