Skip to content

Commit 623d302

Browse files
common/spanner: add nested transaction warning (#2517)
1 parent 6006fd8 commit 623d302

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/spanner/src/database.js

+4
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,10 @@ Database.prototype.runStream = function(query, options) {
787787
* atomically at a single logical point in time across columns, rows, and tables
788788
* in a database.
789789
*
790+
* Note that Cloud Spanner does not support nested transactions. If a new
791+
* transaction is started inside of the run function, it will be an independent
792+
* transaction.
793+
*
790794
* The callback you provide to this function will become the "run function". It
791795
* will be executed with either an error or a {module:spanner/transaction}
792796
* object. The Transaction object will let you run queries and queue mutations

0 commit comments

Comments
 (0)