Macro rbatis::impl_insert
source · [−]macro_rules! impl_insert {
($table:ty{}) => { ... };
($table:ty{},$table_name:expr) => { ... };
}
Expand description
gen sql => INSERT INTO table_name (column1,column2,column3,…) VALUES (value1,value2,value3,…);
example:
#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)]
pub struct BizActivity{ pub id: Option<String> }
rbatis::impl_insert!(BizActivity{});