macro_rules! models {
($($models:tt)*) => { ... };
}Expand description
toasty::models! with the models Tablo ships appended, so a panel’s Db holds every table
auth reads.
It takes what toasty::models! takes: the app’s models, and crate::* or some_crate::* for
every model a crate declares. A Db built from it never fails the mount with
MissingAuthModels. An app with a model named as one of Tablo’s lists them in
toasty::models! instead: see register_models.
toasty::Db::builder()
.models(tablo_core::models!(Post))
.connect("sqlite::memory:")
.await