DataSourceJdbcDataSource

slick.jdbc.DataSourceJdbcDataSource
See theDataSourceJdbcDataSource companion object
class DataSourceJdbcDataSource(val ds: DataSource, val keepAliveConnection: Boolean, val maxConnections: Option[Int], val connectionPreparer: ConnectionPreparer) extends JdbcDataSource

A JdbcDataSource for a DataSource

Attributes

Companion:
object
Source:
JdbcDataSource.scala
Graph
Supertypes
trait Closeable
trait AutoCloseable
class Object
trait Matchable
class Any

Members list

Concise view

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:
JdbcDataSource.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:
JdbcDataSource.scala

Concrete fields

val ds: DataSource

Attributes

Source:
JdbcDataSource.scala
val keepAliveConnection: Boolean

Attributes

Source:
JdbcDataSource.scala
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:
JdbcDataSource.scala