Lines Matching refs:attributes

114 fn get_db_name(attributes: &ExtDbMap, is_ce: bool) -> std::result::Result<String, u32> {  in get_db_name()
115 let owner = attributes.get_bytes_attr(&column::OWNER).map_err(|e| e.code as u32)?; in get_db_name()
116 …let owner_type = attributes.get_enum_attr::<OwnerType>(&column::OWNER_TYPE).map_err(|e| e.code as … in get_db_name()
131 fn add(&mut self, attributes: &ExtDbMap) -> std::result::Result<i32, u32> { in add()
132 let db_name = get_db_name(attributes, false)?; in add()
134 db.insert_datas(attributes).map_err(|e| e.code as u32) in add()
138 fn ce_add(&mut self, attributes: &ExtDbMap) -> std::result::Result<i32, u32> { in ce_add()
139 let db_name = get_db_name(attributes, true)?; in ce_add()
141 db.insert_datas(attributes).map_err(|e| e.code as u32) in ce_add()
145 …fn replace(&mut self, condition: &ExtDbMap, attributes: &ExtDbMap) -> std::result::Result<(), u32>… in replace()
146 let db_name = get_db_name(attributes, false)?; in replace()
148 db.replace_datas(condition, false, attributes).map_err(|e| e.code as u32) in replace()
152 …fn ce_replace(&mut self, condition: &ExtDbMap, attributes: &ExtDbMap) -> std::result::Result<(), u… in ce_replace()
153 let db_name = get_db_name(attributes, true)?; in ce_replace()
155 db.replace_datas(condition, false, attributes).map_err(|e| e.code as u32) in ce_replace()
159 fn query(&mut self, attributes: &ExtDbMap) -> std::result::Result<Vec<ExtDbMap>, u32> { in query()
164 … query_data.extend(db.query_datas(&vec![], attributes, None, false).map_err(|e| e.code as u32)?); in query()
170 fn ce_query(&mut self, attributes: &ExtDbMap) -> std::result::Result<Vec<ExtDbMap>, u32> { in ce_query()
175 … query_data.extend(db.query_datas(&vec![], attributes, None, false).map_err(|e| e.code as u32)?); in ce_query()
181 fn remove(&mut self, attributes: &ExtDbMap) -> std::result::Result<i32, u32> { in remove()
186 … total_remove_count += db.delete_datas(attributes, None, false).map_err(|e| e.code as u32)?; in remove()
192 fn ce_remove(&mut self, attributes: &ExtDbMap) -> std::result::Result<i32, u32> { in ce_remove()
197 … total_remove_count += db.delete_datas(attributes, None, false).map_err(|e| e.code as u32)?; in ce_remove()
235 …fn update(&mut self, attributes: &ExtDbMap, attrs_to_update: &ExtDbMap) -> std::result::Result<i32… in update()
240 …total_update_count += db.update_datas(attributes, false, attrs_to_update).map_err(|e| e.code as u3… in update()
246 …fn ce_update(&mut self, attributes: &ExtDbMap, attrs_to_update: &ExtDbMap) -> std::result::Result<… in ce_update()
251 …total_update_count += db.update_datas(attributes, false, attrs_to_update).map_err(|e| e.code as u3… in ce_update()