File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 28
28
which represents a connection between your machine and the Cloud Datastore
29
29
API.
30
30
31
+ - :class:`gcloud.datastore.dataset.Dataset`
32
+ which represents a dataset ID (string) bundled with a connection and has
33
+ convenience methods for constructing objects with that dataset ID.
34
+
31
35
- :class:`gcloud.datastore.entity.Entity`
32
36
which represents a single entity in the datastore
33
37
(akin to a row in relational database world).
56
60
from gcloud .datastore .api import put
57
61
from gcloud .datastore .batch import Batch
58
62
from gcloud .datastore .connection import Connection
63
+ from gcloud .datastore .dataset import Dataset
59
64
from gcloud .datastore .entity import Entity
60
65
from gcloud .datastore .key import Key
61
66
from gcloud .datastore .query import Query
Original file line number Diff line number Diff line change @@ -51,8 +51,6 @@ class Batch(object):
51
51
52
52
By default, no updates will be sent if the block exits with an error::
53
53
54
- >>> from gcloud import datastore
55
- >>> dataset = datastore.get_dataset('dataset-id')
56
54
>>> with Batch() as batch:
57
55
... do_some_work(batch)
58
56
... raise Exception() # rolls back
You can’t perform that action at this time.
0 commit comments