Skip to content

Why do I need to do 2 imports for datastore transactions? #684

Description

@jgeewax

What I see in the docs:

>>>fromgcloudimportdatastore>>>fromgcloud.datastore.transactionimportTransaction>>>datastore.set_defaults()
>>>withTransaction():
... datastore.put([entity1, entity2])

What I want to do:

>>>fromgcloudimportdatastore>>>withdatastore.Transaction() ast:
... t.put([entity1, entity2])

Metadata

Metadata

Assignees

Labels

api: datastoreIssues related to the Datastore API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions