Skip to content

Commit c239b76

Browse files
author
Takashi Matsuo
authored
Adding snippets for Datastore queries (GoogleCloudPlatform#181)
1 parent 0b94ba0 commit c239b76

File tree

6 files changed

+1286
-126
lines changed

6 files changed

+1286
-126
lines changed

datastore/api/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ To run the tests do the following:
1717
1. **Install dependencies** via [Composer](http://getcomposer.org/doc/00-intro.md).
1818
Run `php composer.phar install` (if composer is installed locally) or `composer install`
1919
(if composer is installed globally).
20+
1. Create Datastore indexes by running `gcloud preview datastore create-indexes index.yaml`
2021
1. Run `phpunit`

datastore/api/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": "dev-master"
3+
"google/cloud": "~1.0|~0.10"
44
},
55
"require-dev": {
6-
"phpunit/phpunit": "~4.8"
6+
"phpunit/phpunit": "~4.8",
7+
"google/cloud-tools": "~1.0|~0.5"
78
},
89
"autoload": {
910
"psr-4": { "Google\\Cloud\\Samples\\Datastore\\": "src" },

0 commit comments

Comments
 (0)