UNPKG

allex_mssqlexecutorlib

Version:

AllexJS lib for executing queries against the MS SQL Server

17 lines (14 loc) 573 B
function createSyncSingleQuerySpecialization (execlib, Base){ 'use strict'; var lib = execlib.lib; function SyncSingleQueryJob (executor, query, options, defer) { Base.call(this, executor, query, options, defer); } lib.inherit(SyncSingleQueryJob, Base); SyncSingleQueryJob.prototype.onResult = function (res) { this.destroyable.maybeLogComment(this.destroyable.prepareForLog('Done in '+(lib.now()-this.startTime)/1000+' sec')); this.resolve(res.recordset); }; return SyncSingleQueryJob; } module.exports = createSyncSingleQuerySpecialization;