Sha256: 2f53d4a0dc32d3a44c17dd6eb20d64c78ab8e070650f45b63c883122d48ec339

Contents?: true

Size: 1.01 KB

Versions: 39

Compression:

Stored size: 1.01 KB

Contents

# Cloud Bigtable Emulator

To develop and test your application locally, you can use the [Cloud Bigtable
Emulator](https://cloud.google.com/bigtable/docs/emulator), which provides
[local emulation](https://cloud.google.com/sdk/gcloud/reference/beta/emulators/)
of the production Cloud Bigtable environment. You can start the Cloud Bigtable
emulator using the `gcloud` command-line tool.

To configure your ruby code to use the emulator, set the
`BIGTABLE_EMULATOR_HOST` environment variable to the host and port where the
emulator is running. The value can be set as an environment variable in the
shell running the ruby code, or can be set directly in the ruby code as shown
below.

```ruby
require "google/cloud/bigtable"

# Make Pub/Sub use the emulator
ENV["BIGTABLE_EMULATOR_HOST"] = "localhost:8086"

bigtable = Google::Cloud::Bigtable.new "emulator-project-id"
```

Or by providing the `emulator_host` argument:

```ruby
require "google/cloud/bigtable"

bigtable = Google::Cloud::Bigtable.new emulator_host: "localhost:8086"
```

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
google-cloud-bigtable-2.9.0 EMULATOR.md
google-cloud-bigtable-2.8.0 EMULATOR.md
google-cloud-bigtable-2.7.1 EMULATOR.md
google-cloud-bigtable-2.7.0 EMULATOR.md
google-cloud-bigtable-2.6.5 EMULATOR.md
google-cloud-bigtable-2.6.4 EMULATOR.md
google-cloud-bigtable-2.6.3 EMULATOR.md
google-cloud-bigtable-2.6.2 EMULATOR.md
google-cloud-bigtable-2.6.1 EMULATOR.md
google-cloud-bigtable-2.6.0 EMULATOR.md
google-cloud-bigtable-2.5.0 EMULATOR.md
google-cloud-bigtable-2.4.1 EMULATOR.md
google-cloud-bigtable-2.4.0 EMULATOR.md
google-cloud-bigtable-2.3.0 EMULATOR.md
google-cloud-bigtable-2.2.1 EMULATOR.md
google-cloud-bigtable-2.2.0 EMULATOR.md
google-cloud-bigtable-2.1.0 EMULATOR.md
google-cloud-bigtable-2.0.0 EMULATOR.md
google-cloud-bigtable-1.3.0 EMULATOR.md
google-cloud-bigtable-1.2.2 EMULATOR.md