pub trait Portal: Send + Sync {
    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
; }
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

Fetches the contents of the portal into a DataRowBatch.

Implementors