Package io.ebean.datasource
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 Summary
All Methods Instance Methods Abstract 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.
-
-
-
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
-
-