/
monetparameters.py
99 lines (68 loc) · 3.03 KB
/
monetparameters.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/usr/bin/env python3
from dataclasses import KW_ONLY, dataclass
@dataclass
class Param:
name: str
typ: str
_: KW_ONLY
default: str = None
descr: str
core: bool = False
PARAMS = [
Param("tls", "bool", default="false",
descr="secure the connection using TLS",
core=True),
Param("host", "string", default='""',
descr="IP number, domain name or one of the special values `localhost` and `localhost.`",
core=True),
Param("port", "integer", default='-1',
descr="Port to connect to, 1..65535 or -1 for 'not set'",
core=True),
Param("database", "string", default='""',
descr="name of database to connect to",
core=True),
Param("tableschema", "string", default='""',
descr="only used for REMOTE TABLE, otherwise unused",
core=True),
Param("table", "string", default='""',
descr="only used for REMOTE TABLE, otherwise unused",
core=True),
Param("sock", "path", default='""',
descr="path to Unix domain socket to connect to"),
Param("sockdir", "path", default='"/tmp"',
descr="Directory for implicit Unix domain sockets (.s.monetdb.PORT)"),
Param("cert", "path", default='""',
descr="path to TLS certificate to authenticate server with"),
Param("certhash", "string", default='""',
descr="hash of server TLS certificate must start with these hex digits; overrides cert"),
Param("clientkey", "path", default='""',
descr="path to TLS key (+certs) to authenticate with as client"),
Param("clientcert", "path", default='""',
descr="path to TLS certs for 'clientkey', if not included there"),
Param("user", "string", default='unspecified',
descr="user name to authenticate as"),
Param("password", "string", default='unspecified',
descr="password to authenticate with"),
Param("language", "string", default='"sql"',
descr='for example, "sql", "mal", "msql", "profiler"'),
Param("autocommit", "bool", default="unspecified",
descr="initial value of autocommit"),
Param("schema", "string", default='""',
descr="initial schema"),
Param("timezone", "integer", default="unspecified",
descr="client time zone as minutes east of UTC"),
Param("binary", "string", default='"on"',
descr="whether to use binary result set format (number or bool)"),
Param("replysize", "integer", default="unspecified",
descr="rows beyond this limit are retrieved on demand, <1 means unlimited"),
Param("fetchsize", "integer",
descr="alias for replysize, specific to jdbc"),
Param("maxprefetch", "integer", default="unspecified",
descr="specific to pymonetdb"),
Param("hash", "string", default="unspecified",
descr="specific to jdbc"),
Param("debug", "bool", default="unspecified",
descr="specific to jdbc"),
Param("logfile", "string", default="unspecified",
descr="specific to jdbc"),
]