Add self-creation for controller

This commit is contained in:
Tobias Reisinger 2023-11-25 00:39:44 +01:00
parent d193000aec
commit 4e3df272c3
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
10 changed files with 105 additions and 14 deletions
emgauwa-lib/src/db

View file

@ -8,16 +8,16 @@ use crate::db::errors::DatabaseError;
use crate::db::model_utils::Period;
use crate::db::types::ScheduleUid;
// export for easier/flatter access
pub use crate::db::schedules::{Periods, Schedule};
pub mod errors;
mod model_utils;
mod models;
pub mod schedules;
mod schedules;
pub mod tag;
pub mod types;
pub mod controllers;
mod controllers;
pub use controllers::Controller;
pub use schedules::{Periods, Schedule};
static MIGRATOR: Migrator = sqlx::migrate!("../migrations"); // defaults to "./migrations"