Coverage for mindsdb / integrations / handlers / cloud_sql_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 Google Cloud SQL instance.' 

10 }, 

11 password={ 

12 'type': ARG_TYPE.PWD, 

13 'description': 'The password to authenticate the user with the Google Cloud SQL instance.', 

14 'secret': True 

15 }, 

16 database={ 

17 'type': ARG_TYPE.STR, 

18 'description': 'The database name to use when connecting with the Google Cloud SQL instance.' 

19 }, 

20 host={ 

21 'type': ARG_TYPE.STR, 

22 'description': 'The host name or IP address of the Google Cloud SQL instance.' 

23 }, 

24 port={ 

25 'type': ARG_TYPE.INT, 

26 'description': 'The TCP/IP port of the Google Cloud SQL instance. Must be an integer.' 

27 }, 

28 db_engine={ 

29 'type': ARG_TYPE.STR, 

30 'description': "The database engine of the Google Cloud SQL instance. This can take one of three values: 'mysql', 'postgresql' or 'mssql'." 

31 } 

32) 

33 

34connection_args_example = OrderedDict( 

35 db_engine='mysql', 

36 host='53.170.61.16', 

37 port=3306, 

38 user='root', 

39 password='password', 

40 database='database' 

41)