This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Observable = require('yaku/lib/Observable') | |
var Promise = require('bluebird'); | |
var assert = require('assert'); | |
function mkTransaction(tId) { | |
var queries = [] | |
return { | |
query: function query(q) { queries.push(q); return query }, | |
close: function() { queries.push('close ' + tId); return queries; } | |
} |