|
11 | 11 | This client supports the following Google Cloud Platform services:
|
12 | 12 |
|
13 | 13 | * [Google BigQuery](#google-bigquery)
|
| 14 | +* [Google Cloud Bigtable](#google-cloud-bigtable) |
14 | 15 | * [Google Cloud Datastore](#google-cloud-datastore)
|
15 | 16 | * [Google Cloud DNS](#google-cloud-dns)
|
16 | 17 | * [Google Cloud Pub/Sub](#google-cloud-pubsub)
|
@@ -120,6 +121,58 @@ job.getQueryResults().on('data', function(row) {});
|
120 | 121 | ```
|
121 | 122 |
|
122 | 123 |
|
| 124 | +## Google Cloud Bigtable |
| 125 | + |
| 126 | +- [API Documentation][gcloud-bigtable-docs] |
| 127 | +- [Official Documentation][cloud-bigtable-docs] |
| 128 | + |
| 129 | +*You may need to [create a cluster][gcloud-bigtable-cluster] to use the Google Cloud Bigtable API with your project.* |
| 130 | + |
| 131 | +#### Preview |
| 132 | + |
| 133 | +```js |
| 134 | +var gcloud = require('gcloud'); |
| 135 | + |
| 136 | +// Authenticating on a per-API-basis. You don't need to do this if you auth on a |
| 137 | +// global basis (see Authentication section above). |
| 138 | +var bigtable = gcloud.bigtable({ |
| 139 | + projectId: 'my-project', |
| 140 | + keyFilename: '/path/to/keyfile.json', |
| 141 | + zone: 'my-zone', |
| 142 | + cluster: 'my-cluster' |
| 143 | +}); |
| 144 | + |
| 145 | +var table = bigtable.table('prezzy'); |
| 146 | + |
| 147 | +table.getRows(function(err, rows) {}); |
| 148 | + |
| 149 | +// Update a row in your table. |
| 150 | +var row = table.row('alincoln'); |
| 151 | + |
| 152 | +row.save('follows:gwashington', 1, function(err) { |
| 153 | + if (err) { |
| 154 | + // Error handling omitted. |
| 155 | + } |
| 156 | + |
| 157 | + row.get('follows:gwashington', function(err, data) { |
| 158 | + if (err) { |
| 159 | + // Error handling omitted. |
| 160 | + } |
| 161 | + |
| 162 | + // data = { |
| 163 | + // follows: { |
| 164 | + // gwashington: [ |
| 165 | + // { |
| 166 | + // value: 1 |
| 167 | + // } |
| 168 | + // ] |
| 169 | + // } |
| 170 | + // } |
| 171 | + }); |
| 172 | +}); |
| 173 | +``` |
| 174 | + |
| 175 | + |
123 | 176 | ## Google Cloud Datastore
|
124 | 177 |
|
125 | 178 | - [API Documentation][gcloud-datastore-docs]
|
@@ -658,6 +711,7 @@ Apache 2.0 - See [COPYING](COPYING) for more information.
|
658 | 711 | [gcloud-homepage]: https://googlecloudplatform.github.io/gcloud-node/
|
659 | 712 | [gcloud-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs
|
660 | 713 | [gcloud-bigquery-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/bigquery
|
| 714 | +[gcloud-bigtable-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/bigtable |
661 | 715 | [gcloud-compute-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/compute
|
662 | 716 | [gcloud-datastore-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/datastore
|
663 | 717 | [gcloud-dns-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/dns
|
@@ -685,6 +739,9 @@ Apache 2.0 - See [COPYING](COPYING) for more information.
|
685 | 739 |
|
686 | 740 | [cloud-bigquery-docs]: https://cloud.google.com/bigquery/what-is-bigquery
|
687 | 741 |
|
| 742 | +[cloud-bigtable-docs]: https://cloud.google.com/bigtable/docs/ |
| 743 | +[cloud-bigtable-cluster]: https://cloud.google.com/bigtable/docs/creating-cluster |
| 744 | + |
688 | 745 | [cloud-compute-docs]: https://cloud.google.com/compute/docs
|
689 | 746 |
|
690 | 747 | [cloud-datastore-docs]: https://cloud.google.com/datastore/docs
|
|
0 commit comments