SeaQL / sea-orm

🐚 An async & dynamic ORM for Rust
https://www.sea-ql.org/SeaORM/
Apache License 2.0
7.03k stars 492 forks source link

`DatabaseConnection` directly from `PgPool` #2348

Open fosskers opened 3 weeks ago

fosskers commented 3 weeks ago

PR Info

This allows sqlx-based connection pools that were already on-hand to be easily converted into SeaORM types.

New Features

Two new From impls which allow a native PgPool to be easily converted into SeaORM wrapper types that can then be used for SeaORM logic.