pub trait SqlQueryResultFetch<T> {
// Required methods
fn fetch<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<T, TgError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn fetch_for<'life0, 'async_trait>(
&'life0 mut self,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = Result<T, TgError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
fetch method for SqlQueryResult.
Required Methods§
Sourcefn fetch<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<T, TgError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<T, TgError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a value on the column of the cursor position.
You can only take once to retrieve the value on the column.
This method can only be used while the transaction is alive.
Sourcefn fetch_for<'life0, 'async_trait>(
&'life0 mut self,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = Result<T, TgError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_for<'life0, 'async_trait>(
&'life0 mut self,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = Result<T, TgError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a value on the column of the cursor position.
You can only take once to retrieve the value on the column.
This method can only be used while the transaction is alive.