public interface ConnectionPool
| Modifier and Type | Method and Description |
|---|---|
play.api.db.ConnectionPool |
asScala() |
void |
close(DataSource dataSource)
Close the given data source.
|
DataSource |
create(String name,
com.typesafe.config.Config configuration,
Environment environment)
Create a data source with the given configuration.
|
DataSource create(String name, com.typesafe.config.Config configuration, Environment environment)
name - the database nameconfiguration - the data source configurationenvironment - the database environmentvoid close(DataSource dataSource)
dataSource - the data source to closeplay.api.db.ConnectionPool asScala()