/// commit tx,and return conn,return <u64(tx num),Error>
commit tx,and return conn,return 
commit tx and return conn return
pub async fn commit(&self, context_id: &str) -> Result<String, Error> {
        if context_id.is_empty() {
            return Err(Error::from("[rbatis] context_id can not be empty"));
        }
        if !self.tx_manager.is_tx_prifix_id(context_id) {
            return Err(Error::from(format!(
                "[rbatis] context_id: {} must be start with '{}', for example: {}{}",
                &self.tx_manager.tx_prefix, &self.tx_manager.tx_prefix, context_id, context_id
            )));
        }
        let result = self.tx_manager.commit(context_id).await?;
        return Ok(result);
    }
pub async fn commit ( & self , context_id : & str ) -> Result < String , Error > { if context_id . is_empty ( ) { return Err ( Error :: from ( " " ) ) ; } if ! self . tx_manager . is_tx_prifix_id ( context_id ) { return Err ( Error :: from ( format ! ( " " self tx_manager tx_prefix self tx_manager tx_prefix context_id context_id ) ) ) ; } let result = self . tx_manager . commit ( context_id ) . await ? ; return Ok ( result ) ; }
commit tx,and return conn,return <u64(tx num),Error>
commit tx and return conn return <u64 ( tx num ) Error >
&self
context_id
&str