Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wintermi/bq2csv
A command line application designed to provide a simple method to execute a BigQuery SQL script from "stdin", outputting all results to "stdout" in CSV format. A detailed log is output to the console "stderr" providing you with the available execution statistics.
https://github.com/wintermi/bq2csv
bigquery google-cloud google-cloud-platform
Last synced: 3 months ago
JSON representation
A command line application designed to provide a simple method to execute a BigQuery SQL script from "stdin", outputting all results to "stdout" in CSV format. A detailed log is output to the console "stderr" providing you with the available execution statistics.
- Host: GitHub
- URL: https://github.com/wintermi/bq2csv
- Owner: wintermi
- License: apache-2.0
- Created: 2022-08-23T07:02:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-28T09:51:34.000Z (8 months ago)
- Last Synced: 2024-05-29T01:17:08.823Z (8 months ago)
- Topics: bigquery, google-cloud, google-cloud-platform
- Language: Go
- Homepage:
- Size: 193 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BigQuery 2 CSV
[![Workflows](https://github.com/wintermi/bq2csv/workflows/Go/badge.svg)](https://github.com/wintermi/bq2csv/actions)
[![Go Report](https://goreportcard.com/badge/github.com/wintermi/bq2csv)](https://goreportcard.com/report/github.com/wintermi/bq2csv)
[![License](https://img.shields.io/github/license/wintermi/bq2csv)](https://github.com/wintermi/bq2csv/blob/main/LICENSE)
[![Release](https://img.shields.io/github/v/release/wintermi/bq2csv?include_prereleases)](https://github.com/wintermi/bq2csv/releases)## Description
A command line application designed to provide a simple method to execute a BigQuery SQL script from "stdin", outputting all results to "stdout" in CSV format. A detailed log is output to the console "stderr" providing you with the available execution statistics.
```
USAGE:
bq2csv -p PROJECT_ID -d DATASETARGS:
-c Disable Query Cache
-d string
BigQuery Dataset (Required)
-dr
Dry Run
-f string
Field Delimter (default ",")
-l string
BigQuery Data Processing Location
-p string
Google Cloud Project ID (Required)
-v Output Verbose Detail
```## Example
```
echo "SELECT 1" | bq2csv -p PROJECT_ID -d DATASET 1> results.csv
```## License
**bq2csv** is released under the [Apache License 2.0](https://github.com/wintermi/bq2csv/blob/main/LICENSE) unless explicitly mentioned in the file header.