MCPcopy Index your code
hub / github.com/ddserver/ddserver / config_db

Function config_db

ddserver/db.py:30–45  ·  view source on GitHub ↗
(config_decl)

Source from the content-addressed store, hash-verified

28
29@extend('ddserver.config:ConfigDeclaration')
30def 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

Callers

nothing calls this directly

Calls 2

sFunction · 0.85
declareMethod · 0.80

Tested by

no test coverage detected