mirror of
				https://gitlab.com/comunic/comunicapiv3
				synced 2025-11-04 09:34:04 +00:00 
			
		
		
		
	Improve query building
This commit is contained in:
		@@ -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
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user