Skip to main content

bqrun

概要

ディレクトリの中にあるsqlファイルを全て読み、依存関係を解析し(あるファイルAでselect .. fromされているテーブルが別のファイルBでcreate tableされていた場合、 BはAより前に実行される)、順番に実行するためのMakefileを作成、makeを実行する。

外部依存

  1. docker
  2. graphviz(dotコマンド)

インストール

  1. pip install bqrun

前提

  1. 1つのディレクトリの中に全てのSQLファイルが入っていること
  2. 全てのSQLファイルは拡張子.sqlを持つこと、かつ、クエリ以外に.sqlで終わるファイルがないこと

大まかな動作

  1. 全SQLファイルを読んで依存関係を解析、依存関係に従ったMakefileを作成する
  2. このMakefileにより、各ファイルに対し以下のようなコマンドが実行される
    1. 各SQLファイルをbq queryに投げる
    2. done.<base name> というファイルを作成する(<base name>は、ファイル名の拡張子以外)
  3. 2回目以降の実行では、各ファイルについてdone.<base name>ファイルのタイムスタンプと、依存先のファイルのタイムスタンプを比較し再実行が必要な部分だけが実行される

オプション

  1. -p=<num>または--parallel=<num>: 並列実行数を指定(デフォルトは8)

Metadata

Release files for bqrun 3.0.0

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

Source distribution (sdist)

Source distribution for bqrun 3.0.0
File Size Uploaded Provenance Actions
bqrun-3.0.0.tar.gz 6.1 kB Without provenance Details for bqrun-3.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bqrun 3.0.0
File Interpreter ABI Platform Actions
bqrun-3.0.0-py3-none-any.whl Python 3 none any Details for bqrun-3.0.0-py3-none-any.whl

Total release size: 12.8 kB

Release files / bqrun-3.0.0.tar.gz

Download URL bqrun-3.0.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b82854cae9bfb381595c82101872cbe05a9ed70cf1e6fc1496834d87dd3939a5
BLAKE2b-256 checksum
How to use checksums
5aca046595be500049e4dfed9fc58c83d046d6f8bd517b821b3f37294d04b5a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.4 Darwin/22.6.0

Release files / bqrun-3.0.0-py3-none-any.whl

Download URL bqrun-3.0.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4842bbf1884e187d4537a9a98933e96ed8fd56ee8b6e57f3c84b17d862c97217
BLAKE2b-256 checksum
How to use checksums
dd99bab92baaabbb02bf3660c406ae37f6cd37ec2e436280b4ec51cee1c82060
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.4 Darwin/22.6.0

Security for bqrun 3.0.0

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