spanner Claude Code Plugin
Claude Code PluginClaude CodeDatabaseDatabases & StorageThe explanation below is AI-generated. Please verify it against the sources.
This plugin lets an AI agent such as Claude Code connect to a Google Cloud Spanner database and interact with it using natural language. It supports exploring database schemas, discovering tables and other schema objects, and running SQL queries against Spanner data. It can also help generate code, such as data classes, based on a table's schema. According to the README, the project is currently in a pre-v1. 0 beta stage and may undergo breaking changes before a stable release.
About the service
Google Cloud Spanner is a managed, globally distributed relational database service from Google Cloud. This plugin connects to a specific Spanner instance and database within a Google Cloud project, using environment variables to identify the project, instance, database, and optional SQL dialect (googlesql or postgresql).
What you can do with spanner
- List tables and inspect schema objects such as tables and graphs in a connected Spanner database
- Ask natural-language questions that get translated into SQL queries against Spanner data
- Run custom SQL queries and retrieve results through the agent
- Request generated code, such as a data class, based on a table's schema
- Configure the connection via environment variables for project, instance, database, and SQL dialect