Skip to content

Commit 3f55744

Browse files
billyjacobsonbshaffer
authored andcommitted
Bigtable write samples (GoogleCloudPlatform#907)
1 parent b9f9784 commit 3f55744

32 files changed

+397
-47
lines changed

bigtable/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Google BigTable Sample
1+
# Google Bigtable Sample
22

33
## Description
44

55
All code in the `src` directory demonstrates how to connect to Cloud Bigtable and run some basic operations to create instance, create cluster, delete instance and delete cluster.
66

77
## Build and Run
8-
1. **Enable APIs** - [Enable the BigTable API](https://console.cloud.google.com/flows/enableapi?apiid=bigtable)
8+
1. **Enable APIs** - [Enable the Bigtable API](https://console.cloud.google.com/flows/enableapi?apiid=bigtable)
99
and create a new project or select an existing project.
1010
2. **Download The Credentials** - Click "Go to credentials" after enabling the APIs. Click "New Credentials"
1111
and select "Service Account Key". Create a new service account, use the JSON key type, and

bigtable/composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"require": {
3-
"google/cloud-bigtable": "^0.12.1"
3+
"google/cloud-bigtable": "^0.12.1",
4+
"psr/cache": "^1.0"
45
},
56
"require-dev": {
6-
"google/cloud-tools": "^0.8",
7+
"google/cloud-tools": "dev-master",
78
"phpunit/phpunit": "^5"
89
}
910
}

bigtable/phpunit.xml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
timeoutForMediumTests="30"
2727
timeoutForLargeTests="120">
2828
<testsuites>
29-
<testsuite name="PHP bigtable Instance test">
30-
<file>./test/bigtableTest.php</file>
29+
<testsuite name="PHP Bigtable tests">
30+
<directory>test</directory>
3131
</testsuite>
3232
</testsuites>
3333
<logging>

bigtable/src/create_cluster.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @see https://github.com/GoogleCloudPlatform/php-docs-samples/tree/master/bigtable/README.md
2323
*/
2424

25-
// Include Google Cloud dependendencies using Composer
25+
// Include Google Cloud dependencies using Composer
2626
require_once __DIR__ . '/../vendor/autoload.php';
2727

2828
if (count($argv) < 3 || count($argv) > 5) {

bigtable/src/create_dev_instance.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @see https://github.com/GoogleCloudPlatform/php-docs-samples/tree/master/bigtable/README.md
2323
*/
2424

25-
// Include Google Cloud dependendencies using Composer
25+
// Include Google Cloud dependencies using Composer
2626
require_once __DIR__ . '/../vendor/autoload.php';
2727

2828
if (count($argv) < 3 || count($argv) > 5) {

bigtable/src/create_family_gc_intersection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @see https://github.com/GoogleCloudPlatform/php-docs-samples/tree/master/bigtable/README.md
2323
*/
2424

25-
// Include Google Cloud dependendencies using Composer
25+
// Include Google Cloud dependencies using Composer
2626
require_once __DIR__ . '/../vendor/autoload.php';
2727

2828
if (count($argv) != 4) {

bigtable/src/create_family_gc_max_age.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @see https://github.com/GoogleCloudPlatform/php-docs-samples/tree/master/bigtable/README.md
2323
*/
2424

25-
// Include Google Cloud dependendencies using Composer
25+
// Include Google Cloud dependencies using Composer
2626
require_once __DIR__ . '/../vendor/autoload.php';
2727

2828
if (count($argv) != 4) {

bigtable/src/create_family_gc_max_versions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @see https://github.com/GoogleCloudPlatform/php-docs-samples/tree/master/bigtable/README.md
2323
*/
2424

25-
// Include Google Cloud dependendencies using Composer
25+
// Include Google Cloud dependencies using Composer
2626
require_once __DIR__ . '/../vendor/autoload.php';
2727

2828
if (count($argv) != 4) {

bigtable/src/create_family_gc_nested.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @see https://github.com/GoogleCloudPlatform/php-docs-samples/tree/master/bigtable/README.md
2323
*/
2424

25-
// Include Google Cloud dependendencies using Composer
25+
// Include Google Cloud dependencies using Composer
2626
require_once __DIR__ . '/../vendor/autoload.php';
2727

2828
if (count($argv) != 4) {

bigtable/src/create_family_gc_union.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @see https://github.com/GoogleCloudPlatform/php-docs-samples/tree/master/bigtable/README.md
2323
*/
2424

25-
// Include Google Cloud dependendencies using Composer
25+
// Include Google Cloud dependencies using Composer
2626
require_once __DIR__ . '/../vendor/autoload.php';
2727

2828
if (count($argv) != 4) {

0 commit comments

Comments
 (0)