Crate rbatis

Source

Re-exports§

Modules§

Macros§

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

Structs§

Attribute Macros§

  • html sql create macro,this macro use RB.py_query and RB.py_exec for example:
  • py sql create macro,this macro use RB.py_query and RB.py_exec
  • auto create sql macro,this macro use RB.query_prepare and RB.exec_prepare for example: