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

#520 in Database interfaces

Download history 529/week @ 2024-08-28 600/week @ 2024-09-04 549/week @ 2024-09-11 746/week @ 2024-09-18 943/week @ 2024-09-25 1068/week @ 2024-10-02 735/week @ 2024-10-09 794/week @ 2024-10-16 766/week @ 2024-10-23 583/week @ 2024-10-30 604/week @ 2024-11-06 434/week @ 2024-11-13 524/week @ 2024-11-20 790/week @ 2024-11-27 706/week @ 2024-12-04 614/week @ 2024-12-11

2,720 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