📝 (seaorm): Corrige ejemplos de documentación
This commit is contained in:
parent
fa5489dbb0
commit
8c861bff05
2 changed files with 2 additions and 4 deletions
|
|
@ -11,9 +11,8 @@
|
||||||
//! the schema helpers to create the Db fields.
|
//! the schema helpers to create the Db fields.
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```rust
|
||||||
//! use sea_orm_migration::{prelude::*, schema::*};
|
//! use pagetop_seaorm::db::*;
|
||||||
//!
|
//!
|
||||||
//! #[derive(DeriveMigrationName)]
|
|
||||||
//! pub struct Migration;
|
//! pub struct Migration;
|
||||||
//!
|
//!
|
||||||
//! #[async_trait::async_trait]
|
//! #[async_trait::async_trait]
|
||||||
|
|
|
||||||
|
|
@ -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:
|
**Declara la extensión** en tu aplicación o en la extensión que la requiera:
|
||||||
|
|
||||||
```rust,no_run
|
```rust,ignore
|
||||||
use pagetop::prelude::*;
|
use pagetop::prelude::*;
|
||||||
|
|
||||||
struct MyApp;
|
struct MyApp;
|
||||||
|
|
@ -71,7 +71,6 @@ async fn main() -> std::io::Result<()> {
|
||||||
```rust,no_run
|
```rust,no_run
|
||||||
use pagetop_seaorm::db::*;
|
use pagetop_seaorm::db::*;
|
||||||
|
|
||||||
#[derive(DeriveMigrationName)]
|
|
||||||
pub struct Migration;
|
pub struct Migration;
|
||||||
|
|
||||||
#[async_trait::async_trait]
|
#[async_trait::async_trait]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue