Skip to content

Commit 54fbe13

Browse files
authored
Merge branch 'main' into ci-presubmit
2 parents bc29945 + ee351d3 commit 54fbe13

5 files changed

Lines changed: 46 additions & 7 deletions

File tree

.github/workflows/presubmit-tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ jobs:
3434
chmod +x toolbox
3535
3636
- name: Install Extension
37+
<<<<<<< ci-presubmit
3738
run: npx gemini extensions validate .
3839
env:
39-
GEMINI_API_KEY: "placeholder"
40+
GEMINI_API_KEY: "placeholder"
41+
=======
42+
env:
43+
GEMINI_API_KEY: "placeholder"
44+
run: yes | npx gemini extensions install .
45+
>>>>>>> main

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.2.4"
2+
".": "0.2.5"
33
}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [0.2.5](https://github.com/gemini-cli-extensions/spanner/compare/0.2.4...0.2.5) (2026-01-29)
4+
5+
6+
### Features
7+
8+
* add dialect and configuration instructions ([#79](https://github.com/gemini-cli-extensions/spanner/issues/79)) ([a1dbc8c](https://github.com/gemini-cli-extensions/spanner/commit/a1dbc8c284fed0d3d1b3a0212f8399f66a46885d))
9+
310
## [0.2.4](https://github.com/gemini-cli-extensions/spanner/compare/0.2.3...0.2.4) (2026-01-27)
411

512

README.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,26 @@ gemini extensions install https://github.com/gemini-cli-extensions/spanner
4444

4545
### Configuration
4646

47-
Set the following environment variables before starting the Gemini CLI. These variables can be loaded from a `.env` file.
47+
You will be prompted to configure the following settings during installation. These settings are saved in an `.env` file within the extension's directory.
48+
49+
* `SPANNER_PROJECT`: The GCP project ID.
50+
* `SPANNER_INSTANCE`: The Spanner instance ID.
51+
* `SPANNER_DATABASE`: The Spanner database ID.
52+
* `SPANNER_DIALECT`: (Optional) The SQL dialect of the Spanner database: 'googlesql' or 'postgresql'. Defaults to "googlesql".
53+
54+
To view or update your configuration:
55+
56+
**List Settings:**
57+
* Terminal: `gemini extensions list`
58+
* Gemini CLI: `/extensions list`
59+
60+
**Update Settings:**
61+
* Terminal: `gemini extensions config spanner [setting name] [--scope <scope>]`
62+
* `setting name`: (Optional) The single setting to configure.
63+
* `scope`: (Optional) The scope of the setting in (`user` or `workspace`). Defaults to `user`.
64+
* Currently, you must restart the Gemini CLI for changes to take effect. We recommend using `gemini --resume` to resume your session.
65+
66+
Alternatively, you can manually set these environment variables before starting the Gemini CLI:
4867

4968
```bash
5069
export SPANNER_PROJECT="<your-gcp-project-id>"
@@ -53,7 +72,9 @@ export SPANNER_DATABASE="<your-spanner-database-id>"
5372
export SPANNER_DIALECT="googlesql" # Optional: "googlesql" or "postgresql". Defaults to "googlesql".
5473
```
5574

56-
Ensure [Application Default Credentials](https://cloud.google.com/docs/authentication/gcloud) are available in your environment.
75+
> [!NOTE]
76+
> * Ensure [Application Default Credentials](https://cloud.google.com/docs/authentication/gcloud) are available in your environment.
77+
> * See [Troubleshooting](#troubleshooting) for debugging your configuration.
5778
5879
### Start Gemini CLI
5980

gemini-extension.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "spanner",
3-
"version": "0.2.4",
3+
"version": "0.2.5",
44
"description": "Connect and interact with Spanner data using natural language.",
55
"mcpServers": {
66
"spanner": {
@@ -20,14 +20,19 @@
2020
"envVar": "SPANNER_PROJECT"
2121
},
2222
{
23-
"name": "Instance ID",
23+
"name": "Instance",
2424
"description": "ID of the Spanner instance",
2525
"envVar": "SPANNER_INSTANCE"
2626
},
2727
{
28-
"name": "Database ID",
28+
"name": "Database",
2929
"description": "ID of the Spanner database",
3030
"envVar": "SPANNER_DATABASE"
31+
},
32+
{
33+
"name": "Database Dialect",
34+
"description": "(Optional) The SQL dialect of the Spanner Database: 'googlesql' or 'postgresql'. (Default: 'googlesql')",
35+
"envVar": "SPANNER_DIALECT"
3136
}
3237
]
3338
}

0 commit comments

Comments
 (0)