(session, db_kb: 'DbKnowledgeBase', func_manager: FunctionManager)
:param session:
        :param DbKnowledgeBase db_kb:
        :param FunctionManager func_manager:
        :return:
def dump(session, db_kb: 'DbKnowledgeBase', func_manager: FunctionManager):
        """

        :param session:
        :param DbKnowledgeBase db_kb:
        :param FunctionManager func_manager:
        :return:
        """

        # remove all existing functions
        session.query(DbFunction).filter_by(kb=db_kb).delete()

        for func in func_manager.values():
            db_func = DbFunction(
                kb=db_kb,
                addr=func.addr,
                blob=func.serialize(),
            )
            session.add(db_func)
def dump ( session , db_kb : 'DbKnowledgeBase' , func_manager : FunctionManager ) : # remove all existing functions session . query ( DbFunction ) . filter_by ( kb = db_kb ) . delete ( ) for func in func_manager . values ( ) : db_func = DbFunction ( kb = db_kb , addr = func . addr , blob = func . serialize ( ) , ) session . add ( db_func )