bigquery-migration-metadata-extractor
БесплатноЗапускает вложенные скриптыНе проверенExtracts database catalog metadata and query logs from data warehouses by running the DWH migration extractor locally or on a temporary Google Cloud VM…
от google★ 25 380 звёзд на GitHubОб этом скилле
BigQuery Migration Metadata Extraction
Extraction runs the DWH migration extractor (dwh-migration-dumper) through two
gcloud commands to collect catalog DDL and query history—not table row data. If
the user wants to migrate table rows (such as Snowflake COPY INTO unloads),
ask whether they prefer the [BigQuery Data Transfer Service][bq_dts] (including
the [Snowflake connector][snowflake_dts]) or exporting to Cloud Storage and
loading with bq load. Both extract commands are in the alpha release
track:
| Command | Use for |
|---|---|
gcloud alpha bq migration metadata extract |
Catalog metadata (metadata connectors) |
gcloud alpha bq migration query-logs extract |
Query history (*-logs connectors) |
Both take the same arguments. gcloud flags come first; the extractor's own flags
come after -- and are passed to the extractor unchanged:
gcloud alpha bq migration {metadata|query-logs} extract \
--connector=CONNECTOR --output=gs://BUCKET/PATH/ \
[--run-mode=local|cloud] [cloud flags] \
-- [EXTRACTOR FLAGS] [PASSWORD]
--connectorand--outputare required gcloud flags.--outputis a Cloud Storage path (gs://...); local mode also accepts a local file or directory path. This skill uses Cloud Storage in both run modes.--run-mode=local(the default) runs the extractor on this machine.--run-mode=cloudruns it on a temporary Compute Engine VM (the BigQuery Migration Cloud Extractor).- Database flags (
--host,--port,--user,--database,--schema,--warehouse,--role,--driver,--assessment,--query-log-*, ...) go after--. Putting them before--is an error. - How the password is passed depends on the run mode (Section 4): an extractor
response file (
@FILE) in local mode, and--passwordread from a file in cloud mode. Never type a literal password.
[!IMPORTANT] The commands are in the alpha track. If gcloud reports an invalid choice or unknown command, ask the user before updating the Google Cloud CLI, then retry. Update it with
gcloud components update, or, if gcloud was installed with a system package manager such asaptoryum(which disables the component manager), upgrade thegoogle-cloud-clipackage with that package manager.
Usage Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read and follow the instructions in
Usage Attribution.
Before you begin
Google Cloud CLI, authentication, project, region, and zone: Ensure the [Google Cloud CLI][gcloud_install] is installed, verify that the Google Cloud project has an active Cloud Billing account, authenticate with user and Application Default Credentials, and configure the target project, a default region such as
us-central1(check regional service availability at [Google Cloud locations][cloud_locations]), and a zone in that region. Cloud mode takes the VM's zone from--zone, thencompute/zone, thenus-central1-a; it does not readcompute/region:gcloud auth login gcloud auth application-default login gcloud config set project {project_id} gcloud config set compute/region {region} gcloud config set compute/zone {zone}Output bucket: This skill writes the ZIP archives to a Cloud Storage bucket (
--output) that the project owns and that is not public, in both run modes. In both modes the command checks the bucket before it starts the extractor, so the caller needsstorage.buckets.liston the bucket's project andstorage.buckets.getIamPolicyon the bucket unless public access prevention is enforced on it. In local mode the Application Default Credentials also need to create objects in the bucket.Run-mode prerequisites (ask the user before installing software or enabling APIs):
- Local mode (
--run-mode=local): Java 11 or later (JRE 11+) onPATH, thebqmsgcloud component, vendor JDBC driver JARs (--driver) when required, and local network access to the database; see the local extraction guide. Without a terminal the extract command cannot prompt to installbqmsand fails, so once the user agrees, install it first withgcloud components install bqms --quiet(for a gcloud installed withaptoryum, install thegoogle-cloud-cli-bqmspackage instead). - Cloud mode (
--run-mode=cloud):- APIs: Compute Engine (
compute.googleapis.com), Secret Manager (secretmanager.googleapis.com), Cloud Storage (storage.googleapis.com), and Cloud Logging (logging.googleapis.com). - Network and subnet: A VPC
--networkand--subnet(defaul
- APIs: Compute Engine (
- Local mode (
Установить bigquery-migration-metadata-extractor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл bigquery-migration-metadata-extractor?
Extracts database catalog metadata and query logs from data warehouses by running the DWH migration extractor locally or on a temporary Google Cloud VM through the BigQuery Migration Cloud Extractor (credentials held in Secret Manager), and inspects extracted `.zip` archives to report object and volume statistics. Use when extracting database metadata or query logs from Snowflake, Redshift, Teradata, Oracle, PostgreSQL, SQL Server, Hive, etc., deciding between local and cloud (Cloud Extractor) extraction, or inspecting extracted dwh-migration-*.zip archives to print post-extraction statistics. Don't use for SQL dialect translation (use bigquery-migration-sql-translator), exporting table data to Parquet or CSV files (such as Snowflake `COPY INTO` unloads) or loading it into BigQuery (use the BigQuery Data Transfer Service or bigquery-basics), or validating migrated data.
Как установить скилл bigquery-migration-metadata-extractor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bigquery-migration-metadata-extractor запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic