Skip to content

Commit 3639d83

Browse files
jmdobrybshaffer
authored andcommitted
Clean up Spanner region tags. (#562)
1 parent 874b0a6 commit 3639d83

15 files changed

+30
-30
lines changed

spanner/src/add_column.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Spanner;
2525

26-
// [START add_column]
26+
// [START spanner_add_column]
2727
use Google\Cloud\Spanner\SpannerClient;
2828

2929
/**
@@ -51,4 +51,4 @@ function add_column($instanceId, $databaseId)
5151

5252
printf('Added the MarketingBudget column.' . PHP_EOL);
5353
}
54-
// [END add_column]
54+
// [END spanner_add_column]

spanner/src/create_database.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Spanner;
2525

26-
// [START create_database]
26+
// [START spanner_create_database]
2727
use Google\Cloud\Spanner\SpannerClient;
2828

2929
/**
@@ -66,4 +66,4 @@ function create_database($instanceId, $databaseId)
6666
printf('Created database %s on instance %s' . PHP_EOL,
6767
$databaseId, $instanceId);
6868
}
69-
// [END create_database]
69+
// [END spanner_create_database]

spanner/src/create_index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Spanner;
2525

26-
// [START create_index]
26+
// [START spanner_create_index]
2727
use Google\Cloud\Spanner\SpannerClient;
2828

2929
/**
@@ -51,4 +51,4 @@ function create_index($instanceId, $databaseId)
5151

5252
printf('Added the AlbumsByAlbumTitle index.' . PHP_EOL);
5353
}
54-
// [END create_index]
54+
// [END spanner_create_index]

spanner/src/create_storing_index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
namespace Google\Cloud\Samples\Spanner;
2929

30-
// [START create_storing_index]
30+
// [START spanner_create_storing_index]
3131
use Google\Cloud\Spanner\SpannerClient;
3232

3333
/**
@@ -63,4 +63,4 @@ function create_storing_index($instanceId, $databaseId)
6363

6464
printf('Added the AlbumsByAlbumTitle2 index.' . PHP_EOL);
6565
}
66-
// [END create_storing_index]
66+
// [END spanner_create_storing_index]

spanner/src/insert_data.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Spanner;
2525

26-
// [START insert_data]
26+
// [START spanner_insert_data]
2727
use Google\Cloud\Spanner\SpannerClient;
2828

2929
/**
@@ -64,4 +64,4 @@ function insert_data($instanceId, $databaseId)
6464

6565
print('Inserted data.' . PHP_EOL);
6666
}
67-
// [END insert_data]
67+
// [END spanner_insert_data]

spanner/src/query_data.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Spanner;
2525

26-
// [START query_data]
26+
// [START spanner_query_data]
2727
use Google\Cloud\Spanner\SpannerClient;
2828

2929
/**
@@ -51,4 +51,4 @@ function query_data($instanceId, $databaseId)
5151
$row['SingerId'], $row['AlbumId'], $row['AlbumTitle']);
5252
}
5353
}
54-
// [END query_data]
54+
// [END spanner_query_data]

spanner/src/query_data_with_index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Spanner;
2525

26-
// [START query_data_with_index]
26+
// [START spanner_query_data_with_index]
2727
use Google\Cloud\Spanner\SpannerClient;
2828

2929
/**
@@ -68,4 +68,4 @@ function query_data_with_index($instanceId, $databaseId, $startTitle, $endTitle)
6868
$row['AlbumId'], $row['AlbumTitle'], $row['MarketingBudget']);
6969
}
7070
}
71-
// [END query_data_with_index]
71+
// [END spanner_query_data_with_index]

spanner/src/query_data_with_new_column.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Spanner;
2525

26-
// [START query_data_with_new_column]
26+
// [START spanner_query_data_with_new_column]
2727
use Google\Cloud\Spanner\SpannerClient;
2828

2929
/**
@@ -57,4 +57,4 @@ function query_data_with_new_column($instanceId, $databaseId)
5757
$row['SingerId'], $row['AlbumId'], $row['MarketingBudget']);
5858
}
5959
}
60-
// [END query_data_with_new_column]
60+
// [END spanner_query_data_with_new_column]

spanner/src/read_data.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Spanner;
2525

26-
// [START read_data]
26+
// [START spanner_read_data]
2727
use Google\Cloud\Spanner\SpannerClient;
2828

2929
/**
@@ -54,4 +54,4 @@ function read_data($instanceId, $databaseId)
5454
$row['SingerId'], $row['AlbumId'], $row['AlbumTitle']);
5555
}
5656
}
57-
// [END read_data]
57+
// [END spanner_read_data]

spanner/src/read_data_with_index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Spanner;
2525

26-
// [START read_data_with_index]
26+
// [START spanner_read_data_with_index]
2727
use Google\Cloud\Spanner\SpannerClient;
2828

2929
/**
@@ -62,4 +62,4 @@ function read_data_with_index($instanceId, $databaseId)
6262
$row['AlbumId'], $row['AlbumTitle']);
6363
}
6464
}
65-
// [END read_data_with_index]
65+
// [END spanner_read_data_with_index]

spanner/src/read_data_with_storing_index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
namespace Google\Cloud\Samples\Spanner;
2929

30-
// [START read_data_with_storing_index]
30+
// [START spanner_read_data_with_storing_index]
3131
use Google\Cloud\Spanner\SpannerClient;
3232

3333
/**
@@ -68,4 +68,4 @@ function read_data_with_storing_index($instanceId, $databaseId)
6868
$row['AlbumId'], $row['AlbumTitle'], $row['MarketingBudget']);
6969
}
7070
}
71-
// [END read_data_with_storing_index]
71+
// [END spanner_read_data_with_storing_index]

spanner/src/read_only_transaction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Spanner;
2525

26-
// [START read_only_transaction]
26+
// [START spanner_read_only_transaction]
2727
use Google\Cloud\Spanner\SpannerClient;
2828

2929
/**
@@ -71,4 +71,4 @@ function read_only_transaction($instanceId, $databaseId)
7171
$row['SingerId'], $row['AlbumId'], $row['AlbumTitle']);
7272
}
7373
}
74-
// [END read_only_transaction]
74+
// [END spanner_read_only_transaction]

spanner/src/read_stale_data.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Spanner;
2525

26-
// [START read_stale_data]
26+
// [START spanner_read_stale_data]
2727
use Google\Cloud\Spanner\Duration;
2828
use Google\Cloud\Spanner\SpannerClient;
2929

@@ -56,4 +56,4 @@ function read_stale_data($instanceId, $databaseId)
5656
$row['SingerId'], $row['AlbumId'], $row['AlbumTitle']);
5757
}
5858
}
59-
// [END read_stale_data]
59+
// [END spanner_read_stale_data]

spanner/src/read_write_transaction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Spanner;
2525

26-
// [START read_write_transaction]
26+
// [START spanner_read_write_transaction]
2727
use Google\Cloud\Spanner\SpannerClient;
2828
use Google\Cloud\Spanner\Transaction;
2929
use UnexpectedValueException;
@@ -104,4 +104,4 @@ function read_write_transaction($instanceId, $databaseId)
104104

105105
print('Transaction complete.' . PHP_EOL);
106106
}
107-
// [END read_write_transaction]
107+
// [END spanner_read_write_transaction]

spanner/src/update_data.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Spanner;
2525

26-
// [START update_data]
26+
// [START spanner_update_data]
2727
use Google\Cloud\Spanner\SpannerClient;
2828

2929
/**
@@ -58,4 +58,4 @@ function update_data($instanceId, $databaseId)
5858

5959
print('Updated data.' . PHP_EOL);
6060
}
61-
// [END update_data]
61+
// [END spanner_update_data]

0 commit comments

Comments
 (0)