lquerel / gcp-bigquery-client

GCP BigQuery Client (Rust)
Apache License 2.0
97 stars 64 forks source link

Allow to change the base url #36

Closed MarcoIeni closed 1 year ago

MarcoIeni commented 1 year ago

Hi! I would like to test this crate locally by using bigquery-emulator. However, this crate doesn't allow changing the base url (it always assumes https://bigquery.googleapis.com/bigquery/v2/): https://github.com/lquerel/gcp-bigquery-client/blob/51f1acb4cfa8885919936e5e9ecd283fa64739e5/src/project.rs#L46

Instead, google_bigquery2 allows to customize both the base_url and the root_url.

Do you plan to add support for this? If not, would you accept a PR? Thanks 🙏

lquerel commented 1 year ago

Merged and published. Thanks