org.springframework.boot.r2dbc.init

Class R2dbcScriptDatabaseInitializer

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ResourceLoaderAware


    public class R2dbcScriptDatabaseInitializer
    extends AbstractScriptDatabaseInitializer
    An InitializingBean that initializes a database represented by an R2DBC ConnectionFactory.
    Since:
    2.5.0
    • Constructor Detail

      • R2dbcScriptDatabaseInitializer

        public R2dbcScriptDatabaseInitializer(io.r2dbc.spi.ConnectionFactory connectionFactory,
                                              DatabaseInitializationSettings settings)
        Creates a new R2dbcScriptDatabaseInitializer that will initialize the database recognized by the given connectionFactory using the given settings.
        Parameters:
        connectionFactory - connectionFactory for the database
        settings - initialization settings