bigquery-dry-run-0.3.1


توضیحات

This package is used to perform a BigQuery dry run of all `.sql` files in a folder and its subfolders.
ویژگی مقدار
سیستم عامل -
نام فایل bigquery-dry-run-0.3.1
نام bigquery-dry-run
نسخه کتابخانه 0.3.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Christo Olivier
ایمیل نویسنده mail@christoolivier.com
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/bigquery-dry-run/
مجوز MIT
# 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.](https://cloud.google.com/docs/authentication) 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. ```


نیازمندی

مقدار نام
>=2021.1,<2022.0 pytz
>=2.13.1,<3.0.0 google-cloud-bigquery


زبان مورد نیاز

مقدار نام
>=3.6,<3.10 Python


نحوه نصب


نصب پکیج whl bigquery-dry-run-0.3.1:

    pip install bigquery-dry-run-0.3.1.whl


نصب پکیج tar.gz bigquery-dry-run-0.3.1:

    pip install bigquery-dry-run-0.3.1.tar.gz