@google-cloud/spanner 7.10.0 → 7.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,21 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/nodejs-spanner?activeTab=versions
6
6
 
7
+ ## [7.12.0](https://github.com/googleapis/nodejs-spanner/compare/v7.11.0...v7.12.0) (2024-08-02)
8
+
9
+
10
+ ### Features
11
+
12
+ * Grpc keep alive settings ([#2086](https://github.com/googleapis/nodejs-spanner/issues/2086)) ([7712c35](https://github.com/googleapis/nodejs-spanner/commit/7712c35be21863015bb709f5f89d9ef0bb656024))
13
+
14
+ ## [7.11.0](https://github.com/googleapis/nodejs-spanner/compare/v7.10.0...v7.11.0) (2024-07-29)
15
+
16
+
17
+ ### Features
18
+
19
+ * Add support for blind writes ([#2065](https://github.com/googleapis/nodejs-spanner/issues/2065)) ([62fc0a4](https://github.com/googleapis/nodejs-spanner/commit/62fc0a47327017c115466b9e89e53dbd778579af))
20
+ * **spanner:** Add samples for instance partitions ([#2083](https://github.com/googleapis/nodejs-spanner/issues/2083)) ([b91e284](https://github.com/googleapis/nodejs-spanner/commit/b91e2849056df9894e0590cb71e21c13319e6d70))
21
+
7
22
  ## [7.10.0](https://github.com/googleapis/nodejs-spanner/compare/v7.9.1...v7.10.0) (2024-07-19)
8
23
 
9
24
 
package/README.md CHANGED
@@ -132,6 +132,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-spanner/tre
132
132
  | Deletes a user-managed instance configuration. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/instance-config-delete.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/instance-config-delete.js,samples/README.md) |
133
133
  | Lists the instance configuration operations. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/instance-config-get-operations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/instance-config-get-operations.js,samples/README.md) |
134
134
  | Updates a user-managed instance configuration. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/instance-config-update.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/instance-config-update.js,samples/README.md) |
135
+ | Creates a new instance partition | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/instance-partition-create.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/instance-partition-create.js,samples/README.md) |
135
136
  | Creates a instance with autoscaling config. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/instance-with-autoscaling-config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/instance-with-autoscaling-config.js,samples/README.md) |
136
137
  | Instance-with-processing-units | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/instance-with-processing-units.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/instance-with-processing-units.js,samples/README.md) |
137
138
  | Instance | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/instance.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/instance.js,samples/README.md) |
@@ -24,7 +24,7 @@ import { PartialResultStream } from './partial-result-stream';
24
24
  import { Session } from './session';
25
25
  import { SessionPoolCloseCallback, SessionPoolInterface, SessionPoolOptions } from './session-pool';
26
26
  import { CreateTableCallback, CreateTableResponse, Table } from './table';
27
- import { BatchWriteOptions, ExecuteSqlRequest, MutationGroup, RunCallback, RunResponse, RunUpdateCallback, Snapshot, TimestampBounds, Transaction } from './transaction';
27
+ import { BatchWriteOptions, CommitCallback, CommitResponse, ExecuteSqlRequest, MutationGroup, MutationSet, RunCallback, RunResponse, RunUpdateCallback, Snapshot, TimestampBounds, Transaction } from './transaction';
28
28
  import { AsyncRunTransactionCallback, RunTransactionCallback, RunTransactionOptions } from './transaction-runner';
29
29
  import { IOperation, LongRunningCallback, NormalCallback, PagedOptionsWithFilter, PagedResponse, RequestCallback, ResourceCallback, Schema } from './common';
30
30
  import { Duplex, Readable } from 'stream';
