pub struct Condition {
pub column: String,
pub op: Operator,
pub value: Value,
pub is_array_unnest: bool,
}Expand description
A single condition within a cage.
Fields§
§column: StringColumn name
op: OperatorComparison operator
value: ValueValue to compare against
is_array_unnest: boolWhether this is an array unnest operation (column[*])
Trait Implementations§
Source§impl ConditionToSql for Condition
impl ConditionToSql for Condition
Source§fn to_sql(
&self,
generator: &Box<dyn SqlGenerator>,
context: Option<&QailCmd>,
) -> String
fn to_sql( &self, generator: &Box<dyn SqlGenerator>, context: Option<&QailCmd>, ) -> String
Convert condition to SQL string.
fn to_value_sql(&self, generator: &Box<dyn SqlGenerator>) -> String
Source§fn to_sql_parameterized(
&self,
generator: &Box<dyn SqlGenerator>,
context: Option<&QailCmd>,
params: &mut ParamContext,
) -> String
fn to_sql_parameterized( &self, generator: &Box<dyn SqlGenerator>, context: Option<&QailCmd>, params: &mut ParamContext, ) -> String
Convert condition to SQL with parameterized values.
Returns the SQL fragment and updates the ParamContext with extracted values.
Source§impl<'de> Deserialize<'de> for Condition
impl<'de> Deserialize<'de> for Condition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Condition
Auto Trait Implementations§
impl Freeze for Condition
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnwindSafe for Condition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more