22 stable releases

4.5.24 Nov 8, 2024
4.5.20 Sep 25, 2024
4.5.18 Jul 10, 2024
4.5.13 Mar 14, 2024
0.1.13 Nov 17, 2022

#517 in Database interfaces

Download history 591/week @ 2024-08-17 553/week @ 2024-08-24 588/week @ 2024-08-31 614/week @ 2024-09-07 449/week @ 2024-09-14 1157/week @ 2024-09-21 602/week @ 2024-09-28 1173/week @ 2024-10-05 644/week @ 2024-10-12 974/week @ 2024-10-19 537/week @ 2024-10-26 706/week @ 2024-11-02 428/week @ 2024-11-09 449/week @ 2024-11-16 631/week @ 2024-11-23 847/week @ 2024-11-30

2,513 downloads per month
Used in 35 crates (25 directly)

Apache-2.0

70KB
2K SLoC

rbs

  • rbs is rbatis's impl serde serialize trait crates.
  • The rbs serialization framework is used to serialize parameters and deserialize sql result sets, and provides the value structure as py_ Sql and html_ The intermediate object representation of the expression in sql.

use example

use std::collections::HashMap;
fn main(){
    #[derive(serde::Serialize, serde::Deserialize, Debug)]
    pub struct A {
        pub name: String,
    }
    let a = A {
        name: "sss".to_string(),
    };
    let v = rbs::to_value(a).unwrap();
    println!("v: {}",v);
    let s: A = rbs::from_value(v).unwrap();
    println!("s:{:?}", s);
}

Dependencies

~1–1.8MB
~35K SLoC