rows affected info for postgresql

This commit is contained in:
Jan Prochazka 2022-09-08 11:04:43 +02:00
parent b7c8a60c19
commit 5eda39cb62

View File

@ -109,6 +109,16 @@ const drivers = driverBases.map(driverBase => ({
});
query.on('end', () => {
const { command, rowCount } = query._result || {};
if (command != 'SELECT' && _.isNumber(rowCount)) {
options.info({
message: `${rowCount} rows affected`,
time: new Date(),
severity: 'info',
});
}
if (!wasHeader) {
columns = extractPostgresColumns(query._result);
if (columns && columns.length > 0) {