1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-22 21:39:21 +00:00

Improve query building

This commit is contained in:
Pierre HUBERT 2020-05-22 08:57:16 +02:00
parent a67f988e1b
commit fcc38afe42

View File

@ -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.conditions.insert(key.to_string(), val.to_string());
self
} }
} }