-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added rowsAffected to PostgreSQLResult (#143)
* Added rowsAffected to PostgreSQLResult which is returned by `PostgreSQLExecutionContext.query` Currently `PostgreSQLExecutionContext.query` does not have a way to know how many rows did that particular query affected. The only way to get that information is to use `PostgreSQLExecutionContext.execute`. Unfortunately `execute` uses slower, less efficient encoding to talk to the PostgreSQL server and does not support all data types that `query` supports. This allows you to use `PostgreSQLExecutionContext.query` for INSERT, UPDATE, DELETE statements and get the affected row count. * Renamed rowsAffected -> affectedRowCount Asked in #143 (comment) * dartfmt Co-authored-by: Arturas Slajus <[email protected]>
- Loading branch information
Showing
3 changed files
with
27 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters