pub trait Transaction<'a>: Send + Sync {
    // Required methods
    fn query<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        query: &'life1 str,
        params: &'life2 [&'life3 Vec<u8>],
    ) -> Pin<Box<dyn Future<Output = Result<Vec<KeyValue>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn commit<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait;
    // Provided method
    fn execute<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        query: &'life1 str,
        params: &'life2 [&'life3 Vec<u8>],
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait { ... }
}Expand description
Transaction query executor for rds. It can execute queries in transaction or commit the transaction.