Skip to content

Commit

Permalink
Update README.md (#283)
Browse files Browse the repository at this point in the history
add deadpool example
  • Loading branch information
mpiorowski authored Jul 19, 2023
1 parent 5a31e06 commit cf6e3d6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ pushd migrations
popd
```

### Example: Deadpool

```rust
let mut conn = pool.get().await?;
let client = conn.deref_mut().deref_mut();
let report = embedded::migrations::runner().run_async(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 cf6e3d6

Please sign in to comment.