File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -528,7 +528,7 @@ impl Format {
528
528
/// # Warning
529
529
///
530
530
/// The underlying connection may not be used while a `CopyOutReader` exists.
531
- /// Any calls to the connection with panic.
531
+ /// Any attempt to do so will panic.
532
532
pub struct CopyOutReader < ' a > {
533
533
conn : RefMut < ' a , InnerConnection > ,
534
534
format : Format ,
@@ -554,6 +554,11 @@ impl<'a> CopyOutReader<'a> {
554
554
& self . column_formats
555
555
}
556
556
557
+ /// Returns session info for the associated connection.
558
+ pub fn session_info < ' b > ( & ' b self ) -> SessionInfo < ' b > {
559
+ SessionInfo :: new ( & * self . conn )
560
+ }
561
+
557
562
/// Consumes the `CopyOutReader`, throwing away any unread data.
558
563
///
559
564
/// Functionally equivalent to `CopyOutReader`'s `Drop` implementation,
You can’t perform that action at this time.
0 commit comments