Macro light_magic::join
source · join!() { /* proc-macro */ }Expand description
Joins Data in the Database together
§Example
use light_magic::{db, join};
db! {
user => { id: usize, name: String, kind: String },
criminal => { user_name: String, entry: String }
}
let db = Database::new();
/// Firstly specify the to db which should be used, then the key,
/// and lastly the joined items with the field which should be joined
let joined = join!(db, "Nils", user => name, criminal => user_name);