Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 5316117

Browse files
conradludgatepimeys
authored andcommitted
add columns to rowstream
1 parent 0582732 commit 5316117

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tokio-postgres/src/query.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,11 @@ impl Stream for RowStream {
354354
}
355355

356356
impl RowStream {
357+
/// Returns information about the columns of data in the row.
358+
pub fn columns(&self) -> &[Column] {
359+
self.statement.columns()
360+
}
361+
357362
/// Returns the command tag of this query.
358363
///
359364
/// This is only available after the stream has been exhausted.

0 commit comments

Comments
 (0)