Skip to content

Commit

Permalink
add ResultSetStream types export
Browse files Browse the repository at this point in the history
  • Loading branch information
web3creator committed Nov 6, 2023
1 parent 02e47d9 commit fcb25d9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/queryable/query_result/result_set_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ impl<'r, 'a: 'r, 't: 'a, T, P> ResultSetStream<'r, 'a, 't, T, P> {
.unwrap_or_default()
}

/// Returns type result set.
///
/// In order to know the type of the returned result in advance, it is helpful to process the type conversion of the data.
pub fn get_columns(&self) -> Arc<[Column]> {
self.columns.clone()
}


/// See [`Conn::info`][1].
///
/// [1]: crate::Conn::info
Expand Down

0 comments on commit fcb25d9

Please sign in to comment.