mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-02 15:25:32 +00:00
Address pr feedback
This commit is contained in:
parent
892bbc95a9
commit
c64b9bee45
@ -47,9 +47,11 @@ impl Migrator {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```rust,no_run
|
||||
/// # fn main() -> Result<(), sqlx_core::migrate::MigrateError> {
|
||||
/// # use sqlx_core::migrate::MigrateError;
|
||||
/// # fn main() -> Result<(), MigrateError> {
|
||||
/// # sqlx_rt::block_on(async move {
|
||||
/// let m = sqlx_core::migrate::Migrator::new(std::path::Path::new("./migrations")).await?;
|
||||
/// # use sqlx_core::migrate::Migrator;
|
||||
/// let m = Migrator::new(std::path::Path::new("./migrations")).await?;
|
||||
/// let pool = sqlx_core::sqlite::SqlitePoolOptions::new().connect("sqlite::memory:").await?;
|
||||
/// m.run(&pool).await
|
||||
/// # })
|
||||
|
Loading…
x
Reference in New Issue
Block a user