Coverage for mindsdb / integrations / handlers / db2_handler / connection_args.py: 0%
4 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-21 00:36 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-21 00:36 +0000
1from collections import OrderedDict
3from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE as ARG_TYPE
6connection_args = OrderedDict(
7 host={
8 "type": ARG_TYPE.STR,
9 "description": "The hostname, IP address, or URL of the IBM Db2 database.",
10 "required": True,
11 "label": "Host"
12 },
13 database={
14 "type": ARG_TYPE.STR,
15 "description": "The name of the IBM Db2 database to connect to.",
16 "required": True,
17 "label": "Database"
18 },
19 user={
20 "type": ARG_TYPE.STR,
21 "description": "The username for the IBM Db2 database.",
22 "required": True,
23 "label": "User"
24 },
25 password={
26 "type": ARG_TYPE.PWD,
27 "description": "The password for the IBM Db2 database.",
28 'secret': True,
29 "required": True,
30 "label": "Password"
31 },
32 port={
33 "type": ARG_TYPE.INT,
34 "description": "The port number for connecting to the IBM Db2 database. Default is `50000`",
35 "required": False,
36 "label": "Port"
37 },
38 schema={
39 "type": ARG_TYPE.STR,
40 "description": "The database schema to use within the IBM Db2 database.",
41 "required": False,
42 "label": "Schema"
43 },
44)
46connection_args_example = OrderedDict(
47 host="127.0.0.1",
48 port="25000",
49 password="1234",
50 user="db2admin",
51 schema="db2admin",
52 database="BOOKS",
53)