From 5859d261f1476d1e84ebf9cfd5989813efd078e9 Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Thu, 14 Dec 2023 17:03:16 +0000 Subject: [PATCH] Cleanup feature flags --- CHANGELOG.md | 5 +++++ Cargo.toml | 2 +- src/database/mock.rs | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cff56a36..f413813e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 0.12.10 - 2023-12-14 + +* [sea-orm-macro] Comment attribute for Entity (`#[sea_orm(comment = "action")]`); `create_table_from_entity` supports comment https://github.com/SeaQL/sea-orm/pull/2009 +* Added "proxy" (feature flag `proxy`) to database backend https://github.com/SeaQL/sea-orm/pull/1881, https://github.com/SeaQL/sea-orm/pull/2000 + ## 0.12.9 - 2023-12-08 ### Enhancements diff --git a/Cargo.toml b/Cargo.toml index d4944d62..63c15956 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -76,7 +76,7 @@ default = [ ] macros = ["sea-orm-macros/derive"] mock = [] -proxy = ["serde_json"] +proxy = ["serde_json", "serde/derive"] with-json = ["serde_json", "sea-query/with-json", "chrono?/serde", "time?/serde", "uuid?/serde", "sea-query-binder?/with-json", "sqlx?/json"] with-chrono = ["chrono", "sea-query/with-chrono", "sea-query-binder?/with-chrono", "sqlx?/chrono"] with-rust_decimal = ["rust_decimal", "sea-query/with-rust_decimal", "sea-query-binder?/with-rust_decimal", "sqlx?/rust_decimal"] diff --git a/src/database/mock.rs b/src/database/mock.rs index 6462766f..f038d893 100644 --- a/src/database/mock.rs +++ b/src/database/mock.rs @@ -31,7 +31,7 @@ pub struct MockExecResult { #[derive(Clone, Debug)] pub struct MockRow { /// The values of the single row - pub values: BTreeMap, + pub(crate) values: BTreeMap, } /// A trait to get a [MockRow] from a type useful for testing in the [MockDatabase]