New query assoc native
This commit is contained in:
@@ -917,8 +917,18 @@ function freeDatabaseQuery(dbQuery) {
|
|||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function fetchQueryAssoc(dbQuery) {
|
async function fetchQueryAssoc(dbConnection, dbQueryString) {
|
||||||
return dbQuery.fetchAssoc();
|
//logToConsole(LOG_DEBUG, dbQueryString);
|
||||||
|
let dbQuery = dbConnection.query(dbQueryString);
|
||||||
|
let assocArray = [];
|
||||||
|
let dbAssoc = null;
|
||||||
|
|
||||||
|
while (dbAssoc = dbQuery.fetchAssoc()) {
|
||||||
|
assocArray.push(dbAssoc);
|
||||||
|
//logToConsole(LOG_DEBUG | LOG_WARN, dbAssoc["svr_id"]);
|
||||||
|
}
|
||||||
|
|
||||||
|
return assocArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user