MCPcopy Create free account
hub / github.com/Boris-code/feapder / get_condition

Method get_condition

feapder/db/mongodb.py:242–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240 data = error.get("op")
241
242 def get_condition():
243 # 获取更新条件
244 if condition_fields:
245 condition = {
246 condition_field: data[condition_field]
247 for condition_field in condition_fields
248 }
249 else:
250 # 根据重复的值获取更新条件
251 condition = self.__get_update_condition(
252 coll_name, data, error.get("errmsg")
253 )
254
255 return condition
256
257 if update_columns:
258 # 更新指定的列

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected