Skip to main content

Overview

This application is used to perform a BigQuery dry run of all .sql files in a folder and its subfolders.

Its purpose it so ensure that all SQL files do not have any syntactic errors and make it easier for team members to quickly check a large number of files.

GCP configuration

Allowing access to GCP should be done following one of the methods detailed in the GCP documentation.

The application will rely on your environment having been set up for authentication to GCP (e.g. through gcloud init or environement variable containing service account credentials), it does not provide a mechanism to receive authentication credentials directly.

Usage

The application will install a shell command called bqdry which is simply passed a folder. It will then traverse the folder and perform a dry run of all .sql files found in the folder and any sub folders. The results will be displayed on in the terminal.

For example:

$ bqdry my-awesome-project

>File: my-awesome-project/demo.sql
>  Result: Failed
>  Errors: None
>
>Total: 3
>Succeeded: 2
>Failed: 1

bqdry -h will provide usage information. E.g.

usage: bqdry [-h] [-t THREADS] [-v] folder

Dry run of all `.sql` files in folder and subfolders.

positional arguments:
  folder                Top level folder to start scanning for `.sql` files.

optional arguments:
  -h, --help            show this help message and exit
  -t THREADS, --threads THREADS
                        Number of threads for concurrent running of queries. Defaults to 2.
  -v, --verbose         Show all file results, not just failures.

Metadata

Release files for bigquery-dry-run 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bigquery-dry-run 0.3.1
File Size Uploaded Provenance Actions
bigquery-dry-run-0.3.1.tar.gz 3.8 kB Without provenance Details for bigquery-dry-run-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bigquery-dry-run 0.3.1
File Interpreter ABI Platform Actions
bigquery_dry_run-0.3.1-py3-none-any.whl Python 3 none any Details for bigquery_dry_run-0.3.1-py3-none-any.whl

Total release size: 8.0 kB

Release files / bigquery-dry-run-0.3.1.tar.gz

Download URL bigquery-dry-run-0.3.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4c781cfae09d2f6df69eeec6b74b28c891d74257c68d36efa150031d19e4f932
BLAKE2b-256 checksum
How to use checksums
ced8896050174ebc7b822e7e4e68b87af4c0fc6b4f44ac03d6b7bf2304af05b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.8.8 Darwin/20.6.0

Release files / bigquery_dry_run-0.3.1-py3-none-any.whl

Download URL bigquery_dry_run-0.3.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3f7cf3c9a854916b5b40ebaa367c6efca2df20fbd0b671c50d0815b58ee7c34
BLAKE2b-256 checksum
How to use checksums
cf18d9bab1de1f5f79116c7eb53ea70927b701cfe2354f2b20e9806c5d1ba712
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.8.8 Darwin/20.6.0

Security for bigquery-dry-run 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page