@@ -17,7 +17,7 @@ const Bigtable = require('@google-cloud/bigtable');
17
17
const bigtable = new Bigtable ( ) ;
18
18
19
19
const snippets = {
20
- createColmFamily : ( instanceId , tableId , familyId , callback ) => {
20
+ createColmFamily : ( instanceId , tableId , familyId ) => {
21
21
const instance = bigtable . instance ( instanceId ) ;
22
22
const table = instance . table ( tableId ) ;
23
23
const family = table . family ( familyId ) ;
@@ -32,9 +32,8 @@ const snippets = {
32
32
// Handle the error.
33
33
} ) ;
34
34
// [END bigtable_create_family]
35
- callback ( ) ;
36
35
} ,
37
- existsFamily : ( instanceId , tableId , familyId , callback ) => {
36
+ existsFamily : ( instanceId , tableId , familyId ) => {
38
37
const instance = bigtable . instance ( instanceId ) ;
39
38
const table = instance . table ( tableId ) ;
40
39
const family = table . family ( familyId ) ;
@@ -49,9 +48,8 @@ const snippets = {
49
48
// Handle the error.
50
49
} ) ;
51
50
// [END bigtable_exists_family]
52
- callback ( ) ;
53
51
} ,
54
- getFamily : ( instanceId , tableId , familyId , callback ) => {
52
+ getFamily : ( instanceId , tableId , familyId ) => {
55
53
const instance = bigtable . instance ( instanceId ) ;
56
54
const table = instance . table ( tableId ) ;
57
55
const family = table . family ( familyId ) ;
@@ -66,9 +64,8 @@ const snippets = {
66
64
// Handle the error.
67
65
} ) ;
68
66
// [END bigtable_get_family]
69
- callback ( ) ;
70
67
} ,
71
- getMetadata : ( instanceId , tableId , familyId , callback ) => {
68
+ getMetadata : ( instanceId , tableId , familyId ) => {
72
69
const instance = bigtable . instance ( instanceId ) ;
73
70
const table = instance . table ( tableId ) ;
74
71
const family = table . family ( familyId ) ;
@@ -83,9 +80,8 @@ const snippets = {
83
80
// Handle the error.
84
81
} ) ;
85
82
// [END bigtable_get_family_meta]
86
- callback ( ) ;
87
83
} ,
88
- setMetadata : ( instanceId , tableId , familyId , callback ) => {
84
+ setMetadata : ( instanceId , tableId , familyId ) => {
89
85
const instance = bigtable . instance ( instanceId ) ;
90
86
const table = instance . table ( tableId ) ;
91
87
const family = table . family ( familyId ) ;
@@ -105,9 +101,8 @@ const snippets = {
105
101
// Handle the error.
106
102
} ) ;
107
103
// [END bigtable_set_family_meta]
108
- callback ( ) ;
109
104
} ,
110
- delFamily : ( instanceId , tableId , familyId , callback ) => {
105
+ delFamily : ( instanceId , tableId , familyId ) => {
111
106
const instance = bigtable . instance ( instanceId ) ;
112
107
const table = instance . table ( tableId ) ;
113
108
const family = table . family ( familyId ) ;
@@ -121,7 +116,6 @@ const snippets = {
121
116
// Handle the error.
122
117
} ) ;
123
118
// [END bigtable_del_family]
124
- callback ( ) ;
125
119
} ,
126
120
} ;
127
121
0 commit comments