Coverage for mindsdb / integrations / handlers / hana_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 address={
8 'type': ARG_TYPE.STR,
9 'description': 'The hostname, IP address, or URL of the SAP HANA database.',
10 'required': True,
11 'label': 'Address'
12 },
13 port={
14 'type': ARG_TYPE.INT,
15 'description': 'The port number for connecting to the SAP HANA database.',
16 'required': True,
17 'label': 'Port'
18 },
19 user={
20 'type': ARG_TYPE.STR,
21 'description': 'The username for the SAP HANA database.',
22 'required': True,
23 'label': 'User'
24 },
25 password={
26 'type': ARG_TYPE.PWD,
27 'description': 'The password for the SAP HANA database.',
28 'secret': True,
29 'required': True,
30 'label': 'Password'
31 },
32 schema={
33 'type': ARG_TYPE.STR,
34 'description': "The database schema to use. Defaults to the user's default schema.",
35 'required': False,
36 'label': 'Schema'
37 },
38 database={
39 'type': ARG_TYPE.STR,
40 'description': 'The name of the database to connect to. This parameter is not used for SAP HANA Cloud.',
41 'required': False,
42 'label': 'Database'
43 },
44 encrypt={
45 'type': ARG_TYPE.BOOL,
46 'description': 'The setting to enable or disable encryption. Default is `True`.',
47 'required': False,
48 'label': 'Encrypt'
49 }
50)
52connection_args_example = OrderedDict(
53 host='123e4567-e89b-12d3-a456-426614174000.hana.trial-us10.hanacloud.ondemand.com',
54 port=30013,
55 user='DBADMIN',
56 password='password'
57)