Coverage for mindsdb / integrations / handlers / maxdb_handler / connection_args.py: 0%

4 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-01-21 00:36 +0000

1from collections import OrderedDict 

2 

3from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE as ARG_TYPE 

4 

5 

6connection_args = OrderedDict( 

7 host={ 

8 'type': ARG_TYPE.STR, 

9 'description': 'The host name or IP address of the SAP MaxDB server.' 

10 }, 

11 port={ 

12 'type': ARG_TYPE.INT, 

13 'description': 'The TCP/IP port of the SAP MaxDB. Must be an integer.' 

14 }, 

15 database={ 

16 'type': ARG_TYPE.STR, 

17 'description': 'The database name to use when connecting with the SAP MaxDB server.' 

18 }, 

19 jdbc_location={ 

20 'type': ARG_TYPE.STR, 

21 'description': 'The location of the jar file which contains the JDBC class.' 

22 }, 

23 user={ 

24 'type': ARG_TYPE.STR, 

25 'description': 'The user name used to authenticate with the SAP MaxDB server.' 

26 }, 

27 password={ 

28 'type': ARG_TYPE.PWD, 

29 'description': 'The password to authenticate the user with the SAP MaxDB server.', 

30 'secret': True 

31 } 

32) 

33 

34 

35connection_args_example = OrderedDict( 

36 host='127.0.0.1', 

37 port=7210, 

38 user='DBADMIN', 

39 password='password', 

40 database="MAXDB", 

41 jdbc_location='/Users/marsid/Desktop/sapdbc.jar', 

42)