sphinxql
Version:
SphinxQL query builder for Node.JS. Supports Sphinx search(2.x and 3.x) and Manticore search
22 lines • 823 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var TransactionStatement = (function () {
function TransactionStatement(connection) {
this.connection = connection;
}
TransactionStatement.prototype.begin = function () {
return this.connection.query('BEGIN');
};
TransactionStatement.prototype.start = function () {
return this.connection.query('START TRANSACTION');
};
TransactionStatement.prototype.commit = function () {
return this.connection.query('COMMIT');
};
TransactionStatement.prototype.rollback = function () {
return this.connection.query('ROLLBACK');
};
return TransactionStatement;
}());
exports.default = TransactionStatement;
//# sourceMappingURL=TransactionStatement.js.map