This Gemini CLI extension provides a set of tools to interact with Cloud SQL for SQL Server instances. It allows you to manage your databases, execute queries, and explore schemas directly from the Gemini CLI, using natural language prompts.
- Integrated with Gemini CLI: As a Google-developed extension, it integrates seamlessly into the Gemini CLI environment, making security an accessible part of your workflow.
- Connect to Cloud SQL for SQL Server: Securely connect to your Cloud SQL for SQL Server instances.
- Explore Database Schema: List databases, tables, views, and schemas.
- Query your Database: Execute SQL queries against your database.
list_tables
execute_sql
Before you begin, ensure you have the following:
- Gemini CLI installed.
- A Google Cloud project with the Cloud SQL Admin API enabled.
- IAM Permissions
To install the extension, use the gemini extensions install
command:
gemini extensions install github.com/gemini-cli-extensions/cloud-sql-sqlserver.git
CLOUD_SQL_MSSQL_PROJECT
: The GCP project ID.CLOUD_SQL_MSSQL_REGION
: The region of your Cloud SQL instance.CLOUD_SQL_MSSQL_INSTANCE
: The ID of your Cloud SQL instance.CLOUD_SQL_MSSQL_DATABASE
: The name of the database to connect to.CLOUD_SQL_MSSQL_IP_ADDRESS
: The IP address of the Cloud SQL instance.CLOUD_SQL_MSSQL_USER
: The database username.CLOUD_SQL_MSSQL_PASSWORD
: The password for the database user.
- Provision Infrastructure
- Explore Schemas and Data
- Generate code
This extension executes commands against your Cloud SQL for SQL Server database. Always review the generated SQL queries before execution, especially for write operations.
This is not an officially supported Google product. This extension is under active development, and breaking changes may be introduced.