We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e99874 commit 20ce974Copy full SHA for 20ce974
1 file changed
src/stmt.rs
@@ -528,7 +528,7 @@ impl Format {
528
/// # Warning
529
///
530
/// The underlying connection may not be used while a `CopyOutReader` exists.
531
-/// Any calls to the connection with panic.
+/// Any attempt to do so will panic.
532
pub struct CopyOutReader<'a> {
533
conn: RefMut<'a, InnerConnection>,
534
format: Format,
@@ -554,6 +554,11 @@ impl<'a> CopyOutReader<'a> {
554
&self.column_formats
555
}
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
+
562
/// Consumes the `CopyOutReader`, throwing away any unread data.
563
564
/// Functionally equivalent to `CopyOutReader`'s `Drop` implementation,
0 commit comments