ConnectionPool

play.api.db.ConnectionPool
See theConnectionPool companion object

Connection pool API for managing data sources.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def close(dataSource: DataSource): Unit

Close the given data source.

Close the given data source.

Value parameters

dataSource

the data source to close

Attributes

def create(name: String, dbConfig: DatabaseConfig, configuration: Config): DataSource

Create a data source with the given configuration.

Create a data source with the given configuration.

Value parameters

configuration

the data source configuration

name

the database name

Attributes

Returns

a data source backed by a connection pool