pub struct SyncClient { /* private fields */ }Expand description
Client for syncing data between local DuckDB and the HatiData control plane.
Implementations§
Source§impl SyncClient
impl SyncClient
Sourcepub async fn push_table(
&self,
table_name: &str,
parquet_data: Vec<u8>,
) -> Result<SyncResponse>
pub async fn push_table( &self, table_name: &str, parquet_data: Vec<u8>, ) -> Result<SyncResponse>
Push a table’s Parquet data to the remote control plane.
Calls POST /v1/sync/push with multipart form data.
Sourcepub async fn pull_schema(&self) -> Result<Vec<TableSchema>>
pub async fn pull_schema(&self) -> Result<Vec<TableSchema>>
Pull the list of table schemas from the remote control plane.
Auto Trait Implementations§
impl Freeze for SyncClient
impl !RefUnwindSafe for SyncClient
impl Send for SyncClient
impl Sync for SyncClient
impl Unpin for SyncClient
impl !UnwindSafe for SyncClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more