java.lang.Object
io.ebean.datasource.PostgresInitDatabase
- All Implemented Interfaces:
InitDatabase
Creates a schema and role using the database owner.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrun(Connection connection, DataSourceConfig config) Execute some database initialisation statements on a database where the user may not exist.
-
Constructor Details
-
PostgresInitDatabase
public PostgresInitDatabase()
-
-
Method Details
-
run
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
-