An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# bench


bench logo


PyPI Version
Python Versions
Coverage Status
License

## 🌱 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
```