Skip to content

Commit

Permalink
Merge branch 'main' into update-msrv
Browse files Browse the repository at this point in the history
  • Loading branch information
jxs authored Feb 3, 2025
2 parents a69d01f + 481519b commit 72524ef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ let client = conn.deref_mut().deref_mut();
let report = embedded::migrations::runner().run_async(client).await?;
```

### Example: bb8

```rust
let mut client = pool.dedicated_connection().await?;
let report = embedded::migrations::runner().run_async(&mut client).await?;
```

### Non-contiguous VS Contiguous migrations

Depending on how your project/team has been structured will define whether you want to use contiguous (adjacent) migrations `V{1}__{2}.[sql|rs]` or non-contiguous (not adjacent) migrations `U{1}__{2}.[sql|rs]`.
Expand Down

0 comments on commit 72524ef

Please sign in to comment.