Struct rbatis::executor::RBatisTxExecutor[][src]

pub struct RBatisTxExecutor<'a> {
    pub conn: DBTx<'a>,
    pub rb: &'a Rbatis,
}

Fields

conn: DBTx<'a>rb: &'a Rbatis

Implementations

defer an func for example: tx.defer(|tx| {});

defer and use future method for example: tx.defer_async(|tx| async { tx.rollback().await; });

Methods from Deref<Target = DBTx<'a>>

Trait Implementations

save by wrapper

save one entity to database

save batch makes many value into only one sql. make sure your data do not too long! Read more

save batch slice makes many value into many sql. make sure your slice_len do not too long! slice_len = 0 : save all data slice_len != 0 : save data with slice_len everytime until save all data Read more

remove database record by a wrapper

remove database record by id

remove batch id for Example : rb.remove_batch_by_column::(&[“1”.to_string(),“2”.to_string()]).await; [rbatis] Exec ==> delete from biz_activity where id IN ( ? , ? ) Read more

update_by_wrapper skips: use &[Skip::Value(&bson::Bson::Null), Skip::Column(“id”), Skip::Column(column)] will skip id column and null value param Read more

update database record by id update sql will be skip null value and id column Read more

remove batch database record by args

fetch database record by a wrapper

count database record

count database record by a wrapper

fetch database record by value

fetch database record list by a wrapper

fetch database record list for all

fetch database record list by a id array

fetch page database record list by a wrapper

fetch page result(prepare sql)

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Performs the conversion.

bind arg into DBQuery

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.