From 8c861bff0514f7ca520025513d07c8b9511e9e13 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Sun, 10 May 2026 00:43:35 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20(seaorm):=20Corrige=20ejemplos?= =?UTF-8?q?=20de=20documentaci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/pagetop-seaorm/src/db/migration/schema.rs | 3 +-- extensions/pagetop-seaorm/src/lib.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/extensions/pagetop-seaorm/src/db/migration/schema.rs b/extensions/pagetop-seaorm/src/db/migration/schema.rs index ae6a3c4b..b6f89d3a 100644 --- a/extensions/pagetop-seaorm/src/db/migration/schema.rs +++ b/extensions/pagetop-seaorm/src/db/migration/schema.rs @@ -11,9 +11,8 @@ //! the schema helpers to create the Db fields. //! //! ```rust -//! use sea_orm_migration::{prelude::*, schema::*}; +//! use pagetop_seaorm::db::*; //! -//! #[derive(DeriveMigrationName)] //! pub struct Migration; //! //! #[async_trait::async_trait] diff --git a/extensions/pagetop-seaorm/src/lib.rs b/extensions/pagetop-seaorm/src/lib.rs index 2ba22db7..103d95eb 100644 --- a/extensions/pagetop-seaorm/src/lib.rs +++ b/extensions/pagetop-seaorm/src/lib.rs @@ -43,7 +43,7 @@ Para MySQL o PostgreSQL añade también `db_user`, `db_pass`, `db_host` y `db_po **Declara la extensión** en tu aplicación o en la extensión que la requiera: -```rust,no_run +```rust,ignore use pagetop::prelude::*; struct MyApp; @@ -71,7 +71,6 @@ async fn main() -> std::io::Result<()> { ```rust,no_run use pagetop_seaorm::db::*; -#[derive(DeriveMigrationName)] pub struct Migration; #[async_trait::async_trait]