The row object can be used as an Array or as an object:
constrs = awaitclient.execute("SELECT name, title FROM books"); for (constrowinrs.rows) { // Get the value from column `name` console.log(row.name); // Get the value from second column (`title`) console.log(row[1]); }
Row returned from an SQL statement.
The row object can be used as an
Array
or as an object: