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
sourceimpl<T: Transport> SqlDbSender<T>
impl<T: Transport> SqlDbSender<T>
pub fn set_timeout(&self, interval: Duration)
Trait Implementations
sourceimpl<T: Debug + Transport> Debug for SqlDbSender<T>
impl<T: Debug + Transport> Debug for SqlDbSender<T>
sourceimpl<T: Transport + Sync + Send> SqlDb for SqlDbSender<T>
impl<T: Transport + Sync + Send> SqlDb for SqlDbSender<T>
sourcefn 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
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: '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
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Execute an sql statement
sourcefn 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
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: '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
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Perform select query on database, returning all result rows
sourcefn 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> where
T: Sync,
impl<T> Unpin for SqlDbSender<T> where
T: Unpin,
impl<T> UnwindSafe for SqlDbSender<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more