Skip to content

Commit

Permalink
add columns to rowstream
Browse files Browse the repository at this point in the history
  • Loading branch information
conradludgate committed Oct 31, 2023
1 parent be8db3d commit d9edc38
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tokio-postgres/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,11 @@ impl Stream for RowStream {
}

impl RowStream {
/// Returns information about the columns of data in the row.
pub fn columns(&self) -> &[Column] {
self.statement.columns()
}

/// Returns the command tag of this query.
///
/// This is only available after the stream has been exhausted.
Expand Down

0 comments on commit d9edc38

Please sign in to comment.