Class PostgresInitDatabase

java.lang.Object
io.ebean.datasource.PostgresInitDatabase
All Implemented Interfaces:
InitDatabase

public class PostgresInitDatabase extends Object implements InitDatabase
Creates a schema and role using the database owner.
  • Constructor Details

    • PostgresInitDatabase

      public PostgresInitDatabase()
  • Method Details

    • run

      public void run(Connection connection, DataSourceConfig config) throws SQLException
      Description copied from interface: InitDatabase
      Execute some database initialisation statements on a database where the user may not exist.
      Specified by:
      run in interface InitDatabase
      Parameters:
      connection - Connection obtained using the ownerUsername and ownerPassword.
      config - The datasource configuration.
      Throws:
      SQLException