We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This testcase breaks on v0.2.1, despite it expected to not to break:
#[derive(Debug, VennDB)] pub struct Worker { #[venndb(key)] id: u32, is_admin: bool, is_active: Option<bool>, #[venndb(filter, any)] department: Option<Department>, } #[test] fn test_any_row_optional_filter_map_white_rabbit() { let db = WorkerDB::from_rows(vec![ Worker { id: 1, is_admin: false, is_active: Some(true), department: Some(Department::Engineering), }, Worker { id: 2, is_admin: false, is_active: None, department: None, }, Worker { id: 3, is_admin: false, is_active: Some(true), department: Some(Department::Any), }, Worker { id: 4, is_admin: false, is_active: Some(true), department: Some(Department::HR), }, ]) .unwrap(); let mut query = db.query(); query.department(Department::Marketing); let results = query.execute().unwrap().iter().collect::<Vec<_>>(); assert_eq!(results.len(), 1); assert_eq!(results[1].id, 3); }
The text was updated successfully, but these errors were encountered:
c5d4f5f
GlenDC
No branches or pull requests
This testcase breaks on v0.2.1, despite it expected to not to break:
The text was updated successfully, but these errors were encountered: