synapse/storage/prepare_database.py
def _apply_module_schemas(txn, database_engine, config):
    """Apply the module schemas for the dynamic modules, if any

    Args:
        cur: database cursor
        database_engine: synapse database engine class
        config (synapse.config.homeserver.HomeServerConfig):
            application config
    """
    for (mod, _config) in config.password_providers:
        if not hasattr(mod, 'get_db_schema_files'):
            continue
        modname = ".".join((mod.__module__, mod.__name__))
        _apply_module_schema_files(
            txn, database_engine, modname, mod.get_db_schema_files(),
        )
Apply the module schemas for the dynamic modules, if any

    Args:
        cur: database cursor
        database_engine: synapse database engine class
        config (synapse.config.homeserver.HomeServerConfig):
            application config
    
Apply the module schemas for the dynamic modules, if any
Apply the module schemas for the dynamic modules if any
def _apply_module_schemas(txn, database_engine, config):
    for (mod, _config) in config.password_providers:
        if not hasattr(mod, 'get_db_schema_files'):
            continue
        modname = ".".join((mod.__module__, mod.__name__))
        _apply_module_schema_files(
            txn, database_engine, modname, mod.get_db_schema_files(),
        )
def _apply_module_schemas ( txn , database_engine , config ) : for ( mod , _config ) in config . password_providers : if not hasattr ( mod , 'get_db_schema_files' ) : continue modname = "." . join ( ( mod . __module__ , mod . __name__ ) ) _apply_module_schema_files ( txn , database_engine , modname , mod . get_db_schema_files ( ) , )
Apply the module schemas for the dynamic modules, if any
Apply the module schemas for the dynamic modules if any
"""Apply the module schemas for the dynamic modules, if any

    Args:
        cur: database cursor
        database_engine: synapse database engine class
        config (synapse.config.homeserver.HomeServerConfig):
            application config
    """
txn
database_engine
synapse database engine class
synapse database engine class
config
None
cur
None