Crate rbatis

Source

Re-exports§

pub extern crate dark_std;
pub extern crate rbatis_codegen;
pub extern crate rbdc;
pub use decode::*;
pub use error::*;
pub use plugin::*;
pub use rbatis::*;

Modules§

crud
crud_traits
decode
Types and traits for decoding values from the database.
error
executor
plugin
rbatis
utils

Macros§

crud
PySql: gen select*,update*,insert*,delete* … methods
field_key
Used to simulate enumerations to improve code maintainability. this is return &str data for example:
field_name
Used to simulate enumerations to improve code maintainability. this is return &str data for example:
htmlsql
use macro wrapper #[html_sql] for example query rbs::Value:
htmlsql_select_page
impl html_sql select page.
impl_delete
PySql: gen sql = DELETE FROM table_name WHERE some_column=some_value;
impl_insert
PySql: gen sql => INSERT INTO table_name (column1,column2,column3,…) VALUES (value1,value2,value3,…);
impl_select
PySql: gen sql => SELECT (column1,column2,column3,…) FROM table_name (column1,column2,column3,…) *** WHERE ***
impl_select_page
pysql impl_select_page
impl_update
PySql: gen sql = UPDATE table_name SET column1=value1,column2=value2,… WHERE some_column=some_value;
impled
html_sql/py_sql impled
make_tableDeprecated
make_table_field_mapDeprecated
make_table_field_map_btreeDeprecated
make_table_field_vecDeprecated
pysql
use macro wrapper #[py_sql] for query example:
pysql_select_page
impl py_sql select page.
raw_sql
use macro wrapper #[sql] for example:
table
Simplifies table construction by relying on the Default trait
table_field_btree
Gets the BtreeMap collection of member attributes of the target Vec for example:
table_field_map
Gets the HashMap collection of member attributes of the target Vec for example:
table_field_set
take the target Vec member attribute Vec collection for example:
table_field_vec
take the target Vec member attribute Vec collection for example:

Structs§

DefaultPool

Attribute Macros§

async_trait
html_sql
html sql create macro,this macro use RB.py_query and RB.py_exec for example:
py_sql
py sql create macro,this macro use RB.py_query and RB.py_exec
snake_name
sql
auto create sql macro,this macro use RB.query_prepare and RB.exec_prepare for example: