Skip to content

Commit

Permalink
Style ResultSetStream::{columns, columns_ref} in accordance with the …
Browse files Browse the repository at this point in the history
…rest of the project
  • Loading branch information
blackbeam committed Nov 7, 2023
1 parent fcb25d9 commit 4023e5e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/queryable/query_result/result_set_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,15 @@ 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 [`QueryResult::columns_ref`].
pub fn columns_ref(&self) -> &[Column] {
&self.columns[..]
}

/// See [`QueryResult::columns`].
pub fn columns(&self) -> Arc<[Column]> {
self.columns.clone()
}

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

0 comments on commit 4023e5e

Please sign in to comment.