Packages

class DataSourceJdbcDataSource extends JdbcDataSource

A JdbcDataSource for a DataSource

Source
JdbcDataSource.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DataSourceJdbcDataSource
  2. JdbcDataSource
  3. Closeable
  4. AutoCloseable
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DataSourceJdbcDataSource(ds: DataSource, keepAliveConnection: Boolean, maxConnections: Option[Int], connectionPreparer: ConnectionPreparer = null)

Value Members

  1. def close(): Unit

    If this object represents a connection pool managed directly by Slick, close it.

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

    Definition Classes
    DataSourceJdbcDataSourceJdbcDataSource → Closeable → AutoCloseable
  2. val connectionPreparer: ConnectionPreparer
  3. def createConnection(): Connection

    Create a new Connection or get one from the pool

    Create a new Connection or get one from the pool

    Definition Classes
    DataSourceJdbcDataSourceJdbcDataSource
  4. val ds: DataSource
  5. val keepAliveConnection: Boolean
  6. val maxConnections: Option[Int]

    If this object represents a connection pool with a limited size, return the maximum pool size.

    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.

    Definition Classes
    DataSourceJdbcDataSourceJdbcDataSource