yalento
Version:
An awesome integration of Google Firebase for Angular and Node
13 lines (12 loc) • 424 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IsMatch = void 0;
//eslint-disable-next-line @typescript-eslint/no-var-requires
const alasql = require('alasql');
class IsMatch {
static sql(whereStatement, object) {
const result = alasql('SELECT COUNT(*) as c FROM ? WHERE ' + whereStatement, [[object]]);
return result[0]['c'] > 0;
}
}
exports.IsMatch = IsMatch;