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 2828 which represents a connection between your machine and the Cloud Datastore
2929 API.
3030
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+
3135- :class:`gcloud.datastore.entity.Entity`
3236 which represents a single entity in the datastore
3337 (akin to a row in relational database world).
5660from gcloud .datastore .api import put
5761from gcloud .datastore .batch import Batch
5862from gcloud .datastore .connection import Connection
63+ from gcloud .datastore .dataset import Dataset
5964from gcloud .datastore .entity import Entity
6065from gcloud .datastore .key import Key
6166from gcloud .datastore .query import Query
Original file line number Diff line number Diff line change @@ -51,8 +51,6 @@ class Batch(object):
5151
5252 By default, no updates will be sent if the block exits with an error::
5353
54- >>> from gcloud import datastore
55- >>> dataset = datastore.get_dataset('dataset-id')
5654 >>> with Batch() as batch:
5755 ... do_some_work(batch)
5856 ... raise Exception() # rolls back
You can’t perform that action at this time.
0 commit comments