macro_rules! create {
($teil_deriver:ty) => { ... };
($($teil_deriver:ty),+) => { ... };
}Expand description
Creates all necessary database objects to use the structures that derive from the Teil trait.
use teil::Teil;
#[derive(Teil)]
struct User {
#[teil(primary_key)]
name: String
}
teil::create!(User).await.unwrap();