HikariCPJdbcDataSource

slick.jdbc.hikaricp.HikariCPJdbcDataSource
See theHikariCPJdbcDataSource companion object
class HikariCPJdbcDataSource(val ds: HikariDataSource, val hconf: HikariConfig) extends JdbcDataSource

A JdbcDataSource for a HikariCP connection pool. See slick.jdbc.JdbcBackend#Database.forConfig for documentation on the config parameters.

Attributes

Companion
object
Source
HikariCPJdbcDataSource.scala
Graph
Supertypes
trait JdbcDataSource
trait Closeable
trait AutoCloseable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def close(): Unit

If this object represents a connection pool managed directly by Slick, close it. Otherwise no action is taken.

If this object represents a connection pool managed directly by Slick, close it. Otherwise no action is taken.

Attributes

Source
HikariCPJdbcDataSource.scala
def createConnection(): Connection

Create a new Connection or get one from the pool

Create a new Connection or get one from the pool

Attributes

Source
HikariCPJdbcDataSource.scala

Concrete fields

val ds: HikariDataSource

Attributes

Source
HikariCPJdbcDataSource.scala
val hconf: HikariConfig

Attributes

Source
HikariCPJdbcDataSource.scala
override val maxConnections: Option[Int]

If this object represents a connection pool with a limited size, return the maximum pool size. Otherwise return None. This is required to prevent deadlocks when scheduling database actions.

If this object represents a connection pool with a limited size, return the maximum pool size. Otherwise return None. This is required to prevent deadlocks when scheduling database actions.

Attributes

Source
HikariCPJdbcDataSource.scala