♻️ (seaorm): Elimina prelude para usar db
This commit is contained in:
parent
a0805ed0fb
commit
fa5489dbb0
3 changed files with 4 additions and 10 deletions
|
|
@ -52,7 +52,8 @@
|
|||
//! }
|
||||
//! ```
|
||||
|
||||
use crate::prelude::Iden;
|
||||
use crate::db::Iden;
|
||||
|
||||
use sea_orm::sea_query::{
|
||||
self, Alias, ColumnDef, ColumnType, Expr, IntoIden, PgInterval, Table, TableCreateStatement,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ async fn main() -> std::io::Result<()> {
|
|||
**Escribe las migraciones** usando la API de SeaORM:
|
||||
|
||||
```rust,no_run
|
||||
use pagetop_seaorm::prelude::*;
|
||||
use pagetop_seaorm::db::*;
|
||||
|
||||
#[derive(DeriveMigrationName)]
|
||||
pub struct Migration;
|
||||
|
|
@ -109,13 +109,6 @@ pub mod config;
|
|||
|
||||
pub mod db;
|
||||
|
||||
/// *Prelude* de la extensión.
|
||||
pub mod prelude {
|
||||
pub use crate::config::*;
|
||||
pub use crate::db::*;
|
||||
pub use crate::install_migrations;
|
||||
}
|
||||
|
||||
/// Implementa la extensión.
|
||||
pub struct SeaORM;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue