Coverage for mindsdb / integrations / handlers / altibase_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 Altibase server. NOTE: use \'127.0.0.1\' instead of \'localhost\' to connect to local server.' 

10 }, 

11 port={ 

12 'type': ARG_TYPE.INT, 

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

14 }, 

15 user={ 

16 'type': ARG_TYPE.STR, 

17 'description': 'The user name used to authenticate with the Altibase server.' 

18 }, 

19 password={ 

20 'type': ARG_TYPE.STR, 

21 'description': 'The password to authenticate the user with the Altibase server.', 

22 'secret': True 

23 }, 

24 database={ 

25 'type': ARG_TYPE.STR, 

26 'description': 'The database name to use when connecting with the Altibase server.' 

27 }, 

28 jdbc_class={ 

29 'type': ARG_TYPE.STR, 

30 'description': 'The driver class of the Altibase JDBC driver' 

31 }, 

32 jar_location={ 

33 'type': ARG_TYPE.PATH, 

34 'description': 'The location of the Altibase JDBC driver jar file' 

35 }, 

36 dsn={ 

37 'type': ARG_TYPE.STR, 

38 'description': 'Datasource name of the Altibase server. NOTE: use dsn if you want to use an ODBC connection.' 

39 } 

40) 

41 

42connection_args_example = OrderedDict( 

43 host='127.0.0.1', 

44 port=20300, 

45 user='sys', 

46 password='manager', 

47 database='mydb', 

48 jdbc_class='Altibase.jdbc.driver.AltibaseDriver', 

49 jar_location='/data/altibase_home/lib/Altibase.jar' 

50)