This information is not exposed in the Trino Python Client.
It would be nice to expose this information.
DBAPI spec also mentions the following:
.rowcount
This read-only attribute specifies the number of rows that the last .execute*() produced (for DQL statements like SELECT) or affected (for DML statements like UPDATE or INSERT). [9]
The attribute is -1 in case no .execute*() has been performed on the cursor or the rowcount of the last operation is cannot be determined by the interface. [7]
Describe the feature
Row count is exposed by the Trino engine when doing DML queries:
This information is not exposed in the Trino Python Client.
It would be nice to expose this information.
DBAPI spec also mentions the following:
Describe alternatives you've considered
No response
Are you willing to submit PR?