Coverage for mindsdb / integrations / handlers / sqreamdb_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 the SQreamDB server/database.'
10 },
11 user={
12 'type': ARG_TYPE.STR,
13 'description': 'The user name used to authenticate with the SQreamDB server.'
14 },
15 password={
16 'type': ARG_TYPE.PWD,
17 'description': 'The password to authenticate the user with the SQreamDB server.',
18 'secret': True
19 },
20 port={
21 'type': ARG_TYPE.INT,
22 'description': 'Specify port to connect SQreamDB server'
23 },
24 database={
25 'type': ARG_TYPE.STR,
26 'description': 'Specify database name to connect SQreamDB server'
27 },
28 service={
29 'type': ARG_TYPE.STR,
30 'description': 'Optional: service queue (default: "sqream")'
31 },
32 use_ssl={
33 'type': ARG_TYPE.BOOL,
34 'description': 'use SSL connection (default: False)'
35 },
36 clustered={
37 'type': ARG_TYPE.BOOL,
38 'description': 'Optional: Connect through load balancer, or direct to worker (Default: false - direct to worker)'
39 },
40)
42connection_args_example = OrderedDict(
43 host='127.0.0.1',
44 port=5000,
45 password='sqream',
46 user='master',
47 database='sqream'
48)