4 releases (2 stable)

4.3.2 Mar 25, 2023
4.3.1 Mar 21, 2023
0.1.15 Jan 3, 2023
0.1.14 Dec 23, 2022
0.1.11 Aug 28, 2022

#919 in Database interfaces

Download history 223/week @ 2023-02-13 381/week @ 2023-02-20 295/week @ 2023-02-27 245/week @ 2023-03-06 506/week @ 2023-03-13 450/week @ 2023-03-20 360/week @ 2023-03-27 267/week @ 2023-04-03 236/week @ 2023-04-10 213/week @ 2023-04-17 254/week @ 2023-04-24 233/week @ 2023-05-01 229/week @ 2023-05-08 177/week @ 2023-05-15 187/week @ 2023-05-22 341/week @ 2023-05-29

977 downloads per month
Used in 23 crates (16 directly)

Apache-2.0

67KB
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.3–2MB
~42K SLoC