(session, db_kb, xrefs)
:param session:
        :param DbKnowledgeBase db_kb:
        :param XRefManager xrefs:
        :return:
def dump(session, db_kb, xrefs):
        """

        :param session:
        :param DbKnowledgeBase db_kb:
        :param XRefManager xrefs:
        :return:
        """

        db_xrefs = db_kb.xrefs

        blob = xrefs.serialize()
        if db_xrefs is not None:
            # update the existing xrefs
            db_xrefs.blob = blob
        else:
            # create a new xrefs
            db_xrefs = DbXRefs(kb=db_kb, blob=blob)
            session.add(db_xrefs)
def dump ( session , db_kb , xrefs ) : db_xrefs = db_kb . xrefs blob = xrefs . serialize ( ) if db_xrefs is not None : # update the existing xrefs db_xrefs . blob = blob else : # create a new xrefs db_xrefs = DbXRefs ( kb = db_kb , blob = blob ) session . add ( db_xrefs )