macro_rules! raw_sql { ($fn_name:ident($($param_key:ident:$param_type:ty$(,)?)*) -> $return_type:ty => $sql_file:expr) => { ... }; }
Expand description
use macro wrapper #[sql] for example:
use rbatis::executor::Executor;
rbatis::raw_sql!(test_same_id(rb: &dyn Executor, id: &u64) -> Result<rbs::Value, rbatis::Error> =>
"select * from table where id = ?"
);