Skip to content

Commit b502452

Browse files
committed
add columns to rowstream
1 parent a39aaf6 commit b502452

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
@@ -351,6 +351,11 @@ impl Stream for RowStream {
351351
}
352352

353353
impl RowStream {
354+
/// Returns information about the columns of data in the row.
355+
pub fn columns(&self) -> &[Column] {
356+
self.statement.columns()
357+
}
358+
354359
/// Returns the command tag of this query.
355360
///
356361
/// This is only available after the stream has been exhausted.

0 commit comments

Comments
 (0)