Skip to content

Commit 201a3ba

Browse files
committed
Move hello world samples into separate folder
1 parent 9781b04 commit 201a3ba

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

bigtable/src/hw_create_table.php renamed to bigtable/src/helloworld/create_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424

2525
// Include Google Cloud dependendencies using Composer
26-
require_once __DIR__ . '/../vendor/autoload.php';
26+
require_once __DIR__ . '/../../vendor/autoload.php';
2727

2828
if (count($argv) != 4) {
2929
return printf("Usage: php %s PROJECT_ID INSTANCE_ID TABLE_ID" . PHP_EOL, __FILE__);

bigtable/src/hw_get_with_filter.php renamed to bigtable/src/helloworld/get_with_filter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424

2525
// Include Google Cloud dependendencies using Composer
26-
require_once __DIR__ . '/../vendor/autoload.php';
26+
require_once __DIR__ . '/../../vendor/autoload.php';
2727

2828
if (count($argv) < 3 || count($argv) > 5) {
2929
return printf("Usage: php %s PROJECT_ID INSTANCE_ID TABLE_ID" . PHP_EOL, __FILE__);

bigtable/src/hw_scan_all.php renamed to bigtable/src/helloworld/scan_all.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424

2525
// Include Google Cloud dependendencies using Composer
26-
require_once __DIR__ . '/../vendor/autoload.php';
26+
require_once __DIR__ . '/../../vendor/autoload.php';
2727

2828
if (count($argv) < 3 || count($argv) > 5) {
2929
return printf("Usage: php %s PROJECT_ID INSTANCE_ID TABLE_ID" . PHP_EOL, __FILE__);

bigtable/src/hw_write_rows.php renamed to bigtable/src/helloworld/write_rows.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424

2525
// Include Google Cloud dependendencies using Composer
26-
require_once __DIR__ . '/../vendor/autoload.php';
26+
require_once __DIR__ . '/../../vendor/autoload.php';
2727

2828
if (count($argv) < 3 || count($argv) > 5) {
2929
return printf("Usage: php %s PROJECT_ID INSTANCE_ID TABLE_ID" . PHP_EOL, __FILE__);

bigtable/test/bigtableTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ public function testWritingRows()
377377
$this->createHWTable(self::$projectId, self::$instanceId, self::$clusterId, $tableId);
378378
$this->checkTable($tableName);
379379

380-
$content = self::runSnippet('hw_write_rows', [
380+
$content = self::runSnippet('helloworld/write_rows', [
381381
self::$projectId,
382382
self::$instanceId,
383383
$tableId
@@ -406,13 +406,13 @@ public function testGettingARow()
406406
$this->createHWTable(self::$projectId, self::$instanceId, self::$clusterId, $tableId);
407407
$this->checkTable($tableName);
408408

409-
self::runSnippet('hw_write_rows', [
409+
self::runSnippet('helloworld/write_rows', [
410410
self::$projectId,
411411
self::$instanceId,
412412
$tableId
413413
]);
414414

415-
$content = self::runSnippet('hw_get_with_filter', [
415+
$content = self::runSnippet('helloworld/get_with_filter', [
416416
self::$projectId,
417417
self::$instanceId,
418418
$tableId
@@ -432,13 +432,13 @@ public function testScanningAllRows()
432432
$this->createHWTable(self::$projectId, self::$instanceId, self::$clusterId, $tableId);
433433
$this->checkTable($tableName);
434434

435-
self::runSnippet('hw_write_rows', [
435+
self::runSnippet('helloworld/write_rows', [
436436
self::$projectId,
437437
self::$instanceId,
438438
$tableId
439439
]);
440440

441-
$content = self::runSnippet('hw_scan_all', [
441+
$content = self::runSnippet('helloworld/scan_all', [
442442
self::$projectId,
443443
self::$instanceId,
444444
$tableId
@@ -558,7 +558,7 @@ private function createTable($projectId, $instanceId, $clusterId, $tableId)
558558

559559
private function createHWTable($projectId, $instanceId, $clusterId, $tableId)
560560
{
561-
self::runSnippet('hw_create_table', [
561+
self::runSnippet('helloworld/create_table', [
562562
$projectId,
563563
$instanceId,
564564
$tableId

0 commit comments

Comments
 (0)