Coverage for mindsdb / integrations / handlers / phoenix_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 url={
8 'type': ARG_TYPE.STR,
9 'description': 'The URL to the Phoenix Query Server.'
10 },
11 max_retries={
12 'type': ARG_TYPE.INT,
13 'description': 'The maximum number of retries in case there is a connection error.'
14 },
15 autocommit={
16 'type': ARG_TYPE.BOOL,
17 'description': 'The flag for switching the connection to autocommit mode.'
18 },
19 auth={
20 'type': ARG_TYPE.STR,
21 'description': 'An authentication configuration object as expected by the underlying python_requests and python_requests_gssapi library.'
22 },
23 authentication={
24 'type': ARG_TYPE.STR,
25 'description': 'An alternative way to specify the authentication mechanism that mimics the semantics of the JDBC drirver.'
26 },
27 avatica_user={
28 'type': ARG_TYPE.STR,
29 'description': 'The username for BASIC or DIGEST authentication. Use in conjunction with the authentication option.'
30 },
31 avatica_password={
32 'type': ARG_TYPE.PWD,
33 'description': 'The password for BASIC or DIGEST authentication. Use in conjunction with the authentication option.',
34 'secret': True
35 },
36 user={
37 'type': ARG_TYPE.STR,
38 'description': 'If authentication is BASIC or DIGEST then alias for avatica_user. If authentication is NONE or SPNEGO then alias for do_as'
39 },
40 password={
41 'type': ARG_TYPE.PWD,
42 'description': 'If authentication is BASIC or DIGEST then alias for avatica_password.',
43 'secret': True
44 }
45)
47connection_args_example = OrderedDict(
48 url='http://127.0.0.1:8765',
49 autocommit=True
50)