Coverage for mindsdb / integrations / handlers / druid_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 host name or IP address of Apache Druid.',
10 'required': True,
11 'label': 'Host'
12 },
13 port={
14 'type': ARG_TYPE.INT,
15 'description': 'The port that Apache Druid is running on.',
16 'required': True,
17 'label': 'Port'
18 },
19 path={
20 'type': ARG_TYPE.STR,
21 'description': 'The query path.',
22 'required': True,
23 'label': 'path'
24 },
25 scheme={
26 'type': ARG_TYPE.STR,
27 'description': 'The URI schema. This parameter is optional and the default will be http.',
28 'required': False,
29 'label': 'Scheme'
30 },
31 user={
32 'type': ARG_TYPE.STR,
33 'description': 'The user name used to authenticate with Apache Druid. This parameter is optional.',
34 'required': False,
35 'label': 'User'
36 },
37 password={
38 'type': ARG_TYPE.PWD,
39 'description': 'The password used to authenticate with Apache Druid. This parameter is optional.',
40 'required': False,
41 'label': 'password',
42 'secret': True
43 }
44)
46connection_args_example = OrderedDict(
47 host='localhost',
48 port=8888,
49 path='/druid/v2/sql/',
50 scheme='http'
51)