diff --git a/01.workspace/heave/src/fun/sqlite_build_statement.rs b/01.workspace/heave/src/fun/sqlite_build_statement.rs index 34f7554..9add4c3 100644 --- a/01.workspace/heave/src/fun/sqlite_build_statement.rs +++ b/01.workspace/heave/src/fun/sqlite_build_statement.rs @@ -24,6 +24,7 @@ pub fn run(filter: &Filter) -> Result { (Comparison::Equal, Condition::Bool(_)) => { compose_fragment(name, "value_bool", "=", i + 1) } + (_, Condition::Bool(_)) => return Err(FailedTo::ComposeFilter), // SIGNED INT (Comparison::Equal, Condition::SignedInt(_)) => { compose_fragment(name, "value_int", "=", i + 1) diff --git a/01.workspace/heave/src/str/comparison.rs b/01.workspace/heave/src/str/comparison.rs index ae5df96..2c978c6 100644 --- a/01.workspace/heave/src/str/comparison.rs +++ b/01.workspace/heave/src/str/comparison.rs @@ -5,4 +5,8 @@ pub enum E { GreaterOrEqual, Lesser, LesserOrEqual, + IsExactly, + StartsWith, + EndsWith, + Contains, } diff --git a/01.workspace/heave/src/str/failed_to.rs b/01.workspace/heave/src/str/failed_to.rs index 052dec5..64216da 100644 --- a/01.workspace/heave/src/str/failed_to.rs +++ b/01.workspace/heave/src/str/failed_to.rs @@ -3,6 +3,8 @@ use crate::*; /// Represents the possible failures that can occur in the library. #[derive(Debug, PartialEq, PartialOrd, Eq, Ord, Clone, Copy, Hash)] pub enum FailedTo { + /// Failed to compose filter statement + ComposeFilter, /// Failed to convert from Entity to type. ConvertEntity, /// Failed to convert from type to Entity.