Packages

object JdbcBackend extends JdbcBackend

Source
JdbcBackend.scala
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JdbcBackend
  2. JdbcBackend
  3. RelationalBackend
  4. BasicBackend
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait AnyDatabaseDef extends Closeable

    Non-parameterized marker trait for any database instance, regardless of effect type.

    Non-parameterized marker trait for any database instance, regardless of effect type. Use this type when you need to refer to "any database" without knowing the effect type.

    Definition Classes
    BasicBackend
  2. trait BasicActionContext extends AnyRef

    The context object passed to SynchronousDatabaseAction instances by the execution engine.

    The context object passed to SynchronousDatabaseAction instances by the execution engine. The heavy concurrency state lives in ExecState / Ref; this is a thin wrapper that gives SDAs access to the session and statement parameters.

    Definition Classes
    BasicBackend
  3. trait BasicDatabaseDef[F[_]] extends AnyDatabaseDef

    A database instance to which connections can be created.

    A database instance to which connections can be created.

    F[_] is the effect type (e.g. cats.effect.IO). All run and stream calls on a given database instance use the same effect type.

    Concrete subclasses supply:

    • asyncF
    • controls (admission control + connection arbiter)
    Definition Classes
    BasicBackend
  4. trait BasicSessionDef extends Closeable

    A logical session of a Database.

    A logical session of a Database. The underlying database connection is created lazily on demand.

    Definition Classes
    BasicBackend
  5. case class ExecState(ordinal: Long, session: Option[AnyRef], sessionRelease: Option[AnyRef], transactionDepth: Int, isolationLevel: Option[Int], previousIsolationLevel: Option[Int], pinnedDepth: Int) extends Product with Serializable

    Per-db.run execution state carried through the interpreter via a CE3 Ref.

    Per-db.run execution state carried through the interpreter via a CE3 Ref.

    session is typed as Option[AnyRef] rather than Option[Session] to avoid path-dependent type issues with the abstract Session type member in Scala 2.13. Callers cast to Session as needed.

    sessionRelease holds the finalizer produced by Resource.allocated for the currently-open session + semaphore permit pair. It is set when a session is first acquired and cleared (and run) when the session is released.

    Definition Classes
    BasicBackend
  6. class BaseSession[F[_]] extends JdbcSessionDef
    Definition Classes
    JdbcBackend
  7. type Context = JdbcActionContext

    The type of the context used for running SynchronousDatabaseActions

    The type of the context used for running SynchronousDatabaseActions

    Definition Classes
    JdbcBackendBasicBackend
  8. type Database[F[_]] = JdbcDatabaseDef[F]

    The type of database objects used by this backend, parameterized by effect type.

    The type of database objects used by this backend, parameterized by effect type.

    Definition Classes
    JdbcBackendBasicBackend
  9. class DatabaseCapabilities extends AnyRef

    Describes capabilities of the database which can be determined from a DatabaseMetaData object and then cached and reused for all sessions.

    Describes capabilities of the database which can be determined from a DatabaseMetaData object and then cached and reused for all sessions.

    Definition Classes
    JdbcBackend
  10. trait JdbcActionContext extends BasicActionContext
    Definition Classes
    JdbcBackend
  11. abstract class JdbcDatabaseDef[F[_]] extends BasicDatabaseDef[F]

    A JDBC database connected to a given DataSource.

    A JDBC database connected to a given DataSource.

    F[_] is the effect type (e.g. cats.effect.IO). Construct via DatabaseConfig.forConfig[IO](...) etc. — this returns a Resource[IO, Database[IO]] that manages connection pool lifecycle.

    Definition Classes
    JdbcBackend
  12. trait JdbcSessionDef extends BasicSessionDef
    Definition Classes
    JdbcBackend
  13. type Session = JdbcSessionDef

    The type of session objects used by this backend.

    The type of session objects used by this backend.

    Definition Classes
    JdbcBackendBasicBackend
  14. case class StatementParameters(rsType: ResultSetType, rsConcurrency: ResultSetConcurrency, rsHoldability: ResultSetHoldability, statementInit: (Statement) => Unit, fetchSize: Int) extends Product with Serializable

Value Members

  1. object ExecState extends Serializable
    Definition Classes
    BasicBackend
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. final def ##: Int
    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. lazy val actionLogger: SlickLogger
    Attributes
    protected
    Definition Classes
    BasicBackend
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. val backend: JdbcBackend
    Definition Classes
    JdbcBackend
  8. lazy val benchmarkLogger: SlickLogger
    Attributes
    protected[jdbc]
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  10. final def defaultActionLogger[F[_]]: ActionListener[F]
    Attributes
    protected
    Definition Classes
    BasicBackend
  11. val defaultStatementParameters: StatementParameters
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def logAction(a: DBIOAction[_, NoStream, Nothing]): Unit
    Attributes
    protected[this]
    Definition Classes
    BasicBackend
  18. def logStatement(msg: String, stmt: String): Unit
    Attributes
    protected[jdbc]
  19. def makeDatabase[F[_]](config: JdbcDatabaseConfig[_])(implicit arg0: Async[F]): F[Database[F]]
    Definition Classes
    JdbcBackend
  20. def makeDatabase[F[_]](config: JdbcDatabaseConfig[_], actionListener: ActionListener[F])(implicit arg0: Async[F]): F[Database[F]]
    Definition Classes
    JdbcBackend
  21. def makeDatabase[F[_]](config: BasicDatabaseConfig[_], actionListener: ActionListener[F] = defaultActionLogger[F])(implicit arg0: Async[F]): F[Database[F]]

    Create a Database instance from a slick.basic.BasicDatabaseConfig.

    Create a Database instance from a slick.basic.BasicDatabaseConfig.

    Definition Classes
    JdbcBackendBasicBackend
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  25. lazy val parameterLogger: SlickLogger
    Attributes
    protected[jdbc]
  26. lazy val statementAndParameterLogger: SlickLogger
    Attributes
    protected[jdbc]
  27. lazy val statementLogger: SlickLogger
    Attributes
    protected[jdbc]
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from JdbcBackend

Inherited from RelationalBackend

Inherited from BasicBackend

Inherited from AnyRef

Inherited from Any

Ungrouped