Skip to main content

RemoteSinkExt

Trait RemoteSinkExt 

Source
pub trait RemoteSinkExt: RemoteSink {
    // Provided method
    fn write_rows<'life0, 'life1, 'life2, 'async_trait, T>(
        &'life0 self,
        table: &'life1 str,
        rows: &'life2 [T],
    ) -> Pin<Box<dyn Future<Output = Result<(), DbkitError>> + Send + 'async_trait>>
       where T: Serialize + Sync + 'async_trait,
             Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
}
Expand description

Typed writing for any RemoteSink.

Provided Methods§

Source

fn write_rows<'life0, 'life1, 'life2, 'async_trait, T>( &'life0 self, table: &'life1 str, rows: &'life2 [T], ) -> Pin<Box<dyn Future<Output = Result<(), DbkitError>> + Send + 'async_trait>>
where T: Serialize + Sync + 'async_trait, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Serialize rows to Arrow (via serde_arrow) and append them to table.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<S: RemoteSink + ?Sized> RemoteSinkExt for S

Available on crate feature _read-typed only.