🎨 Mejora presentación de la API en los paquetes
This commit is contained in:
parent
c5330036d6
commit
3690087005
12 changed files with 89 additions and 86 deletions
|
|
@ -19,21 +19,16 @@
|
|||
|
||||
use pagetop::prelude::*;
|
||||
|
||||
use std::sync::LazyLock;
|
||||
// GLOBAL ******************************************************************************************
|
||||
|
||||
include_locales!(LOCALES_SEAORM);
|
||||
|
||||
// API *********************************************************************************************
|
||||
|
||||
pub mod config;
|
||||
|
||||
pub mod db;
|
||||
|
||||
// PRELUDE *****************************************************************************************
|
||||
|
||||
pub mod prelude {
|
||||
pub use crate::db;
|
||||
}
|
||||
|
||||
include_locales!(LOCALES_SEAORM);
|
||||
|
||||
/// Implementa [`PackageTrait`] y API específica.
|
||||
pub struct SeaORM;
|
||||
|
||||
|
|
@ -47,6 +42,6 @@ impl PackageTrait for SeaORM {
|
|||
}
|
||||
|
||||
fn init(&self) {
|
||||
LazyLock::force(&db::DBCONN);
|
||||
std::sync::LazyLock::force(&db::DBCONN);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue