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

8 'type': ARG_TYPE.STR, 

9 'description': 'The user name used to authenticate with the MatrixOne server.' 

10 }, 

11 password={ 

12 'type': ARG_TYPE.PWD, 

13 'description': 'The password to authenticate the user with the MatrixOne server.', 

14 'secret': True 

15 }, 

16 database={ 

17 'type': ARG_TYPE.STR, 

18 'description': 'The database name to use when connecting with the MatrixOne server.' 

19 }, 

20 host={ 

21 'type': ARG_TYPE.STR, 

22 'description': 'The host name or IP address of the MatrixOne server. ' 

23 }, 

24 port={ 

25 'type': ARG_TYPE.INT, 

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

27 }, 

28 ssl={ 

29 'type': ARG_TYPE.BOOL, 

30 'description': 'Set it to False to disable ssl.' 

31 }, 

32 ssl_ca={ 

33 'type': ARG_TYPE.PATH, 

34 'description': 'Path or URL of the Certificate Authority (CA) certificate file' 

35 }, 

36 ssl_cert={ 

37 'type': ARG_TYPE.PATH, 

38 'description': 'Path name or URL of the server public key certificate file' 

39 }, 

40 ssl_key={ 

41 'type': ARG_TYPE.PATH, 

42 'description': 'The path name or URL of the server private key file' 

43 } 

44) 

45 

46connection_args_example = OrderedDict( 

47 host='127.0.0.1', 

48 port=6001, 

49 user='dump', 

50 password='111', 

51 database='mo_catalog' 

52)