Skip to content

Commit d7c5535

Browse files
committed
docs: updated Bigtable README example
1 parent b04ae92 commit d7c5535

1 file changed

Lines changed: 22 additions & 2 deletions

File tree

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
This client supports the following Google Cloud Platform services:
1212

1313
* [Google BigQuery](#google-bigquery)
14-
* [Google Cloud Bigtable](#google-bigtable)
14+
* [Google Cloud Bigtable](#google-cloud-bigtable)
1515
* [Google Cloud Datastore](#google-cloud-datastore)
1616
* [Google Cloud DNS](#google-cloud-dns)
1717
* [Google Cloud Pub/Sub](#google-cloud-pubsub)
@@ -149,7 +149,27 @@ table.getRows(function(err, rows) {});
149149
// Update a row in your table.
150150
var row = table.row('alincoln');
151151

152-
row.save('follows:gwashington', 1, function(err) {});
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+
});
153173
```
154174

155175

0 commit comments

Comments
 (0)