@@ -17,7 +17,7 @@ const Bigtable = require('@google-cloud/bigtable');
17
17
const bigtable = new Bigtable ( ) ;
18
18
19
19
const snippets = {
20
- createRow : ( instanceId , tableId , callback ) => {
20
+ createRow : ( instanceId , tableId ) => {
21
21
const instance = bigtable . instance ( instanceId ) ;
22
22
const table = instance . table ( tableId ) ;
23
23
@@ -33,11 +33,9 @@ const snippets = {
33
33
// Handle the error.
34
34
} ) ;
35
35
// [END bigtable_create_row]
36
-
37
- callback ( ) ;
38
36
} ,
39
37
40
- createRules : ( instanceId , tableId , callback ) => {
38
+ createRules : ( instanceId , tableId ) => {
41
39
const instance = bigtable . instance ( instanceId ) ;
42
40
const table = instance . table ( tableId ) ;
43
41
@@ -75,11 +73,9 @@ const snippets = {
75
73
// Handle the error.
76
74
} ) ;
77
75
// [END bigtable_create_rules]
78
-
79
- callback ( ) ;
80
76
} ,
81
77
82
- deleteAllCells : ( instanceId , tableId , callback ) => {
78
+ deleteAllCells : ( instanceId , tableId ) => {
83
79
const instance = bigtable . instance ( instanceId ) ;
84
80
const table = instance . table ( tableId ) ;
85
81
@@ -94,11 +90,9 @@ const snippets = {
94
90
// Handle the error.
95
91
} ) ;
96
92
// [END bigtable_delete_all_cells]
97
-
98
- callback ( ) ;
99
93
} ,
100
94
101
- deleteCells : ( instanceId , tableId , callback ) => {
95
+ deleteCells : ( instanceId , tableId ) => {
102
96
const instance = bigtable . instance ( instanceId ) ;
103
97
const table = instance . table ( tableId ) ;
104
98
@@ -122,11 +116,9 @@ const snippets = {
122
116
// Handle the error.
123
117
} ) ;
124
118
// [END bigtable_delete_particular_cells]
125
-
126
- callback ( ) ;
127
119
} ,
128
120
129
- exists : ( instanceId , tableId , callback ) => {
121
+ exists : ( instanceId , tableId ) => {
130
122
const instance = bigtable . instance ( instanceId ) ;
131
123
const table = instance . table ( tableId ) ;
132
124
@@ -142,11 +134,9 @@ const snippets = {
142
134
// Handle the error.
143
135
} ) ;
144
136
// [END bigtable_row_exists]
145
-
146
- callback ( ) ;
147
137
} ,
148
138
149
- filter : ( instanceId , tableId , callback ) => {
139
+ filter : ( instanceId , tableId ) => {
150
140
const instance = bigtable . instance ( instanceId ) ;
151
141
const table = instance . table ( tableId ) ;
152
142
@@ -189,11 +179,9 @@ const snippets = {
189
179
// Handle the error.
190
180
} ) ;
191
181
// [END bigtable_row_filter]
192
-
193
- callback ( ) ;
194
182
} ,
195
183
196
- get : ( instanceId , tableId , callback ) => {
184
+ get : ( instanceId , tableId ) => {
197
185
const instance = bigtable . instance ( instanceId ) ;
198
186
const table = instance . table ( tableId ) ;
199
187
@@ -226,11 +214,9 @@ const snippets = {
226
214
// });
227
215
228
216
// [END bigtable_get_row]
229
-
230
- callback ( ) ;
231
217
} ,
232
218
233
- getMetadata : ( instanceId , tableId , callback ) => {
219
+ getMetadata : ( instanceId , tableId ) => {
234
220
const instance = bigtable . instance ( instanceId ) ;
235
221
const table = instance . table ( tableId ) ;
236
222
@@ -247,11 +233,9 @@ const snippets = {
247
233
// Handle the error.
248
234
} ) ;
249
235
// [END bigtable_get_row_meta]
250
-
251
- callback ( ) ;
252
236
} ,
253
237
254
- increment : ( instanceId , tableId , callback ) => {
238
+ increment : ( instanceId , tableId ) => {
255
239
const instance = bigtable . instance ( instanceId ) ;
256
240
const table = instance . table ( tableId ) ;
257
241
@@ -283,11 +267,9 @@ const snippets = {
283
267
// Handle the error.
284
268
} ) ;
285
269
// [END bigtable_row_increment]
286
-
287
- callback ( ) ;
288
270
} ,
289
271
290
- save : ( instanceId , tableId , callback ) => {
272
+ save : ( instanceId , tableId ) => {
291
273
const instance = bigtable . instance ( instanceId ) ;
292
274
const table = instance . table ( tableId ) ;
293
275
@@ -307,8 +289,6 @@ const snippets = {
307
289
// Handle the error.
308
290
} ) ;
309
291
// [END bigtable_row_save]
310
-
311
- callback ( ) ;
312
292
} ,
313
293
} ;
314
294
0 commit comments