bigquery-data
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUsage
使用方法
All scripts can be executed using Node.js. Replace and with actual values.
<param_name><param_value>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.
所有脚本均可通过Node.js执行。将和替换为实际值。
<param_name><param_value>Bash:
node <skill_dir>/scripts/<script_name>.js '{"<param_name>": "<param_value>"}'PowerShell:
node <skill_dir>/scripts/<script_name>.js '{\"<param_name>\": \"<param_value>\"}'注意:脚本会自动从多个.env文件加载环境变量。除非因缺少环境变量导致技能执行失败,否则无需要求用户设置变量。
Scripts
脚本
execute_sql
execute_sql
Use this skill to execute sql statement.
使用此技能执行SQL语句。
Parameters
参数
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| sql | string | The SQL to execute. | Yes | |
| dry_run | boolean | If set to true, the query will be validated and information about the execution will be returned without running the query. Defaults to false. | No | |
| 名称 | 类型 | 描述 | 是否必填 | 默认值 |
|---|---|---|---|---|
| sql | string | 要执行的SQL语句 | 是 | |
| dry_run | boolean | 如果设为true,将验证查询并返回执行相关信息,但不会实际运行查询。默认值为false。 | 否 | |
get_dataset_info
get_dataset_info
Use this skill to get dataset metadata.
使用此技能获取数据集元数据。
Parameters
参数
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| project | string | The Google Cloud project ID containing the dataset. | No | |
| dataset | string | The dataset to get metadata information. Can be in | Yes |
| 名称 | 类型 | 描述 | 是否必填 | 默认值 |
|---|---|---|---|---|
| project | string | 包含该数据集的Google Cloud项目ID | 否 | |
| dataset | string | 要获取元数据的数据集,格式可为 | 是 |
get_table_info
get_table_info
Use this skill to get table metadata.
使用此技能获取表元数据。
Parameters
参数
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| project | string | The Google Cloud project ID containing the dataset and table. | No | |
| dataset | string | The table's parent dataset. | Yes | |
| table | string | The table to get metadata information. | Yes |
| 名称 | 类型 | 描述 | 是否必填 | 默认值 |
|---|---|---|---|---|
| project | string | 包含数据集和表的Google Cloud项目ID | 否 | |
| dataset | string | 表所属的父数据集 | 是 | |
| table | string | 要获取元数据的表 | 是 |
list_dataset_ids
list_dataset_ids
Use this skill to list datasets.
使用此技能列出数据集。
Parameters
参数
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| project | string | The Google Cloud project to list dataset ids. | No |
| 名称 | 类型 | 描述 | 是否必填 | 默认值 |
|---|---|---|---|---|
| project | string | 要列出数据集ID的Google Cloud项目 | 否 |
list_table_ids
list_table_ids
Use this skill to list tables.
使用此技能列出表。
Parameters
参数
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| project | string | The Google Cloud project ID containing the dataset. | No | |
| dataset | string | The dataset to list table ids. | Yes |
| 名称 | 类型 | 描述 | 是否必填 | 默认值 |
|---|---|---|---|---|
| project | string | 包含该数据集的Google Cloud项目ID | 否 | |
| dataset | string | 要列出表ID的数据集 | 是 |
search_catalog
search_catalog
Use this skill to find tables, views, models, routines or connections.
使用此技能查找表、视图、模型、例程或连接。
Parameters
参数
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| prompt | string | Prompt representing search intention. Do not rewrite the prompt. | Yes | |
| datasetIds | array | Array of dataset IDs. | No | |
| projectIds | array | Array of project IDs. | No | |
| types | array | Array of data types to filter by. | No | |
| pageSize | integer | Number of results in the search page. | No | |
| 名称 | 类型 | 描述 | 是否必填 | 默认值 |
|---|---|---|---|---|
| prompt | string | 代表搜索意图的提示词,请勿改写该提示词 | 是 | |
| datasetIds | array | 数据集ID数组 | 否 | |
| projectIds | array | 项目ID数组 | 否 | |
| types | array | 用于过滤的数据类型数组 | 否 | |
| pageSize | integer | 搜索结果每页的数量 | 否 | |