A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.playframework.com/documentation/2.5.x/api/scala/play/api/db/DB$.html below:

DB - play.api.db.DB

  • def getConnection(name: String = "default", autocommit: Boolean = true)(implicit app: Application): Connection

    Retrieves a JDBC connection.

  • def getDataSource(name: String = "default")(implicit app: Application): DataSource

    Retrieves a JDBC connection (autocommit is set to true).

  • def withConnection[A](block: (Connection) ⇒ A)(implicit app: Application): A

    Execute a block of code, providing a JDBC connection.

  • def withConnection[A](name: String = "default", autocommit: Boolean = true)(block: (Connection) ⇒ A)(implicit app: Application): A

    Execute a block of code, providing a JDBC connection.

  • def withTransaction[A](block: (Connection) ⇒ A)(implicit app: Application): A

    Execute a block of code, in the scope of a JDBC transaction.

  • def withTransaction[A](name: String = "default")(block: (Connection) ⇒ A)(implicit app: Application): A

    Execute a block of code, in the scope of a JDBC transaction.


  • RetroSearch is an open source project built by @garambo | Open a GitHub Issue

    Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

    HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4