🎨 Mejora presentación de la API en los paquetes

This commit is contained in:
Manuel Cillero 2024-12-27 19:47:03 +01:00
parent c5330036d6
commit 3690087005
12 changed files with 89 additions and 86 deletions

View file

@ -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);
}
}