Coverage for mindsdb / integrations / handlers / hive_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 username={ 

8 'type': ARG_TYPE.STR, 

9 'description': 'The username for the Apache Hive database.', 

10 'required': False, 

11 'label': 'Username' 

12 }, 

13 password={ 

14 'type': ARG_TYPE.PWD, 

15 'description': 'The password for the Apache Hive database.', 

16 'secret': True, 

17 'required': False, 

18 'label': 'Password' 

19 }, 

20 database={ 

21 'type': ARG_TYPE.STR, 

22 'description': 'The name of the Apache Hive database to connect to.', 

23 'required': True, 

24 'label': 'Database' 

25 }, 

26 host={ 

27 'type': ARG_TYPE.STR, 

28 'description': 'The hostname, IP address, or URL of the Apache Hive server.. NOTE: use \'127.0.0.1\' instead of \'localhost\' to connect to local server.', 

29 'required': True, 

30 'label': 'Host' 

31 }, 

32 port={ 

33 'type': ARG_TYPE.INT, 

34 'description': 'The port number for connecting to the Apache Hive server. Default is `10000`.', 

35 'required': False, 

36 'label': 'Port' 

37 }, 

38 auth={ 

39 'type': ARG_TYPE.STR, 

40 'description': 'The authentication mechanism to use. Default is `CUSTOM`. Other options are `NONE`, `NOSASL`, `KERBEROS` and `LDAP`.', 

41 'required': False, 

42 'label': 'Authentication' 

43 } 

44) 

45 

46connection_args_example = OrderedDict( 

47 host='127.0.0.1', 

48 port='10000', 

49 auth='CUSTOM', 

50 user='root', 

51 password='password', 

52 database='database' 

53)