ConnectionPool

play.api.db.ConnectionPool
See theConnectionPool companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def extractUrl(maybeUrl: Option[String], mode: Mode): (Option[String], Option[(String, String)])

Extract the given URL.

Extract the given URL.

Supports shortcut URLs for postgres and mysql, and also adds various default parameters as appropriate.

Attributes

def fromConfig(config: String, injector: Injector, environment: Environment, default: ConnectionPool): ConnectionPool

Load a connection pool from a configured connection pool

Load a connection pool from a configured connection pool

Attributes

def fromConfig(config: String, environment: Environment, default: ConnectionPool): ConnectionPool

Load a connection pool from a configured connection pool. This is intended to be used with compile-time dependency injection and then it does not accepts an Injector.

Load a connection pool from a configured connection pool. This is intended to be used with compile-time dependency injection and then it does not accepts an Injector.

Attributes