Crate mybatis_util

Source

Modules§

bencher
error_util
impled
print_util
string_util
table_util
time_util

Macros§

as_bson
bench
field_name
Used to simulate enumerations to improve code maintainability. this is return &str data for example: let name=field_name!(BizActivity.id); rb.new_wrapper().eq(field_name!(BizActivity.id),“1”)
impl_field_name_method
will create pub fn field_name()->&str method for example: #[crud_table] #[derive(Clone, Debug)] pub struct BizActivity { pub id: Option, pub name: Option, pub delete_flag: Option, } impl_field_name_method!(BizActivity{id,name,delete_flag});
impled
mybatis_sql/py_sql impled
make_table
Simplifies table construction by relying on the Default trait
make_table_field_map
Gets the HashMap collection of member attributes of the target Vec vec_ref: vec reference,field_name: the field name of the structure
make_table_field_map_btree
Gets the HashMap collection of member attributes of the target Vec vec_ref: vec reference,field_name: the field name of the structure
make_table_field_vec
take the target Vec member attribute Vec collection vec_ref: a reference to vec, field_name: the field name of the structure