Coverage for mindsdb / integrations / handlers / cloud_spanner_handler / connection_args.py: 0%
4 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-21 00:36 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-21 00:36 +0000
1from collections import OrderedDict
3from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE as ARG_TYPE
6connection_args = OrderedDict(
7 instance_id={
8 'type': ARG_TYPE.STR,
9 'description': 'The Cloud Spanner instance identifier.',
10 },
11 database_id={
12 'type': ARG_TYPE.STR,
13 'description': 'The Cloud Spanner database indentifier.',
14 },
15 project={
16 'type': ARG_TYPE.STR,
17 'description': 'The Cloud Spanner project indentifier.',
18 },
19 dialect={
20 'type': ARG_TYPE.STR,
21 'description': 'Dialect of the database',
22 "required": False,
23 },
24 credentials={
25 'type': ARG_TYPE.STR,
26 'description': 'The Google Cloud Platform service account key in the JSON format.',
27 'secret': True
28 },
29)
31connection_args_example = OrderedDict(
32 instance_id='test-instance', datbase_id='example-db', project='your-project-id'
33)