Crate surreal_derive_plus
source ·Macros§
- Read and generate valid SurrealDb query command at compile time it is necessary to know that the main logic of generating query still depends on original Rust SDK of SurrealDb, so that this also offering a seamless integration with the original SurrealDb Rust SDK, which can be found in the documentation at https://docs.rs/surrealdb/1.0.0/surrealdb. USAGES:
Derive Macros§
- The
surreal_derive
macro generates implementations to facilitate the conversion of a struct intosurrealdb::sql::Value
. For example, after derive, it will generate a method: @{into_idiom_value(&self) -> Vec<(surrealdb::sql::Idiom, surrealdb::sql::Value)>} it allow us to reuse the logic of Rust SDK For details, refer to the documentation at https://docs.rs/surrealdb/1.0.0/surrealdb/sql/enum.Value.html. USAGES: