-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qr: Introduce QueryResult::into_rows_result_with_recovery
This method converts QueryResult to QueryRowsResult, but recovers `self` when conversion fails. Note: I decided to derive Clone on RawMetadataAndRawRows not to introduce analogous `RawMetadataAndRawRows::deserialize_metadata_with_recovery` method. It's fine for 2 reasons: - RawMetadataAndRawRows does not belong to public API - Cloning is very cheap - 3 of the fields are Copy, and clone of Bytes and Arc is cheap.
- Loading branch information
Showing
2 changed files
with
87 additions
and
1 deletion.
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