Rust Compile Time ORM robustness,async, pure Rust Dynamic SQL
APACHE-2.0 License
Bot releases are hidden (Show)
Published by zhuxiujia about 2 years ago
v4.0.9
//crud!(BizActivity {},"biz_activity");
impl_select_page!(BizActivity{select_page_by_name(name:&str) =>"
if name != null && name != '':
`where name != #{name}`
if name == '':
`where name != ''`"},"biz_activity");
Published by zhuxiujia about 2 years ago
v4.0.8
Published by zhuxiujia about 2 years ago
v4.0.7
Published by zhuxiujia about 2 years ago
v4.0.6
Published by zhuxiujia about 2 years ago
v4.0.4
Published by zhuxiujia about 2 years ago
v4.0.3
Published by zhuxiujia about 2 years ago
v4.0.2
Published by zhuxiujia about 2 years ago
v4.0.0
``
support?
placeholderPublished by zhuxiujia about 2 years ago
v3.1.16
Published by zhuxiujia over 2 years ago
v3.1.15
Mysql and SQLite use encode Option::Null. As for Pg database, rbatis has a PgNull structure built in the bottom layer. When Bson is Null, the type carried by encode PgNull structure is Pg UNKNOWN. That solves the problem
Published by zhuxiujia over 2 years ago
v3.1.14
Published by zhuxiujia over 2 years ago
v3.1.13
Published by zhuxiujia over 2 years ago
v3.1.12
Published by zhuxiujia over 2 years ago
v3.1.11
mut rb: RbatisExecutor<'_, '_>,
///select page must have '?:&PageRequest' arg and return 'Page<?>'
#[html_sql("example/example.html")]
async fn select_by_condition(mut rb: RbatisExecutor<'_, '_>, page_req: &PageRequest, name: &str, dt: &rbatis::DateTimeNative) -> Page<BizActivity> { impled!() }
#[tokio::test]
pub async fn test_select_by_condition() {
fast_log::init(fast_log::config::Config::new().console());
//use static ref
let rb = init_sqlite().await;
let a = select_by_condition( rb.as_executor(), &PageRequest::new(1, 10), "test", &rbatis::DateTimeNative::now())
.await
.unwrap();
println!("{:?}", a);
}
Published by zhuxiujia over 2 years ago
v3.1.10
Published by zhuxiujia over 2 years ago
v3.1.9
Published by zhuxiujia over 2 years ago
v3.1.7
rbatis::DateTimeNative
and rbatis::DateTimeUtc
Published by zhuxiujia over 2 years ago
v3.1.6
Published by zhuxiujia over 2 years ago
v3.1.5