This package is used to perform a BigQuery dry run of all `.sql` files in a folder and its subfolders.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bigquery-dry-run-0.3.1.tar.gz.
File metadata
- Download URL: bigquery-dry-run-0.3.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.8.8 Darwin/20.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c781cfae09d2f6df69eeec6b74b28c891d74257c68d36efa150031d19e4f932
|
|
| MD5 |
67360ce5007b822bde7093519d477224
|
|
| BLAKE2b-256 |
ced8896050174ebc7b822e7e4e68b87af4c0fc6b4f44ac03d6b7bf2304af05b6
|
File details
Details for the file bigquery_dry_run-0.3.1-py3-none-any.whl.
File metadata
- Download URL: bigquery_dry_run-0.3.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.8.8 Darwin/20.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3f7cf3c9a854916b5b40ebaa367c6efca2df20fbd0b671c50d0815b58ee7c34
|
|
| MD5 |
4a8224bdcd10ec837c9d593e5d261bd1
|
|
| BLAKE2b-256 |
cf18d9bab1de1f5f79116c7eb53ea70927b701cfe2354f2b20e9806c5d1ba712
|