Download Latest Version v4.7.2 source code.tar.gz (461.6 kB)
Email in envelope

Get an email when there's a new version of Rbatis

Home / v4.7.2
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-02-11 1.2 kB
v4.7.2 source code.tar.gz 2026-02-11 461.6 kB
v4.7.2 source code.zip 2026-02-11 568.1 kB
Totals: 3 Items   1.0 MB 0

what changes?

  • remove #[html_sql] for mod
  • add Page support for #[html_sql] for struct for example:

    :::rust

    [rbatis::html_sql("example/example.html")]

    impl Activity { /// Paginated query - automatically detected by return type Page<Activity> /// Maps to <select id="select_by_page"> in HTML /// The macro automatically generates pagination logic using PageIntercept pub async fn select_by_page( rb: &dyn Executor, page_req: &dyn PageRequest, name: &str, dt: Option<DateTime>, ) -> rbatis::Result<rbatis::Page\<Activity>> { impled!() } }

    :::html <select id="select_by_page"> select * from activity <where> <if test="name != ''"> and name like #{name} </if> <if test="dt != null"> and create_time < #{dt} </if> </where> </select>

Source: README.md, updated 2026-02-11