-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for read-only transactions and transaction options #773
Conversation
@@ -1,6 +1,6 @@ | |||
<?php | |||
/** | |||
* Copyright 2016 Google Inc. All Rights Reserved. | |||
* Copyright 2017 Google Inc. All Rights Reserved. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
src/Datastore/DatastoreClient.php
Outdated
* | ||
* @type string $previous If the transaction is being restarted, | ||
* the previous transaction ID. | ||
* @type array $transactionOptions Any other transaction configuration, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
src/Datastore/DatastoreClient.php
Outdated
// if empty, force request to encode as {} rather than []. | ||
'readWrite' => $transactionOptions ?: (object) [] | ||
] | ||
] + $options); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
src/Datastore/DatastoreClient.php
Outdated
* @param array $options { | ||
* Configuration options. | ||
* | ||
* @type string $previous If the transaction is being restarted, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@danoscarmike is this feature released in the API yet? Last I heard we were waiting for it to be released in Datastore before adding it to the client library. |
src/Datastore/Blob.php
Outdated
@@ -1,6 +1,6 @@ | |||
<?php | |||
/** | |||
* Copyright 2016 Google Inc. | |||
* Copyright 2017 Google Inc. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This change adds support for Datastore Transaction Options and Read-Only Transactions.