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