Skip to content

Latest commit

 

History

History
42 lines (36 loc) · 1.05 KB

File metadata and controls

42 lines (36 loc) · 1.05 KB

sql-bench

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>