You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* // should be called when finished with the snapshot
156
+
* // It should be called when the snapshot finishes.
157
157
* transaction.end();
158
158
* });
159
159
*/
@@ -175,22 +175,22 @@ export class Snapshot extends EventEmitter {
175
175
* @type {?(string|Buffer)}
176
176
*/
177
177
/**
178
-
* Whether or not the transaction has been ended. If true, no further requests
179
-
* should be made and the transaction should be discarded.
178
+
* Whether or not the transaction has ended. If true, make no further
179
+
* requests, and discard the transaction.
180
180
*
181
181
* @name Snapshot#ended
182
182
* @type {boolean}
183
183
*/
184
184
/**
185
-
* The raw transaction response object. Will be populated after
186
-
* {@link Snapshot#begin} has been called.
185
+
* The raw transaction response object. It is populated after
186
+
* {@link Snapshot#begin} is called.
187
187
*
188
188
* @name Snapshot#metadata
189
189
* @type {?TransactionResponse}
190
190
*/
191
191
/**
192
192
* **Snapshot only**
193
-
* The timestamp at which all reads will be performed.
193
+
* The timestamp at which all reads are performed.
194
194
*
195
195
* @name Snapshot#readTimestamp
196
196
* @type {?external:PreciseDate}
@@ -239,7 +239,7 @@ export class Snapshot extends EventEmitter {
239
239
* @param {TransactionResponse} apiResponse The raw transaction object.
240
240
*/
241
241
/**
242
-
* Begin a new transaction. Typically you shouldn't need to call this unless
242
+
* Begin a new transaction. Typically, you need not call this unless
243
243
* manually creating transactions via {@link Session} objects.
244
244
*
245
245
* @see [BeginTransaction API Documentation](https://cloud.google.com/spanner/docs/reference/rpc/google.spanner.v1#google.spanner.v1.Spanner.BeginTransaction)
@@ -254,7 +254,7 @@ export class Snapshot extends EventEmitter {
254
254
* }
255
255
* });
256
256
*
257
-
* @example <caption>If the callback is omitted, we'll return a Promise
257
+
* @example <caption>If the callback is omitted, the function returns a Promise
258
258
* </caption>
259
259
* transaction.begin()
260
260
* .then(function(data) {
@@ -322,7 +322,7 @@ export class Snapshot extends EventEmitter {
322
322
* @property {string[]} [keys] The primary keys of the rows in this table to be
323
323
* yielded. If using a composite key, provide an array within this array.
324
324
* See the example below.
325
-
* @property {KeyRange[]} [ranges] An alternative to the keys property, this can
325
+
* @property {KeyRange[]} [ranges] An alternative to the keys property; this can
326
326
* be used to define a range of keys to be yielded.
327
327
* @property {boolean} [json=false] Receive the rows as serialized objects. This
328
328
* is the equivalent of calling `toJSON()` on each row.
@@ -405,7 +405,7 @@ export class Snapshot extends EventEmitter {
405
405
* });
406
406
*
407
407
* @example <caption>Alternatively, set `query.json` to `true`, and this step
408
-
* will be performed automatically.</caption>
408
+
* will perform automatically.</caption>
409
409
* transaction.createReadStream('Singers', {
410
410
* keys: ['1'],
411
411
* columns: ['SingerId', 'name'],
@@ -502,9 +502,9 @@ export class Snapshot extends EventEmitter {
502
502
*
503
503
* transaction.runUpdate(query, err => {
504
504
* if (err) {
505
-
* // In the event of an error here there would be nothing to rollback,
505
+
* // In the event of an error, there would be nothing to rollback,
506
506
* so
507
-
* // instead of continuing, we might want to just discard the
507
+
* // instead of continuing, discard the
508
508
* transaction. transaction.end(); return;
509
509
* }
510
510
*
@@ -530,7 +530,7 @@ export class Snapshot extends EventEmitter {
530
530
* object has a `name` and `value` property. To get a serialized object,
531
531
* call `toJSON()`. Optionally, provide an options object to `toJSON()`
532
532
* specifying `wrapNumbers: true` to protect large integer values outside
533
-
* of the range of JavaScript Number. If set, FLOAT64 values will be returned
533
+
* of the range of JavaScript Number. If set, FLOAT64 values are returned
534
534
* as {@link Spanner.Float} objects and INT64 values as {@link
535
535
* Spanner.Int}.
536
536
*/
@@ -541,7 +541,7 @@ export class Snapshot extends EventEmitter {
541
541
* object has a `name` and `value` property. To get a serialized object,
542
542
* call `toJSON()`. Optionally, provide an options object to `toJSON()`
543
543
* specifying `wrapNumbers: true` to protect large integer values outside
544
-
* of the range of JavaScript Number. If set, FLOAT64 values will be returned
544
+
* of the range of JavaScript Number. If set, FLOAT64 values are returned
545
545
* as {@link Spanner.Float} objects and INT64 values as {@link
546
546
* Spanner.Int}.
547
547
*/
@@ -617,7 +617,7 @@ export class Snapshot extends EventEmitter {
617
617
* });
618
618
*
619
619
* @example <caption>Alternatively, set `query.json` to `true`, and this step
0 commit comments