* Added support for using sea-orm with #[deny(missing_docs)] (#1522) * feat(macros): Added documentation tags for generated entities * chore: Added deny(missing_docs) attribute to basic example * chore: Fix clippy errors * ci: test missing docs of derive macros generated types * Try missing docs (CI should fail) * Revert "Try missing docs (CI should fail)" This reverts commit 83356bfca8939e7807f14bad8bb816fcabc1bf7b. --------- Co-authored-by: Lewin Probst, M.Sc <30552361+emirror-de@users.noreply.github.com>
40 lines
745 B
Rust
40 lines
745 B
Rust
//! Basic sea-orm example.
|
|
|
|
#![deny(missing_docs)]
|
|
|
|
use sea_orm::Database;
|
|
|
|
mod entities;
|
|
pub mod example_cake;
|
|
pub mod example_cake_filling;
|
|
pub mod example_filling;
|
|
pub mod example_fruit;
|
|
mod operation;
|
|
pub mod sea_orm_active_enums;
|
|
mod select;
|
|
|
|
use entities::*;
|
|
use example_cake as cake;
|
|
use example_cake_filling as cake_filling;
|
|
use example_filling as filling;
|
|
use example_fruit as fruit;
|
|
use operation::*;
|
|
use select::*;
|
|
|
|
#[async_std::main]
|
|
async fn main() {
|
|
let db = Database::connect("sql://sea:sea@localhost/bakery")
|
|
.await
|
|
.unwrap();
|
|
|
|
println!("{db:?}\n");
|
|
|
|
println!("===== =====\n");
|
|
|
|
all_about_select(&db).await.unwrap();
|
|
|
|
println!("===== =====\n");
|
|
|
|
all_about_operation(&db).await.unwrap();
|
|
}
|