@@ -1836,6 +1836,60 @@ declare class Database extends common.GrpcServiceObject {
1836
1836
  * ```
1837
1837
  */
1838
1838
  batchWriteAtLeastOnce(mutationGroups: MutationGroup[], options?: BatchWriteOptions): NodeJS.ReadableStream;
1839
+ /**
1840
+ * Write mutations using a single RPC invocation without replay protection.
1841
+ *
1842
+ * writeAtLeastOnce writes mutations to Spanner using a single Commit RPC.
1843
+ * These requests are not replay protected, meaning that it may apply mutations more
1844
+ * than once, if the mutations are not idempotent, this may lead to a failure being
1845
+ * reported when the mutation was applied once. Replays non-idempotent mutations may
1846
+ * have undesirable effects. For example, replays of an insert mutation may produce an
1847
+ * already exists error. For this reason, most users of the library will prefer to use
1848
+ * {@link runTransaction} instead.
1849
+ *
1850
+ * However, {@link writeAtLeastOnce()} requires only a single RPC, whereas {@link runTransaction()}
1851
+ * requires two RPCs (one of which may be performed in advance), and so this method may be
1852
+ * appropriate for latency sensitive and/or high throughput blind writing.
1853
+ *
1854
+ * We recommend structuring your mutation set to be idempotent to avoid this issue.
1855
+ *
1856
+ * @param {MutationSet} [mutations] Set of Mutations to be applied.
1857
+ * @param {CallOptions} [options] Options object for blind write request.
1858
+ * @param {CommitCallback} [callback] Callback function for blind write request.
1859
+ *
1860
+ * @returns {Promise}
1861
+ *
1862
+ * @example
1863
+ * ```
1864
+ * const {Spanner} = require('@google-cloud/spanner');
1865
+ * const spanner = new Spanner();
1866
+ *
1867
+ * const instance = spanner.instance('my-instance');
1868
+ * const database = instance.database('my-database');
1869
+ * const mutations = new MutationSet();
1870
+ * mutations.upsert('Singers', {
1871
+ * SingerId: 1,
1872
+ * FirstName: 'Scarlet',
1873
+ * LastName: 'Terry',
1874
+ * });
1875
+ * mutations.upsert('Singers', {
1876
+ * SingerId: 2,
1877
+ * FirstName: 'Marc',
1878
+ * LastName: 'Richards',
1879
+ * });
1880
+ *
1881
+ * try {
1882
+ * const [response, err] = await database.writeAtLeastOnce(mutations, {});
1883
+ * console.log(response.commitTimestamp);
1884
+ * } catch(err) {
1885
+ * console.log("Error: ", err);
1886
+ * }
1887
+ * ```
1888
+ */
1889
+ writeAtLeastOnce(mutations: MutationSet): Promise<CommitResponse>;
1890
+ writeAtLeastOnce(mutations: MutationSet, options: CallOptions): Promise<CommitResponse>;
1891
+ writeAtLeastOnce(mutations: MutationSet, callback: CommitCallback): void;
1892
+ writeAtLeastOnce(mutations: MutationSet, options: CallOptions, callback: CommitCallback): void;
1839
1893
  /**
1840
1894
  * Create a Session object.
1841
1895
  *
@@ -1272,6 +1272,27 @@ class Database extends common.GrpcServiceObject {
1272
1272
  });
1273
1273
  return proxyStream;
1274
1274
  }
1275
+ writeAtLeastOnce(mutations, optionsOrCallback, callback) {
1276
+ const cb = typeof optionsOrCallback === 'function'
1277
+ ? optionsOrCallback
1278
+ : callback;
1279
+ const options = typeof optionsOrCallback === 'object' && optionsOrCallback
1280
+ ? optionsOrCallback
1281
+ : {};
1282
+ this.pool_.getSession((err, session, transaction) => {
1283
+ if (err && (0, session_pool_1.isSessionNotFoundError)(err)) {
1284
+ this.writeAtLeastOnce(mutations, options, cb);
1285
+ return;
1286
+ }
1287
+ if (err) {
1288
+ cb(err);
1289
+ return;
1290
+ }
1291
+ this._releaseOnEnd(session, transaction);
1292
+ transaction === null || transaction === void 0 ? void 0 : transaction.setQueuedMutations(mutations.proto());
1293
+ return transaction === null || transaction === void 0 ? void 0 : transaction.commit(options, cb);
1294
+ });
1295
+ }
1275
1296
  /**
1276
1297
  * Create a Session object.
1277
1298
  *
@@ -1403,6 +1424,7 @@ exports.Database = Database;
1403
1424
  'batchCreateSessions',
1404
1425
  'batchTransaction',
1405
1426
  'batchWriteAtLeastOnce',
1427
+ 'writeAtLeastOnce',
1406
1428
  'close',
1407
1429
  'createBatchTransaction',
1408
1430
  'createSession',
@@ -28,7 +28,7 @@ import { PagedOptions, PagedResponse, PagedCallback, PagedOptionsWithFilter, Nor
28
28
  import { Session } from './session';
29
29
  import { SessionPool } from './session-pool';
30
30
  import { Table } from './table';
31
- import { MutationGroup, PartitionedDml, Snapshot, Transaction } from './transaction';
31
+ import { MutationGroup, MutationSet, PartitionedDml, Snapshot, Transaction } from './transaction';
32
32
  import * as v1 from './v1';
33
33
  export type IOperation = instanceAdmin.longrunning.IOperation;
34
34
  export type GetInstancesOptions = PagedOptionsWithFilter;
@@ -1163,6 +1163,14 @@ export { Transaction };
1163
1163
  * @type {Constructor}
1164
1164
  */
1165
1165
  export { MutationGroup };
1166
+ /**
1167
+ * {@link MutationSet} class.
1168
+ *
1169
+ * @name Spanner.MutationSet
1170
+ * @see MutationSet
1171
+ * @type {Constructor}
1172
+ */
1173
+ export { MutationSet };
1166
1174
  /**
1167
1175
  * @type {object}
1168
1176
  * @property {constructor} DatabaseAdminClient
@@ -15,7 +15,7 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.SpannerDate = exports.PGNumeric = exports.Numeric = exports.Struct = exports.Int = exports.Float = exports.Float32 = exports.protos = exports.v1 = exports.MutationGroup = exports.Transaction = exports.Snapshot = exports.PartitionedDml = exports.Table = exports.SessionPool = exports.Session = exports.Backup = exports.Database = exports.InstanceConfig = exports.Instance = exports.Spanner = void 0;
18
+ exports.SpannerDate = exports.PGNumeric = exports.Numeric = exports.Struct = exports.Int = exports.Float = exports.Float32 = exports.protos = exports.v1 = exports.MutationSet = exports.MutationGroup = exports.Transaction = exports.Snapshot = exports.PartitionedDml = exports.Table = exports.SessionPool = exports.Session = exports.Backup = exports.Database = exports.InstanceConfig = exports.Instance = exports.Spanner = void 0;
19
19
  const service_1 = require("./common-grpc/service");
20
20
  const precise_date_1 = require("@google-cloud/precise-date");
21
21
  const projectify_1 = require("@google-cloud/projectify");
@@ -52,6 +52,7 @@ const table_1 = require("./table");
52
52
  Object.defineProperty(exports, "Table", { enumerable: true, get: function () { return table_1.Table; } });
53
53
  const transaction_1 = require("./transaction");
54
54
  Object.defineProperty(exports, "MutationGroup", { enumerable: true, get: function () { return transaction_1.MutationGroup; } });
55
+ Object.defineProperty(exports, "MutationSet", { enumerable: true, get: function () { return transaction_1.MutationSet; } });
55
56
  Object.defineProperty(exports, "PartitionedDml", { enumerable: true, get: function () { return transaction_1.PartitionedDml; } });
56
57
  Object.defineProperty(exports, "Snapshot", { enumerable: true, get: function () { return transaction_1.Snapshot; } });
57
58
  Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return transaction_1.Transaction; } });
@@ -146,6 +147,9 @@ class Spanner extends service_1.GrpcService {
146
147
  libName: 'gccl',
147
148
  libVersion: require('../../package.json').version,
148
149
  scopes,
150
+ // Add grpc keep alive setting
151
+ 'grpc.keepalive_time_ms': 30000,
152
+ 'grpc.keepalive_timeout_ms': 10000,
149
153
  // Enable grpc-gcp support
150
154
  'grpc.callInvocationTransformer': grpcGcp.gcpCallInvocationTransformer,
151
155
  'grpc.channelFactoryOverride': grpcGcp.gcpChannelFactoryOverride,
@@ -1118,6 +1118,14 @@ export declare class Transaction extends Dml {
1118
1118
  batchUpdate(queries: Array<string | Statement>, callback: BatchUpdateCallback): void;
1119
1119
  batchUpdate(queries: Array<string | Statement>, options: BatchUpdateOptions | CallOptions, callback: BatchUpdateCallback): void;
1120
1120
  private static extractKnownMetadata;
1121
+ /**
1122
+ * This method updates the _queuedMutations property of the transaction.
1123
+ *
1124
+ * @public
1125
+ *
1126
+ * @param {spannerClient.spanner.v1.Mutation[]} [mutation]
1127
+ */
1128
+ setQueuedMutations(mutation: spannerClient.spanner.v1.Mutation[]): void;
1121
1129
  /**
1122
1130
  * @typedef {object} CommitOptions
1123
1131
  * @property {google.spanner.v1.IRequestOptions} requestOptions The request options to include
@@ -1502,6 +1510,88 @@ export declare class Transaction extends Dml {
1502
1510
  */
1503
1511
  excludeTxnFromChangeStreams(): void;
1504
1512
  }
1513
+ /**
1514
+ * MutationSet represent a set of changes to be applied atomically to a Cloud Spanner
1515
+ * database with a {@link Transaction}.
1516
+ * Mutations are used to insert, update, upsert(insert or update), replace, or
1517
+ * delete rows within tables.
1518
+ *
1519
+ * Mutations are added to a {@link Transaction} and are not executed until the
1520
+ * transaction is committed via {@link Transaction#commit}.
1521
+ *
1522
+ * If the transaction is rolled back or encounters an error, the mutations are
1523
+ * discarded.
1524
+ *
1525
+ * @example
1526
+ * ```
1527
+ * const {Spanner, Mutation} = require('@google-cloud/spanner');
1528
+ * const spanner = new Spanner();
1529
+ *
1530
+ * const instance = spanner.instance('my-instance');
1531
+ * const database = instance.database('my-database');
1532
+ *
1533
+ * const mutations = new MutationSet();
1534
+ * mutations.insert('Singers', {SingerId: '123', FirstName: 'David'});
1535
+ * mutations.update('Singers', {SingerId: '123', FirstName: 'Marc'});
1536
+ *
1537
+ * try {
1538
+ * database.writeAtLeastOnce(mutations, (err, res) => {
1539
+ * console.log("RESPONSE: ", res);
1540
+ * });
1541
+ * } catch(err) {
1542
+ * console.log("ERROR: ", err);
1543
+ * }
1544
+ * ```
1545
+ */
1546
+ export declare class MutationSet {
1547
+ /**
1548
+ * An array to store the mutations.
1549
+ */
1550
+ private _queuedMutations;
1551
+ /**
1552
+ * Creates a new Mutation object.
1553
+ */
1554
+ constructor();
1555
+ /**
1556
+ * Adds an insert operation to the mutation set.
1557
+ * @param {string} table. The name of the table to insert into.
1558
+ * @param {object|object[]} rows. A single row object or an array of row objects to insert.
1559
+ */
1560
+ insert(table: string, rows: object | object[]): void;
1561
+ /**
1562
+ * Adds an update operation to the mutation set.
1563
+ * @param {string} table. The name of the table to update.
1564
+ * @param {object|object[]} rows. A single row object or an array of row objects to update.
1565
+ * Each row object must contain the primary key values to indentify the row to update.
1566
+ */
1567
+ update(table: string, rows: object | object[]): void;
1568
+ /**
1569
+ * Adds an upsert operation to the mutation set.
1570
+ * An upsert will insert a new row if it does not exist or update an existing row if it does.
1571
+ * @param {string} table. The name of the table to upsert.
1572
+ * @param {object|object[]} rows. A single row object or an array of row objects to upsert.
1573
+ */
1574
+ upsert(table: string, rows: object | object[]): void;
1575
+ /**
1576
+ * Adds a replace operation to the mutation set.
1577
+ * A replace operation deletes the existing row (if it exists) and inserts the new row.
1578
+ * @param {string} table. The name of the table to replace.
1579
+ * @param {object|object[]} rows. A single row object or an array of row objects to replace.
1580
+ */
1581
+ replace(table: string, rows: object | object[]): void;
1582
+ /**
1583
+ * Adds a deleteRows operation to the mutation set.
1584
+ * This operation deletes rows from the specified table based on their primary keys.
1585
+ * @param {string} table. The name of the table to deleteRows from.
1586
+ * @param {key[]} key. An array of key objects, each represeting the primary key of a row to delete.
1587
+ */
1588
+ deleteRows(table: string, keys: Key[]): void;
1589
+ /**
1590
+ * Returns the internal representation of the queued mutations as a protobuf message.
1591
+ * @returns {spannerClient.spanner.v1.Mutation[]}. The protobuf message representing the mutations.
1592
+ */
1593
+ proto(): spannerClient.spanner.v1.Mutation[];
1594
+ }
1505
1595
  /**
1506
1596
  * A group of mutations to be committed together.
1507
1597
  * Related mutations should be placed in a group.
@@ -15,7 +15,7 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.PartitionedDml = exports.MutationGroup = exports.Transaction = exports.Dml = exports.Snapshot = void 0;
18
+ exports.PartitionedDml = exports.MutationGroup = exports.MutationSet = exports.Transaction = exports.Dml = exports.Snapshot = void 0;
19
19
  const precise_date_1 = require("@google-cloud/precise-date");
20
20
  const promisify_1 = require("@google-cloud/promisify");
21
21
  const arrify = require("arrify");
@@ -1089,6 +1089,16 @@ class Transaction extends Dml {
1089
1089
  }
1090
1090
  return undefined;
1091
1091
  }
1092
+ /**
1093
+ * This method updates the _queuedMutations property of the transaction.
1094
+ *
1095
+ * @public
1096
+ *
1097
+ * @param {spannerClient.spanner.v1.Mutation[]} [mutation]
1098
+ */
1099
+ setQueuedMutations(mutation) {
1100
+ this._queuedMutations = mutation;
1101
+ }
1092
1102
  commit(optionsOrCallback, cb) {
1093
1103
  const options = typeof optionsOrCallback === 'object' ? optionsOrCallback : {};
1094
1104
  const callback = typeof optionsOrCallback === 'function' ? optionsOrCallback : cb;
@@ -1573,6 +1583,99 @@ function buildDeleteMutation(table, keys) {
1573
1583
  };
1574
1584
  return mutation;
1575
1585
  }
1586
+ /**
1587
+ * MutationSet represent a set of changes to be applied atomically to a Cloud Spanner
1588
+ * database with a {@link Transaction}.
1589
+ * Mutations are used to insert, update, upsert(insert or update), replace, or
1590
+ * delete rows within tables.
1591
+ *
1592
+ * Mutations are added to a {@link Transaction} and are not executed until the
1593
+ * transaction is committed via {@link Transaction#commit}.
1594
+ *
1595
+ * If the transaction is rolled back or encounters an error, the mutations are
1596
+ * discarded.
1597
+ *
1598
+ * @example
1599
+ * ```
1600
+ * const {Spanner, Mutation} = require('@google-cloud/spanner');
1601
+ * const spanner = new Spanner();
1602
+ *
1603
+ * const instance = spanner.instance('my-instance');
1604
+ * const database = instance.database('my-database');
1605
+ *
1606
+ * const mutations = new MutationSet();
1607
+ * mutations.insert('Singers', {SingerId: '123', FirstName: 'David'});
1608
+ * mutations.update('Singers', {SingerId: '123', FirstName: 'Marc'});
1609
+ *
1610
+ * try {
1611
+ * database.writeAtLeastOnce(mutations, (err, res) => {
1612
+ * console.log("RESPONSE: ", res);
1613
+ * });
1614
+ * } catch(err) {
1615
+ * console.log("ERROR: ", err);
1616
+ * }
1617
+ * ```
1618
+ */
1619
+ class MutationSet {
1620
+ /**
1621
+ * Creates a new Mutation object.
1622
+ */
1623
+ constructor() {
1624
+ this._queuedMutations = [];
1625
+ }
1626
+ /**
1627
+ * Adds an insert operation to the mutation set.
1628
+ * @param {string} table. The name of the table to insert into.
1629
+ * @param {object|object[]} rows. A single row object or an array of row objects to insert.
1630
+ */
1631
+ insert(table, rows) {
1632
+ this._queuedMutations.push(buildMutation('insert', table, rows));
1633
+ }
1634
+ /**
1635
+ * Adds an update operation to the mutation set.
1636
+ * @param {string} table. The name of the table to update.
1637
+ * @param {object|object[]} rows. A single row object or an array of row objects to update.
1638
+ * Each row object must contain the primary key values to indentify the row to update.
1639
+ */
1640
+ update(table, rows) {
1641
+ this._queuedMutations.push(buildMutation('update', table, rows));
1642
+ }
1643
+ /**
1644
+ * Adds an upsert operation to the mutation set.
1645
+ * An upsert will insert a new row if it does not exist or update an existing row if it does.
1646
+ * @param {string} table. The name of the table to upsert.
1647
+ * @param {object|object[]} rows. A single row object or an array of row objects to upsert.
1648
+ */
1649
+ upsert(table, rows) {
1650
+ this._queuedMutations.push(buildMutation('insertOrUpdate', table, rows));
1651
+ }
1652
+ /**
1653
+ * Adds a replace operation to the mutation set.
1654
+ * A replace operation deletes the existing row (if it exists) and inserts the new row.
1655
+ * @param {string} table. The name of the table to replace.
1656
+ * @param {object|object[]} rows. A single row object or an array of row objects to replace.
1657
+ */
1658
+ replace(table, rows) {
1659
+ this._queuedMutations.push(buildMutation('replace', table, rows));
1660
+ }
1661
+ /**
1662
+ * Adds a deleteRows operation to the mutation set.
1663
+ * This operation deletes rows from the specified table based on their primary keys.
1664
+ * @param {string} table. The name of the table to deleteRows from.
1665
+ * @param {key[]} key. An array of key objects, each represeting the primary key of a row to delete.
1666
+ */
1667
+ deleteRows(table, keys) {
1668
+ this._queuedMutations.push(buildDeleteMutation(table, keys));
1669
+ }
1670
+ /**
1671
+ * Returns the internal representation of the queued mutations as a protobuf message.
1672
+ * @returns {spannerClient.spanner.v1.Mutation[]}. The protobuf message representing the mutations.
1673
+ */
1674
+ proto() {
1675
+ return this._queuedMutations;
1676
+ }
1677
+ }
1678
+ exports.MutationSet = MutationSet;
1576
1679
  /**
1577
1680
  * A group of mutations to be committed together.
1578
1681
  * Related mutations should be placed in a group.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@google-cloud/spanner",
3
3
  "description": "Cloud Spanner Client Library for Node.js",
4
- "version": "7.10.0",
4
+ "version": "7.12.0",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Google Inc.",
7
7
  "engines": {