Interface InitDatabase

  • All Known Implementing Classes:
    PostgresInitDatabase

    public interface InitDatabase
    Run database initialisation when a pool can't create the initial connections (user may not exist).
    • Method Detail

      • run

        void run​(Connection connection,
                 DataSourceConfig config)
          throws SQLException
        Execute some database initialisation statements on a database where the user may not exist.
        Parameters:
        connection - Connection obtained using the ownerUsername and ownerPassword.
        config - The datasource configuration.
        Throws:
        SQLException