希望能够增加upsert(update and insert)这样的数据库操作接口,当update时,如果没有该doc,那么就增加add一条doc。 不用现在每次要先判断doc是否存在,然后决定是add还是update。