UNPKG

pg-promise

Version:
19 lines (15 loc) 375 B
'use strict'; ///////////////////////////// // Special Query type; function SpecialQuery(type) { this.isStream = type === 'stream'; this.isResult = type === 'result'; } var cache = { resultQuery: new SpecialQuery('result'), streamQuery: new SpecialQuery('stream') }; module.exports = { SpecialQuery: SpecialQuery, cache: cache };