Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kingsleyh committed Dec 6, 2024
1 parent ecaf9e3 commit 29971bd
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/lib/filtering.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,13 @@ impl FilterExpression {
}
}

#[cfg(test)]
pub fn and(expressions: Vec<FilterExpression>) -> Self {
FilterExpression::Group {
operator: LogicalOperator::And,
expressions,
}
}

#[cfg(test)]
pub fn or(expressions: Vec<FilterExpression>) -> Self {
FilterExpression::Group {
operator: LogicalOperator::Or,
Expand Down Expand Up @@ -565,7 +563,6 @@ impl FilterCondition {
}
}

#[cfg(test)]
pub fn varchar(column: &str, operator: FilterOperator, value: Option<&str>) -> Self {
FilterCondition::VarcharValue {
column: column.to_string(),
Expand All @@ -574,7 +571,6 @@ impl FilterCondition {
}
}

#[cfg(test)]
pub fn number(column: &str, operator: FilterOperator, value: Option<f64>) -> Self {
FilterCondition::DoublePrecisionValue {
column: column.to_string(),
Expand All @@ -583,7 +579,6 @@ impl FilterCondition {
}
}

#[cfg(test)]
pub fn integer(column: &str, operator: FilterOperator, value: Option<i32>) -> Self {
FilterCondition::IntegerValue {
column: column.to_string(),
Expand All @@ -592,7 +587,6 @@ impl FilterCondition {
}
}

#[cfg(test)]
pub fn timestamp(column: &str, operator: FilterOperator, value: Option<&str>) -> Self {
FilterCondition::TimestampValue {
column: column.to_string(),
Expand All @@ -601,7 +595,6 @@ impl FilterCondition {
}
}

#[cfg(test)]
pub fn boolean(column: &str, operator: FilterOperator, value: Option<bool>) -> Self {
FilterCondition::BooleanValue {
column: column.to_string(),
Expand All @@ -610,7 +603,6 @@ impl FilterCondition {
}
}

#[cfg(test)]
pub fn in_values(column: &str, operator: FilterOperator, values: Vec<&str>) -> Self {
FilterCondition::InValues {
column: column.to_string(),
Expand All @@ -619,7 +611,6 @@ impl FilterCondition {
}
}

#[cfg(test)]
pub fn uuid(column: &str, operator: FilterOperator, value: Option<&str>) -> Self {
FilterCondition::UuidValue {
column: column.to_string(),
Expand Down

0 comments on commit 29971bd

Please sign in to comment.