-
Notifications
You must be signed in to change notification settings - Fork 598
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
spanner: make getTransaction public #2344
spanner: make getTransaction public #2344
Conversation
Thanks @callmehiphop! Adding @vkedia as a reviewer, since he understands this code better than I do. |
packages/spanner/src/database.js
Outdated
* | ||
* @param {object=} options - Transaction options. | ||
* @param {boolean} options.readOnly - Specifies if the transaction is read | ||
* only. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
packages/spanner/src/database.js
Outdated
* Get a read/write ready Transaction object. | ||
* | ||
* @param {object=} options - Transaction options. | ||
* @param {boolean} options.readOnly - Specifies if the transaction is read |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
packages/spanner/src/database.js
Outdated
|
||
transaction.begin(function(err) { | ||
if (err) { | ||
callback(err); |
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.
@callmehiphop Can you close this out this week? |
@bjwatson yes! Sorry, I've been side tracked by other things. |
Thanks @callmehiphop! |
@swcloud FYI, we want to get this done this week. |
@stephenplusplus @vkedia this should be good to go now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -400,6 +400,77 @@ Database.prototype.getSchema = function(callback) { | |||
}; | |||
|
|||
/** | |||
* Get a read/write ready Transaction object. | |||
* | |||
* @param {object=} options - [Transaction options](https://cloud.google.com/spanner/docs/timestamp-bounds). |
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.
Closes #2152