fix: update condition types after u64 deprecation from rusqlite update
This commit is contained in:
@@ -12,6 +12,6 @@ pub enum E<'a> {
|
|||||||
SignedInt(i64),
|
SignedInt(i64),
|
||||||
/// A text value (`&str`).
|
/// A text value (`&str`).
|
||||||
Text(&'a str),
|
Text(&'a str),
|
||||||
/// An unsigned integer (`u64`), stored as `i64` for SQLite compatibility.
|
/// An unsigned integer (`u32`).
|
||||||
UnsignedInt(i64),
|
UnsignedInt(u32),
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,12 +66,12 @@ impl<'a> Filter<'a> {
|
|||||||
));
|
));
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
/// Adds an unsigned integer (`u64`) condition to the filter.
|
/// Adds an unsigned integer (`u32`) condition to the filter.
|
||||||
pub fn with_unsigned_int(
|
pub fn with_unsigned_int(
|
||||||
mut self,
|
mut self,
|
||||||
attribute_name: &str,
|
attribute_name: &str,
|
||||||
comparison: Comparison,
|
comparison: Comparison,
|
||||||
value: i64,
|
value: u32,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
self.conditions.push((
|
self.conditions.push((
|
||||||
attribute_name.to_string(),
|
attribute_name.to_string(),
|
||||||
|
|||||||
Reference in New Issue
Block a user