This repository was archived by the owner on Apr 1, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5353from google .cloud .environment_vars import BIGTABLE_EMULATOR # type: ignore
5454
5555from google .cloud .bigtable .data import BigtableDataClient
56- from google .cloud .bigtable .data ._sync_autogen . client import (
56+ from google .cloud .bigtable .data ._helpers import (
5757 _DEFAULT_BIGTABLE_EMULATOR_CLIENT ,
5858)
5959
Original file line number Diff line number Diff line change 7272from google .cloud .bigtable .data ._helpers import TABLE_DEFAULT , _align_timeouts
7373from google .cloud .bigtable .data ._helpers import _WarmedInstanceKey
7474from google .cloud .bigtable .data ._helpers import _CONCURRENCY_LIMIT
75+ from google .cloud .bigtable .data ._helpers import _DEFAULT_BIGTABLE_EMULATOR_CLIENT
7576from google .cloud .bigtable .data ._helpers import _retry_exception_factory
7677from google .cloud .bigtable .data ._helpers import _validate_timeouts
7778from google .cloud .bigtable .data ._helpers import _get_error_type
132133
133134
134135__CROSS_SYNC_OUTPUT__ = "google.cloud.bigtable.data._sync_autogen.client"
135- _DEFAULT_BIGTABLE_EMULATOR_CLIENT = "google-cloud-bigtable-emulator"
136136
137137
138138@CrossSync .convert_class (
Original file line number Diff line number Diff line change 4444# used by read_rows_sharded to limit how many requests are attempted in parallel
4545_CONCURRENCY_LIMIT = 10
4646
47+ # used by every data client as a default project name for testing on Bigtable emulator.
48+ _DEFAULT_BIGTABLE_EMULATOR_CLIENT = "google-cloud-bigtable-emulator"
49+
4750# used to identify an active bigtable resource that needs to be warmed through PingAndWarm
4851# each instance/app_profile_id pair needs to be individually tracked
4952_WarmedInstanceKey = namedtuple (
Original file line number Diff line number Diff line change 6161from google .cloud .bigtable .data ._helpers import TABLE_DEFAULT , _align_timeouts
6262from google .cloud .bigtable .data ._helpers import _WarmedInstanceKey
6363from google .cloud .bigtable .data ._helpers import _CONCURRENCY_LIMIT
64+ from google .cloud .bigtable .data ._helpers import _DEFAULT_BIGTABLE_EMULATOR_CLIENT
6465from google .cloud .bigtable .data ._helpers import _retry_exception_factory
6566from google .cloud .bigtable .data ._helpers import _validate_timeouts
6667from google .cloud .bigtable .data ._helpers import _get_error_type
9293 from google .cloud .bigtable .data .execute_query ._sync_autogen .execute_query_iterator import (
9394 ExecuteQueryIterator ,
9495 )
95- _DEFAULT_BIGTABLE_EMULATOR_CLIENT = "google-cloud-bigtable-emulator"
9696
9797
9898@CrossSync ._Sync_Impl .add_mapping_decorator ("DataClient" )
You can’t perform that action at this time.
0 commit comments