Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up Spanner region tags. #562

Merged
merged 1 commit into from
Mar 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions spanner/src/add_column.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace Google\Cloud\Samples\Spanner;

// [START add_column]
// [START spanner_add_column]
use Google\Cloud\Spanner\SpannerClient;

/**
Expand Down Expand Up @@ -51,4 +51,4 @@ function add_column($instanceId, $databaseId)

printf('Added the MarketingBudget column.' . PHP_EOL);
}
// [END add_column]
// [END spanner_add_column]
4 changes: 2 additions & 2 deletions spanner/src/create_database.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace Google\Cloud\Samples\Spanner;

// [START create_database]
// [START spanner_create_database]
use Google\Cloud\Spanner\SpannerClient;

/**
Expand Down Expand Up @@ -66,4 +66,4 @@ function create_database($instanceId, $databaseId)
printf('Created database %s on instance %s' . PHP_EOL,
$databaseId, $instanceId);
}
// [END create_database]
// [END spanner_create_database]
4 changes: 2 additions & 2 deletions spanner/src/create_index.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace Google\Cloud\Samples\Spanner;

// [START create_index]
// [START spanner_create_index]
use Google\Cloud\Spanner\SpannerClient;

/**
Expand Down Expand Up @@ -51,4 +51,4 @@ function create_index($instanceId, $databaseId)

printf('Added the AlbumsByAlbumTitle index.' . PHP_EOL);
}
// [END create_index]
// [END spanner_create_index]
4 changes: 2 additions & 2 deletions spanner/src/create_storing_index.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

namespace Google\Cloud\Samples\Spanner;

// [START create_storing_index]
// [START spanner_create_storing_index]
use Google\Cloud\Spanner\SpannerClient;

/**
Expand Down Expand Up @@ -63,4 +63,4 @@ function create_storing_index($instanceId, $databaseId)

printf('Added the AlbumsByAlbumTitle2 index.' . PHP_EOL);
}
// [END create_storing_index]
// [END spanner_create_storing_index]
4 changes: 2 additions & 2 deletions spanner/src/insert_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace Google\Cloud\Samples\Spanner;

// [START insert_data]
// [START spanner_insert_data]
use Google\Cloud\Spanner\SpannerClient;

/**
Expand Down Expand Up @@ -64,4 +64,4 @@ function insert_data($instanceId, $databaseId)

print('Inserted data.' . PHP_EOL);
}
// [END insert_data]
// [END spanner_insert_data]
4 changes: 2 additions & 2 deletions spanner/src/query_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace Google\Cloud\Samples\Spanner;

// [START query_data]
// [START spanner_query_data]
use Google\Cloud\Spanner\SpannerClient;

/**
Expand Down Expand Up @@ -51,4 +51,4 @@ function query_data($instanceId, $databaseId)
$row['SingerId'], $row['AlbumId'], $row['AlbumTitle']);
}
}
// [END query_data]
// [END spanner_query_data]
4 changes: 2 additions & 2 deletions spanner/src/query_data_with_index.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace Google\Cloud\Samples\Spanner;

// [START query_data_with_index]
// [START spanner_query_data_with_index]
use Google\Cloud\Spanner\SpannerClient;

/**
Expand Down Expand Up @@ -68,4 +68,4 @@ function query_data_with_index($instanceId, $databaseId, $startTitle, $endTitle)
$row['AlbumId'], $row['AlbumTitle'], $row['MarketingBudget']);
}
}
// [END query_data_with_index]
// [END spanner_query_data_with_index]
4 changes: 2 additions & 2 deletions spanner/src/query_data_with_new_column.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace Google\Cloud\Samples\Spanner;

// [START query_data_with_new_column]
// [START spanner_query_data_with_new_column]
use Google\Cloud\Spanner\SpannerClient;

/**
Expand Down Expand Up @@ -57,4 +57,4 @@ function query_data_with_new_column($instanceId, $databaseId)
$row['SingerId'], $row['AlbumId'], $row['MarketingBudget']);
}
}
// [END query_data_with_new_column]
// [END spanner_query_data_with_new_column]
4 changes: 2 additions & 2 deletions spanner/src/read_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace Google\Cloud\Samples\Spanner;

// [START read_data]
// [START spanner_read_data]
use Google\Cloud\Spanner\SpannerClient;

/**
Expand Down Expand Up @@ -54,4 +54,4 @@ function read_data($instanceId, $databaseId)
$row['SingerId'], $row['AlbumId'], $row['AlbumTitle']);
}
}
// [END read_data]
// [END spanner_read_data]
4 changes: 2 additions & 2 deletions spanner/src/read_data_with_index.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace Google\Cloud\Samples\Spanner;

// [START read_data_with_index]
// [START spanner_read_data_with_index]
use Google\Cloud\Spanner\SpannerClient;

/**
Expand Down Expand Up @@ -62,4 +62,4 @@ function read_data_with_index($instanceId, $databaseId)
$row['AlbumId'], $row['AlbumTitle']);
}
}
// [END read_data_with_index]
// [END spanner_read_data_with_index]
4 changes: 2 additions & 2 deletions spanner/src/read_data_with_storing_index.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

namespace Google\Cloud\Samples\Spanner;

// [START read_data_with_storing_index]
// [START spanner_read_data_with_storing_index]
use Google\Cloud\Spanner\SpannerClient;

/**
Expand Down Expand Up @@ -68,4 +68,4 @@ function read_data_with_storing_index($instanceId, $databaseId)
$row['AlbumId'], $row['AlbumTitle'], $row['MarketingBudget']);
}
}
// [END read_data_with_storing_index]
// [END spanner_read_data_with_storing_index]
4 changes: 2 additions & 2 deletions spanner/src/read_only_transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace Google\Cloud\Samples\Spanner;

// [START read_only_transaction]
// [START spanner_read_only_transaction]
use Google\Cloud\Spanner\SpannerClient;

/**
Expand Down Expand Up @@ -71,4 +71,4 @@ function read_only_transaction($instanceId, $databaseId)
$row['SingerId'], $row['AlbumId'], $row['AlbumTitle']);
}
}
// [END read_only_transaction]
// [END spanner_read_only_transaction]
4 changes: 2 additions & 2 deletions spanner/src/read_stale_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace Google\Cloud\Samples\Spanner;

// [START read_stale_data]
// [START spanner_read_stale_data]
use Google\Cloud\Spanner\Duration;
use Google\Cloud\Spanner\SpannerClient;

Expand Down Expand Up @@ -56,4 +56,4 @@ function read_stale_data($instanceId, $databaseId)
$row['SingerId'], $row['AlbumId'], $row['AlbumTitle']);
}
}
// [END read_stale_data]
// [END spanner_read_stale_data]
4 changes: 2 additions & 2 deletions spanner/src/read_write_transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace Google\Cloud\Samples\Spanner;

// [START read_write_transaction]
// [START spanner_read_write_transaction]
use Google\Cloud\Spanner\SpannerClient;
use Google\Cloud\Spanner\Transaction;
use UnexpectedValueException;
Expand Down Expand Up @@ -104,4 +104,4 @@ function read_write_transaction($instanceId, $databaseId)

print('Transaction complete.' . PHP_EOL);
}
// [END read_write_transaction]
// [END spanner_read_write_transaction]
4 changes: 2 additions & 2 deletions spanner/src/update_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace Google\Cloud\Samples\Spanner;

// [START update_data]
// [START spanner_update_data]
use Google\Cloud\Spanner\SpannerClient;

/**
Expand Down Expand Up @@ -58,4 +58,4 @@ function update_data($instanceId, $databaseId)

print('Updated data.' . PHP_EOL);
}
// [END update_data]
// [END spanner_update_data]