Coverage for mindsdb / integrations / handlers / bigquery_handler / connection_args.py: 100%

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 project_id={ 

8 'type': ARG_TYPE.STR, 

9 'description': 'The BigQuery project id.' 

10 }, 

11 dataset={ 

12 'type': ARG_TYPE.STR, 

13 'description': 'The BigQuery dataset name.' 

14 }, 

15 service_account_keys={ 

16 'type': ARG_TYPE.PATH, 

17 'description': 'Full path or URL to the service account JSON file', 

18 'secret': True 

19 }, 

20 service_account_json={ 

21 'type': ARG_TYPE.DICT, 

22 'description': 'Content of service account JSON file', 

23 'secret': True 

24 }, 

25) 

26 

27connection_args_example = OrderedDict( 

28 project_id='tough-future-332513', 

29 service_account_keys='/home/bigq/tough-future-332513.json' 

30)