mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-22 13:29:21 +00:00
Improve query building
This commit is contained in:
parent
a67f988e1b
commit
fcc38afe42
@ -73,8 +73,9 @@ impl QueryInfo {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn cond(&mut self, key: &str, val: &str) {
|
||||
pub fn cond(mut self, key: &str, val: &str) -> QueryInfo {
|
||||
self.conditions.insert(key.to_string(), val.to_string());
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user