Skip to content

Commit

Permalink
cleanup legacy ActiveValue::Set (#2515)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 authored Mar 1, 2025
1 parent 9631e35 commit 4e3ea36
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions src/entity/active_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use async_trait::async_trait;
use sea_query::{Nullable, ValueTuple};
use std::fmt::Debug;

pub use ActiveValue::NotSet;
pub use ActiveValue::{NotSet, Set, Unchanged};

/// Defines a stateful value used in ActiveModel.
///
Expand Down Expand Up @@ -49,15 +49,6 @@ where
NotSet,
}

/// Defines a set operation on an [ActiveValue]
#[allow(non_snake_case)]
pub fn Set<V>(v: V) -> ActiveValue<V>
where
V: Into<Value>,
{
ActiveValue::set(v)
}

/// Defines an not set operation on an [ActiveValue]
#[deprecated(
since = "0.5.0",
Expand All @@ -71,15 +62,6 @@ where
ActiveValue::not_set()
}

/// Defines an unchanged operation on an [ActiveValue]
#[allow(non_snake_case)]
pub fn Unchanged<V>(value: V) -> ActiveValue<V>
where
V: Into<Value>,
{
ActiveValue::unchanged(value)
}

/// A Trait for ActiveModel to perform Create, Update or Delete operation.
/// The type must also implement the [EntityTrait].
/// See module level docs [crate::entity] for a full example
Expand Down

0 comments on commit 4e3ea36

Please sign in to comment.