Skip to content

Commit ca1a88b

Browse files
authored
Fix region tags in spanner ref docs. (#162)
1 parent e6b1f6f commit ca1a88b

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

handwritten/spanner/src/batch-transaction.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ var Transaction = require('./transaction.js');
3232
* @extends Transaction
3333
*
3434
* @param {TransactionOptions} [options] [Transaction options](https://cloud.google.com/spanner/docs/timestamp-bounds).
35-
*
36-
* @example <caption>include:samples/batch.js</caption>
37-
* region_tag:create_batch_transaction
3835
*/
3936
function BatchTransaction(session) {
4037
Transaction.call(this, session, {readOnly: true});
@@ -117,7 +114,7 @@ BatchTransaction.prototype.close = function(callback) {
117114
* @returns {Promise<CreateQueryPartitionsResponse>}
118115
*
119116
* @example <caption>include:samples/batch.js</caption>
120-
* region_tag:create_query_partitions
117+
* region_tag:spanner_batch_client
121118
*/
122119
BatchTransaction.prototype.createQueryPartitions = function(query, callback) {
123120
if (is.string(query)) {
@@ -210,9 +207,6 @@ BatchTransaction.prototype.createPartitions_ = function(config, callback) {
210207
* read from.
211208
* @param {CreateReadPartitionsCallback} [callback] Callback function.
212209
* @returns {Promise<CreateReadPartitionsResponse>}
213-
*
214-
* @example <caption>include:samples/batch.js</caption>
215-
* region_tag:create_read_partitions
216210
*/
217211
BatchTransaction.prototype.createReadPartitions = function(options, callback) {
218212
var reqOpts = codec.encodeRead(options);
@@ -247,7 +241,7 @@ BatchTransaction.prototype.createReadPartitions = function(options, callback) {
247241
* @returns {Promise<RunResponse>|Promise<TransactionRequestReadResponse>}
248242
*
249243
* @example <caption>include:samples/batch.js</caption>
250-
* region_tag:execute_partition
244+
* region_tag:spanner_batch_execute_partitions
251245
*/
252246
BatchTransaction.prototype.execute = function(partition, callback) {
253247
if (is.string(partition.table)) {

handwritten/spanner/src/database.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,6 @@ Database.prototype.close = function(callback) {
279279
* @param {TransactionOptions} [options] [Transaction options](https://cloud.google.com/spanner/docs/timestamp-bounds).
280280
* @param {CreateTransactionCallback} [callback] Callback function.
281281
* @returns {Promise<CreateTransactionResponse>}
282-
*
283-
* @example <caption>include:samples/batch.js</caption>
284-
* region_tag:create_batch_transaction
285282
*/
286283
Database.prototype.createBatchTransaction = function(options, callback) {
287284
var self = this;

0 commit comments

Comments
 (0)