Skip to content

An elegant CLI toolkit for validating BigQuery queries, comparing schemas, and estimating costs before pushing code to production.

License

Notifications You must be signed in to change notification settings

rohithay/sql-bench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bench

bench logo

PyPI Version Python Versions Coverage Status License

🌱 Features

Run a query and see

bench query <sql>
  • Execution time
  • Processed bytes

Perform a dry run

bench dryrun <sql>
  • Check syntax
  • Show bytes scanned
  • Exit 1 if error

Get schema for a table

bench schema <table>
  • As JSON or table
  • Optionally type check a result JSON against schema

Show schema diff

bench diff <table1> <table2>
  • Additions, deletions, type mismatches

Lint .sql files

bench lint <file.sql>

About

An elegant CLI toolkit for validating BigQuery queries, comparing schemas, and estimating costs before pushing code to production.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages