From 00c90b2d79e94b26fc23e7599e3a91c74b0789cb Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Thu, 1 Jun 2023 18:30:49 +0800 Subject: [PATCH] Changelog --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2b49597..cf31bd8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -236,6 +236,14 @@ assert_eq!(migration.status(), MigrationStatus::Pending); * Changed the parameter of method `ConnectOptions::set_schema_search_path(T) where T: Into` to takes any string * Changed the parameter of method `ColumnTrait::like()`, `ColumnTrait::not_like()`, `ColumnTrait::starts_with()`, `ColumnTrait::ends_with()` and `ColumnTrait::contains()` to takes any string * Re-export `sea_query::{DynIden, RcOrArc, SeaRc}` in `sea_orm::entity::prelude` module https://github.com/SeaQL/sea-orm/pull/1661 +* Added `DatabaseConnection::ping` https://github.com/SeaQL/sea-orm/pull/1627 +```rust +|db: DatabaseConnection| { + assert!(db.ping().await.is_ok()); + db.clone().close().await; + assert!(matches!(db.ping().await, Err(DbErr::ConnectionAcquire))); +} +``` ### Upgrades