pub struct SimpleQueryResult<'postgres_client, F: ConnectionFactory> { /* private fields */ }Implementations§
Source§impl<'postgres_client, F: ConnectionFactory> SimpleQueryResult<'postgres_client, F>
impl<'postgres_client, F: ConnectionFactory> SimpleQueryResult<'postgres_client, F>
pub async fn next_result_set<'query_result>( &'query_result mut self, ) -> Result<QueryResultSet<'postgres_client, 'query_result, F>, ElefantClientError>
pub async fn collect_to_vec<T>(self) -> Result<Vec<T>, ElefantClientError>where
T: FromSqlRowOwned,
Sourcepub async fn collect_next_to_vec<T: FromSqlRowOwned>(
&mut self,
) -> Result<Vec<T>, ElefantClientError>
pub async fn collect_next_to_vec<T: FromSqlRowOwned>( &mut self, ) -> Result<Vec<T>, ElefantClientError>
Advance to the next result set and collect all rows into a Vec<T>.
Returns BatchQueryUnexpectedEnd if the query has already completed
(no more result sets available).
pub async fn collect_single_column_to_vec<T>(
self,
) -> Result<Vec<T>, ElefantClientError>where
T: FromSqlTextOwned,
Auto Trait Implementations§
impl<'postgres_client, F> !Send for SimpleQueryResult<'postgres_client, F>
impl<'postgres_client, F> !Sync for SimpleQueryResult<'postgres_client, F>
impl<'postgres_client, F> !UnwindSafe for SimpleQueryResult<'postgres_client, F>
impl<'postgres_client, F> Freeze for SimpleQueryResult<'postgres_client, F>where
QueryResultBase<'postgres_client, F>: Freeze,
impl<'postgres_client, F> RefUnwindSafe for SimpleQueryResult<'postgres_client, F>where
QueryResultBase<'postgres_client, F>: RefUnwindSafe,
impl<'postgres_client, F> Unpin for SimpleQueryResult<'postgres_client, F>where
QueryResultBase<'postgres_client, F>: Unpin,
impl<'postgres_client, F> UnsafeUnpin for SimpleQueryResult<'postgres_client, F>where
QueryResultBase<'postgres_client, F>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more