Changelog
This commit is contained in:
parent
fd4aab7a8c
commit
d920fc3eda
15
CHANGELOG.md
15
CHANGELOG.md
@ -212,6 +212,18 @@ assert_eq!(
|
|||||||
ColumnType::TimestampWithTimeZone.def().default(Expr::current_timestamp())
|
ColumnType::TimestampWithTimeZone.def().default(Expr::current_timestamp())
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
* Introduced new `ConnAcquireErr` https://github.com/SeaQL/sea-orm/pull/1737
|
||||||
|
```rust
|
||||||
|
enum DbErr {
|
||||||
|
ConnectionAcquire(ConnAcquireErr),
|
||||||
|
..
|
||||||
|
}
|
||||||
|
|
||||||
|
enum ConnAcquireErr {
|
||||||
|
Timeout,
|
||||||
|
ConnectionClosed,
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
#### Seaography
|
#### Seaography
|
||||||
|
|
||||||
@ -328,7 +340,7 @@ assert!(matches!(res, Ok(TryInsertResult::Conflicted)));
|
|||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
* `DeriveActiveEnum` no longer impl `Display`
|
* `DeriveActiveEnum` no longer impl `Display` https://github.com/SeaQL/sea-orm/pull/1726
|
||||||
* Fixed `DeriveActiveEnum` throwing errors because `string_value` consists non-UAX#31 compliant characters https://github.com/SeaQL/sea-orm/pull/1374
|
* Fixed `DeriveActiveEnum` throwing errors because `string_value` consists non-UAX#31 compliant characters https://github.com/SeaQL/sea-orm/pull/1374
|
||||||
|
|
||||||
For example,
|
For example,
|
||||||
@ -453,6 +465,7 @@ pub enum Tea {
|
|||||||
EverydayTea,
|
EverydayTea,
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
* Definition of `DbErr::ConnectionAcquire` changed to `ConnectionAcquire(ConnAcquireErr)` https://github.com/SeaQL/sea-orm/pull/1737
|
||||||
|
|
||||||
## 0.11.3 - 2023-04-24
|
## 0.11.3 - 2023-04-24
|
||||||
|
|
||||||
|
@ -78,11 +78,11 @@ pub enum DbErr {
|
|||||||
/// Connection error
|
/// Connection error
|
||||||
#[derive(Error, Debug, PartialEq, Eq)]
|
#[derive(Error, Debug, PartialEq, Eq)]
|
||||||
pub enum ConnAcquireErr {
|
pub enum ConnAcquireErr {
|
||||||
/// Connection Timed Out
|
/// Connection pool timed out
|
||||||
#[error("Connection Timed out")]
|
#[error("Connection pool timed out")]
|
||||||
Timeout,
|
Timeout,
|
||||||
/// Unavailable connection
|
/// Connection closed
|
||||||
#[error("Connection closed by host")]
|
#[error("Connection closed")]
|
||||||
ConnectionClosed,
|
ConnectionClosed,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user