Skip to content

Commit 481519b

Browse files
authored
README: add bb8 example (#356)
1 parent 8e120f6 commit 481519b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ let client = conn.deref_mut().deref_mut();
7474
let report = embedded::migrations::runner().run_async(client).await?;
7575
```
7676

77+
### Example: bb8
78+
79+
```rust
80+
let mut client = pool.dedicated_connection().await?;
81+
let report = embedded::migrations::runner().run_async(&mut client).await?;
82+
```
83+
7784
### Non-contiguous VS Contiguous migrations
7885

7986
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]`.

0 commit comments

Comments
 (0)