in compat-tool/compat/compat.py [0:0]
def process_line(le, usage_map, ver, cmd_map, lineNum):
retval = {"unsupported": False, "processed": 0}
#print(f'Command: {le.command}, Component: {le.component}, Actual Query: {le.actual_query}')
if ('COMMAND' == le.component):
if le.command in ['find']:
#print("Processing COMMAND find...")
retval = process_find(le, usage_map, ver, lineNum)
cmd_map["find"] = cmd_map.get("find", 0) + 1
if le.command in ['aggregate']:
#print("Processing COMMAND aggregate...")
retval = process_aggregate(le, usage_map, ver, lineNum)
cmd_map["aggregate"] = cmd_map.get("aggregate", 0) + 1
elif ('QUERY' == le.component):
#print("Processing query...")
retval = process_query(le, usage_map, ver, lineNum)
cmd_map["query"] = cmd_map.get("query", 0) + 1
elif ('WRITE' == le.component):
if (le.operation in ['update']):
#print("Processing update...")
retval = process_update(le, usage_map, ver, lineNum)
cmd_map["update"] = cmd_map.get("update", 0) + 1
# if ("actual_query" in retval.keys()):
# print(f'BBB {retval["actual_query"]}')
return retval