{"id":30209052,"url":"https://github.com/wintermi/bqdo","last_synced_at":"2026-05-18T03:35:20.172Z","repository":{"id":309068628,"uuid":"1035062084","full_name":"wintermi/bqdo","owner":"wintermi","description":"bqdo is a CLI for executing BigQuery SQL as part of a pipeline.","archived":false,"fork":false,"pushed_at":"2025-12-03T06:08:41.000Z","size":50,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-06T07:34:17.550Z","etag":null,"topics":["bigquery","google-cloud","google-cloud-platform"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wintermi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-09T15:18:10.000Z","updated_at":"2025-12-03T06:08:45.000Z","dependencies_parsed_at":"2025-08-09T23:32:25.114Z","dependency_job_id":null,"html_url":"https://github.com/wintermi/bqdo","commit_stats":null,"previous_names":["wintermi/bqdo"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wintermi/bqdo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintermi%2Fbqdo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintermi%2Fbqdo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintermi%2Fbqdo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintermi%2Fbqdo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wintermi","download_url":"https://codeload.github.com/wintermi/bqdo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintermi%2Fbqdo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33163774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bigquery","google-cloud","google-cloud-platform"],"created_at":"2025-08-13T19:01:01.904Z","updated_at":"2026-05-18T03:35:20.167Z","avatar_url":"https://github.com/wintermi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bqdo\n\nbqdo is a simple CLI for running BigQuery SQL pipelines from a directory of `.sql` files. It reads a `bqdo.toml` configuration, applies Go `text/template` variables, and executes each SQL file in alphabetical order. It is designed for lightweight, repeatable data workflows.\n\n## Features\n- Read `bqdo.toml` from the current directory (or `-c` path)\n- Override config values with CLI flags\n- Optional service account impersonation\n- Recursively discover and run `.sql` files in alphabetical order\n- Go `text/template` support using values from the `[vars]` section\n- `--dry-run` to validate without executing\n\n## Requirements\n- Go `1.24+`\n- Optional: `mise` for project tasks (recommended for building)\n- Auth to Google Cloud (ADC via `gcloud auth application-default login`, or `GOOGLE_APPLICATION_CREDENTIALS` pointing to a service account JSON)\n\n## Download \u0026 Build\nClone the repo and build using `mise` (recommended):\n\n```sh\ngit clone https://github.com/wintermi/bqdo.git\ncd bqdo\nmise run build\n```\n\nThis produces the binary at `bin/bqdo`.\n\nAlternatively, build directly with Go:\n\n```sh\nCGO_ENABLED=0 go build -o bin/bqdo ./cmd/bqdo\n```\n\n## Quick Start\n1) Initialize a new pipeline in your project directory:\n\n```sh\nbin/bqdo init\n```\n\nThis creates a `bqdo.toml`. Edit it to set `directory`, `dataset`, and other values.\n\n2) Add your SQL files under the configured `directory` (e.g., `sql/`). Files will execute in alphabetical order.\n\n3) Run the pipeline:\n\n```sh\nbin/bqdo run -c bqdo.toml -p YOUR_PROJECT_ID -d YOUR_DATASET -l US\n```\n\nUse `--dry-run` to validate queries without executing:\n\n```sh\nbin/bqdo run -c bqdo.toml -p YOUR_PROJECT_ID -d YOUR_DATASET -l US --dry-run\n```\n\nTo impersonate a service account:\n\n```sh\nbin/bqdo run -c bqdo.toml -p YOUR_PROJECT_ID -d YOUR_DATASET -l US \\\n  --impersonate-service-account your-sa@your-project.iam.gserviceaccount.com\n```\n\n## Examples\nA minimal runnable example is provided in `examples/simple`. See its README for details.\n\n## License\nApache 2.0. See `LICENSE`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwintermi%2Fbqdo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwintermi%2Fbqdo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwintermi%2Fbqdo/lists"}