Skip to content

Commit 59b4ba0

Browse files
author
Jonathan Wayne Parrott
committed
Merge pull request #158 from GoogleCloudPlatform/datastore
Adding datastore samples.
2 parents 41dd294 + 8e92bf8 commit 59b4ba0

File tree

12 files changed

+1336
-0
lines changed

12 files changed

+1336
-0
lines changed

blog/introduction_to_data_models_in_cloud_datastore/blog_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313
#
14+
from nose.plugins.attrib import attr
1415
from tests import CloudBaseTest
1516

1617
from .blog import main
1718

1819

20+
@attr('slow')
1921
class BlogTestCase(CloudBaseTest):
2022
"""Simple test case that ensures the blog code doesn't throw any errors."""
2123

blog/introduction_to_data_models_in_cloud_datastore/wiki_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313
#
14+
from nose.plugins.attrib import attr
1415
from tests import CloudBaseTest
1516

1617
from .wiki import main
1718

1819

20+
@attr('slow')
1921
class WikiTestCase(CloudBaseTest):
2022
"""Simple test case that ensures the wiki code doesn't throw any errors."""
2123

datastore/__init__.py

Whitespace-only changes.

datastore/api/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Cloud Datastore API Samples
2+
3+
<!-- auto-doc-link -->
4+
<!-- end-auto-doc-link -->

datastore/api/__init__.py

Whitespace-only changes.

datastore/api/index.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
indexes:
2+
- kind: Task
3+
properties:
4+
- name: done
5+
- name: priority
6+
direction: desc
7+
- kind: Task
8+
properties:
9+
- name: priority
10+
- name: percent_complete
11+
- kind: Task
12+
properties:
13+
- name: priority
14+
direction: desc
15+
- name: created
16+
- kind: Task
17+
properties:
18+
- name: priority
19+
- name: created
20+
- kind: Task
21+
properties:
22+
- name: type
23+
- name: priority
24+
- kind: Task
25+
properties:
26+
- name: priority
27+
- name: done
28+
- name: created
29+
direction: desc

0 commit comments

Comments
 (0)