Crate rbatis[−][src]
Re-exports
pub extern crate rbatis_sql; | |
pub use rbatis_core as core; |
Modules
crud | |
executor | |
plugin | |
rbatis | |
sql | |
utils | |
wrapper |
Macros
bench | |
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 |
push_index | |
sql_index |
Structs
Value | proxy serde_json::Value struct,support Deserializer, Serializer use Cow Optimize unnecessary clones This structure has a certain amount of computing power |
Enums
DriverType | |
Error | A generic error that represents all the ways a method can fail inside of rbatis::core. |
Traits
AsProxy | convert serde_json::Value to Value |
StmtConvert | the stmt replace str convert |
Type Definitions
Result | A specialized |
Attribute Macros
crud_table | CRUD table,You can define functionality using the following properties
#crud_table
#[crud_table(table_name:“biz_activity”)]
#[crud_table(table_name:“biz_activity” | table_columns:“id,name,version,delete_flag” | formats_pg:“id:{}::uuid,name:{}::string”)]
pub struct BizActivity {
pub id: Option |
expr | |
html_sql | html sql create macro,this macro use RB.py_fetch and RB.py_exec for example: |
py_sql | py sql create macro,this macro use RB.py_fetch and RB.py_exec for example: |
rb_html | |
rb_py | support py_sql fn convert |
sql | auto create sql macro,this macro use RB.fetch_prepare and RB.exec_prepare for example: #[sql(RB, “select * from biz_activity where id = ?”)] async fn select(name: &str) -> BizActivity {} |
Derive Macros
CRUDTable |