Struct wasmcloud_interface_sqldb::SqlDbSender
source · pub struct SqlDbSender<T: Transport> { /* private fields */ }
Expand description
SqlDbSender sends messages to a SqlDb service SqlDb - SQL Database connections To use this capability, the actor must be linked with the capability contract “wasmcloud:sqldb” client for sending SqlDb messages
Implementations§
source§impl<T: Transport> SqlDbSender<T>
impl<T: Transport> SqlDbSender<T>
pub fn set_timeout(&self, interval: Duration)
Trait Implementations§
source§impl<T: Clone + Transport> Clone for SqlDbSender<T>
impl<T: Clone + Transport> Clone for SqlDbSender<T>
source§fn clone(&self) -> SqlDbSender<T>
fn clone(&self) -> SqlDbSender<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Transport + Sync + Send> SqlDb for SqlDbSender<T>
impl<T: Transport + Sync + Send> SqlDb for SqlDbSender<T>
source§fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 Statement
) -> Pin<Box<dyn Future<Output = RpcResult<ExecuteResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 Context, arg: &'life2 Statement ) -> Pin<Box<dyn Future<Output = RpcResult<ExecuteResult>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
Execute an sql statement
source§fn query<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 Statement
) -> Pin<Box<dyn Future<Output = RpcResult<QueryResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn query<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 Context, arg: &'life2 Statement ) -> Pin<Box<dyn Future<Output = RpcResult<QueryResult>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
Perform select query on database, returning all result rows
source§fn contract_id() -> &'static str
fn contract_id() -> &'static str
returns the capability contract id for this interface
Auto Trait Implementations§
impl<T> RefUnwindSafe for SqlDbSender<T>where T: RefUnwindSafe,
impl<T> Send for SqlDbSender<T>
impl<T> Sync for SqlDbSender<T>
impl<T> Unpin for SqlDbSender<T>where T: Unpin,
impl<T> UnwindSafe for SqlDbSender<T>where T: UnwindSafe,
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