You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
675 B
JavaScript
23 lines
675 B
JavaScript
export const Master = function (a,func) {
|
|
if( Array.isArray(a) ){
|
|
var data = {};
|
|
var obj = a.map(function(s){
|
|
if(typeof s === 'object'){
|
|
return s.qr;
|
|
}
|
|
return ` SELECT * FROM ${s} `;
|
|
}).join("[;]");
|
|
AuditDevQuery(obj, function(ax){
|
|
ax.forEach(function(e,i) {
|
|
if ( typeof a[i] === 'object' ){
|
|
data[ a[i].name ] = e;
|
|
}else{
|
|
data[a[i]] = e;
|
|
}
|
|
});
|
|
if(func != undefined && typeof func === 'function'){
|
|
func(data, ax);
|
|
}
|
|
});
|
|
}
|
|
}
|