spanner-data

v2026.09.24

Use these skills when you need to explore the database structure, discover schema objects like tables and graphs, and execute custom SQL queries to interact with your data.

GitHub
安装命令
npx skhub add cline/spanner-data
Markdown
SKILL.md

Usage

All scripts can be executed using Node.js. Replace <param_name> and <param_value> with actual values.

Bash: node <skill_dir>/scripts/<script_name>.js '{"<param_name>": "<param_value>"}'

PowerShell: node <skill_dir>/scripts/<script_name>.js '{\"<param_name>\": \"<param_value>\"}'

Note: The scripts automatically load the environment variables from various .env files. Do not ask the user to set vars unless skill executions fails due to env var absence.

Scripts

execute_sql

Use this tool to execute DML SQL. Please use the googlesql interface for Spanner.

Parameters

NameTypeDescriptionRequiredDefault
sqlstringThe sql to execute.Yes

execute_sql_dql

Use this tool to execute DQL SQL. Please use the googlesql interface for Spanner.

Parameters

NameTypeDescriptionRequiredDefault
sqlstringThe sql to execute.Yes

list_graphs

Lists detailed graph schema information (node tables, edge tables, labels and property declarations) as JSON for user-created graphs. Filters by a comma-separated list of graph names. If names are omitted, lists all graphs. The output can be 'simple' (graph names only) or 'detailed' (full schema).

Parameters

NameTypeDescriptionRequiredDefault
graph_namesstringOptional: A comma-separated list of graph names. If empty, details for all graphs in user-accessible schemas will be listed.No``
output_formatstringOptional: Use 'simple' to return graph names only or use 'detailed' to return the full information schema.Nodetailed

list_tables

Lists detailed schema information (object type, columns, constraints, indexes) as JSON for user-created tables (ordinary or partitioned). Filters by a comma-separated list of names. If names are omitted, lists all tables in user schemas. The output can be 'simple' (table names only) or 'detailed' (full schema).

Parameters

NameTypeDescriptionRequiredDefault
table_namesstringOptional: A comma-separated list of table names. If empty, details for all tables in user-accessible schemas will be listed.No``
output_formatstringOptional: Use 'simple' to return table names only or use 'detailed' to return the full information schema.Nodetailed

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

Sep 24, 2026

分类

未分类

许可证

Apache-2.0

源路径

skills/spanner-data

默认分支

main

最新提交

2637846

Tree SHA

3e51c9f