Packages

t

slick.jdbc

DriverBasedJdbcDataSource

trait DriverBasedJdbcDataSource extends JdbcDataSource

A JdbcDataSource which can load a JDBC Driver from a class name

Annotations
@deprecated
Deprecated

(Since version 3.1) Use DataSourceJdbcDataSource with DriverDataSource instead

Source
JdbcDataSource.scala
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DriverBasedJdbcDataSource
  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

Abstract Value Members

  1. abstract 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
    JdbcDataSource → Closeable → AutoCloseable
  2. abstract 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
    JdbcDataSource

Concrete Value Members

  1. def deregisterDriver(): Boolean

    Deregister the JDBC driver if it was registered by this JdbcDataSource.

    Deregister the JDBC driver if it was registered by this JdbcDataSource. Returns true if an attempt was made to deregister a driver.

  2. 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
    DriverBasedJdbcDataSourceJdbcDataSource