"SequoiaDB Giant Sequoia Database" update() Overview 3

return value

  • The detailed result information (BSONObj object) is returned successfully, the structure is as follows:

    {
        UpdatedNum  : <INT64>  成功更新的记录数,包括匹配但未发生数据变化的记录,
        ModifiedNum : <INT64>  成功更新且发生数据变化的记录数,
        InsertedNum : <INT32>  成功插入的记录数,仅在 upsert 下生效
    }

     

  • Throws an error, and outputs the error, by () getLastErrMsg obtain error information or by getLastError () Gets error code. The error information object includes detailed result information.

error

The error information is recorded in the node diagnostic log (diaglog), and you can refer to the error code .

Click on Jushan Database Documentation Center for more information

 

Guess you like

Origin blog.csdn.net/weixin_45890253/article/details/112983743