pub struct ConnectionsApi<'a> { /* private fields */ }Expand description
Connections resource handle. Wraps apis::connections_api.
Implementations§
Source§impl<'a> ConnectionsApi<'a>
impl<'a> ConnectionsApi<'a>
Sourcepub async fn create(
&self,
request: CreateConnectionRequest,
) -> Result<CreateConnectionResponse, Error<CreateConnectionError>>
pub async fn create( &self, request: CreateConnectionRequest, ) -> Result<CreateConnectionResponse, Error<CreateConnectionError>>
Create a new connection.
Sourcepub async fn get(
&self,
connection_id: &str,
) -> Result<GetConnectionResponse, Error<GetConnectionError>>
pub async fn get( &self, connection_id: &str, ) -> Result<GetConnectionResponse, Error<GetConnectionError>>
Fetch a connection by id.
Sourcepub async fn list(
&self,
) -> Result<ListConnectionsResponse, Error<ListConnectionsError>>
pub async fn list( &self, ) -> Result<ListConnectionsResponse, Error<ListConnectionsError>>
List connections.
Sourcepub async fn delete(
&self,
connection_id: &str,
) -> Result<(), Error<DeleteConnectionError>>
pub async fn delete( &self, connection_id: &str, ) -> Result<(), Error<DeleteConnectionError>>
Delete a connection by id.
Sourcepub async fn check_health(
&self,
connection_id: &str,
) -> Result<ConnectionHealthResponse, Error<CheckConnectionHealthError>>
pub async fn check_health( &self, connection_id: &str, ) -> Result<ConnectionHealthResponse, Error<CheckConnectionHealthError>>
Check the health of a connection.
Sourcepub async fn purge_cache(
&self,
connection_id: &str,
) -> Result<(), Error<PurgeConnectionCacheError>>
pub async fn purge_cache( &self, connection_id: &str, ) -> Result<(), Error<PurgeConnectionCacheError>>
Purge the entire cache for a connection.
Sourcepub async fn get_table_profile(
&self,
connection_id: &str,
schema: &str,
table: &str,
) -> Result<TableProfileResponse, Error<GetTableProfileError>>
pub async fn get_table_profile( &self, connection_id: &str, schema: &str, table: &str, ) -> Result<TableProfileResponse, Error<GetTableProfileError>>
Get a profile for a managed table.
Sourcepub async fn load_managed_table(
&self,
connection_id: &str,
schema: &str,
table: &str,
request: LoadManagedTableRequest,
) -> Result<LoadManagedTableResponse, Error<LoadManagedTableError>>
pub async fn load_managed_table( &self, connection_id: &str, schema: &str, table: &str, request: LoadManagedTableRequest, ) -> Result<LoadManagedTableResponse, Error<LoadManagedTableError>>
Load (materialize) a managed table.
Sourcepub async fn delete_managed_table(
&self,
connection_id: &str,
schema: &str,
table: &str,
) -> Result<(), Error<DeleteManagedTableError>>
pub async fn delete_managed_table( &self, connection_id: &str, schema: &str, table: &str, ) -> Result<(), Error<DeleteManagedTableError>>
Delete a managed table.
Sourcepub async fn purge_table_cache(
&self,
connection_id: &str,
schema: &str,
table: &str,
) -> Result<(), Error<PurgeTableCacheError>>
pub async fn purge_table_cache( &self, connection_id: &str, schema: &str, table: &str, ) -> Result<(), Error<PurgeTableCacheError>>
Purge the cache for a single table.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ConnectionsApi<'a>
impl<'a> !UnwindSafe for ConnectionsApi<'a>
impl<'a> Freeze for ConnectionsApi<'a>
impl<'a> Send for ConnectionsApi<'a>
impl<'a> Sync for ConnectionsApi<'a>
impl<'a> Unpin for ConnectionsApi<'a>
impl<'a> UnsafeUnpin for ConnectionsApi<'a>
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