Skip to content

Commit 7c221d7

Browse files
authored
Merge pull request blackbeam#264 from web3creator/master
add ResultSetStream types export
2 parents 02e47d9 + 4023e5e commit 7c221d7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/queryable/query_result/result_set_stream.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,16 @@ impl<'r, 'a: 'r, 't: 'a, T, P> ResultSetStream<'r, 'a, 't, T, P> {
102102
.unwrap_or_default()
103103
}
104104

105+
/// See [`QueryResult::columns_ref`].
106+
pub fn columns_ref(&self) -> &[Column] {
107+
&self.columns[..]
108+
}
109+
110+
/// See [`QueryResult::columns`].
111+
pub fn columns(&self) -> Arc<[Column]> {
112+
self.columns.clone()
113+
}
114+
105115
/// See [`Conn::info`][1].
106116
///
107117
/// [1]: crate::Conn::info

0 commit comments

Comments
 (0)