Trait convergence::engine::Portal[][src]

pub trait Portal: Send + Sync {
#[must_use]    fn fetch<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        batch: &'life1 mut DataRowBatch
    ) -> Pin<Box<dyn Future<Output = Result<(), ErrorResponse>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

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

#[must_use]fn fetch<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    batch: &'life1 mut DataRowBatch
) -> Pin<Box<dyn Future<Output = Result<(), ErrorResponse>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

Fetches the contents of the portal into a DataRowBatch.

Loading content...

Implementors

Loading content...