Reference documentation and code samples for the Cloud Datastore V1 Client class TransactionOptions.
Options for beginning a new transaction.
Transactions can be created explicitly with calls to Datastore.BeginTransaction or implicitly by setting ReadOptions.new_transaction in read requests.
Generated from protobuf message google.datastore.v1.TransactionOptions
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ read_write
Google\Cloud\Datastore\V1\TransactionOptions\ReadWrite
The transaction should allow both reads and writes.
↳ read_only
getReadWrite
The transaction should allow both reads and writes.
Generated from protobuf field .google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;
hasReadWrite
setReadWrite
The transaction should allow both reads and writes.
Generated from protobuf field .google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;
$this
getReadOnly
The transaction should only allow reads.
Generated from protobuf field .google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;
hasReadOnly
setReadOnly
The transaction should only allow reads.
Generated from protobuf field .google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;
$this
getMode
string