Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function performQuery(pgClient: PoolClient, sqlQuery: SQLQuery) {
// TODO: look into rowMode = 'array'
const { text, values } = sql.compile(sqlQuery);
if (debugSql.enabled) debugSql(text);
return pgClient.query(text, values);
}