2 releases

0.1.1 Nov 14, 2022
0.1.0 Nov 12, 2022

#27 in #obj

Download history 18/week @ 2024-02-26 81/week @ 2024-03-25

82 downloads per month
Used in 3 crates (2 directly)

MIT license

17KB
403 lines

  • please check impl/src/lib.rs

  • usage

#[derive(Debug, Clone)]
pub struct Relation {
    pub id: Thing,
    pub from: Thing,
    pub with: Thing,
}

impl Into<surrealdb_obj_derive::surrealdb::sql::Value> for Relation {}

ref to crate schema

or

#[derive(SurrealDbObject, Debug, Clone)]
pub struct Mobile {
    pub id: u64,
}
  • release
cargo install cargo-release
cargo release publish --workspace --execute
cargo release push --no-tag --execute
# cargo publish --no-verify

lib.rs:

This crate implements the macro for surrealdb_obj_derive and should not be used directly.

Dependencies

~79MB
~1.5M SLoC