From d9edc3815068dc4b82df26fc14fe9797abee9752 Mon Sep 17 00:00:00 2001 From: Conrad Ludgate Date: Tue, 31 Oct 2023 16:28:30 +0000 Subject: [PATCH] add columns to rowstream --- tokio-postgres/src/query.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tokio-postgres/src/query.rs b/tokio-postgres/src/query.rs index e2b3aaa39..80c5f65d5 100644 --- a/tokio-postgres/src/query.rs +++ b/tokio-postgres/src/query.rs @@ -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.