https://github.com/rohithay/sql-bench
An elegant CLI toolkit for validating BigQuery queries, comparing schemas, and estimating costs before pushing code to production.
https://github.com/rohithay/sql-bench
bigquery cli cloud-tools data-engineering developer-tools google-cloud query-validator schema-diff sql sql-lint
Last synced: 8 months ago
JSON representation
An elegant CLI toolkit for validating BigQuery queries, comparing schemas, and estimating costs before pushing code to production.
- Host: GitHub
- URL: https://github.com/rohithay/sql-bench
- Owner: rohithay
- License: cc0-1.0
- Created: 2025-05-28T10:37:12.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-05-28T11:39:53.000Z (9 months ago)
- Last Synced: 2025-05-31T20:12:02.538Z (9 months ago)
- Topics: bigquery, cli, cloud-tools, data-engineering, developer-tools, google-cloud, query-validator, schema-diff, sql, sql-lint
- Language: Python
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bench
## 🌱 Features
### Run a query and see
```
bench query
```
* Execution time
* Processed bytes
### Perform a dry run
```
bench dryrun
```
* Check syntax
* Show bytes scanned
* Exit 1 if error
### Get schema for a table
```
bench schema
```
* As JSON or table
* Optionally type check a result JSON against schema
### Show schema diff
```
bench diff
```
* Additions, deletions, type mismatches
### Lint `.sql` files
```
bench lint
```