File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -489,7 +489,7 @@ Transaction.prototype.run = function(query, callback) {
489489 * this.end();
490490 * })
491491 * .on('end', function() {});
492- * });
492+ * });
493493 */
494494Transaction . prototype . runStream = function ( query ) {
495495 var self = this ;
@@ -646,23 +646,6 @@ Transaction.prototype.retry_ = function(timeout, callback) {
646646 * });
647647 * });
648648 * });
649- *
650- * //-
651- * // You can also omit the callback and return a Promise.
652- * //-
653- * transaction.run_(function() {
654- * return transaction.run('SELECT * FROM Singers')
655- * .then(function() {
656- * transaction.insert('Singers', {
657- * SingerId: 'Id3b',
658- * Name: 'Joe West'
659- * });
660- *
661- * return transaction.commit();
662- * });
663- * }).then(function() {
664- * // Transaction committed successfully.
665- * });
666649 */
667650Transaction . prototype . run_ = function ( fn ) {
668651 this . runFn_ = fn ;
You can’t perform that action at this time.
0 commit comments