Trait convergence::engine::Portal
source · pub trait Portal: Send + Sync {
// Required method
fn fetch<'life0, 'life1, 'async_trait>(
&'life0 mut self,
batch: &'life1 mut DataRowBatch
) -> Pin<Box<dyn Future<Output = Result<(), ErrorResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
A Postgres portal. Portals represent a prepared statement with all parameters specified.
See Postgres’ protocol docs regarding the extended query overview for more details.
Required Methods§
sourcefn fetch<'life0, 'life1, 'async_trait>(
&'life0 mut self,
batch: &'life1 mut DataRowBatch
) -> Pin<Box<dyn Future<Output = Result<(), ErrorResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fetch<'life0, 'life1, 'async_trait>(
&'life0 mut self,
batch: &'life1 mut DataRowBatch
) -> Pin<Box<dyn Future<Output = Result<(), ErrorResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetches the contents of the portal into a DataRowBatch.