Support or documentation for transaction commit timestamp #241
Labels
api: spanner
Issues related to the googleapis/nodejs-spanner API.
type: docs
Improvement to the documentation for an API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Because Spanner doesn't support
RETURNING
(I wish it did!), when creating a record usingSpanner.COMMIT_TIMESTAMP
, I want to replace that placeholder with the timestamp of the commit before returning my created object to the client.In the golang library, the commited timestamp is returned as the result of the transaction:
However, there is currently either no way to do this in the node library, or the documentation does not make it clear how.
If it's not in the library yet, one possible option would be making it the return result of the
commit()
method.@google-cloud/spanner
version: 1.5The text was updated successfully, but these errors were encountered: