def from_metadata(self, db_path, db_name='engine_metadata.db'):
        """
        Registers in the current session the views of the MetadataSource so the
        data is obtained from the metadata database instead of reading the
        repositories with the DefaultSource.

        :param db_path: path to the folder that contains the database.
        :type db_path: str
        :param db_name: name of the database file (engine_metadata.db) by default.
        :type db_name: str
        :returns: the same instance of the engine
        :rtype: Engine
        """

        self.__engine.fromMetadata(db_path, db_name)
        return self
def from_metadata ( self , db_path , db_name = 'engine_metadata.db' ) : self . __engine . fromMetadata ( db_path , db_name ) return self
Registers in the current session the views of the MetadataSource so the
        data is obtained from the metadata database instead of reading the
        repositories with the DefaultSource.

        :param db_path: path to the folder that contains the database.
        :type db_path: str
        :param db_name: name of the database file (engine_metadata.db) by default.
        :type db_name: str
        :returns: the same instance of the engine
        :rtype: Engine