Package io.ebean.datasource
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 Summary
Constructors Constructor Description PostgresInitDatabase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun(Connection connection, DataSourceConfig config)Execute some database initialisation statements on a database where the user may not exist.
-
-
-
Constructor Detail
-
PostgresInitDatabase
public PostgresInitDatabase()
-
-
Method Detail
-
run
public void run(Connection connection, DataSourceConfig config) throws SQLException
Description copied from interface:InitDatabaseExecute some database initialisation statements on a database where the user may not exist.- Specified by:
runin interfaceInitDatabase- Parameters:
connection- Connection obtained using the ownerUsername and ownerPassword.config- The datasource configuration.- Throws:
SQLException
-
-