Packages

t

slick.jdbc.JdbcBackend

JdbcSessionDef

trait JdbcSessionDef extends BasicSessionDef

Self Type
JdbcSessionDef
Source
JdbcBackend.scala
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JdbcSessionDef
  2. BasicSessionDef
  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 capabilities: DatabaseCapabilities
  2. abstract def close(): Unit

    Close this Session.

    Close this Session.

    Definition Classes
    JdbcSessionDefBasicSessionDef → Closeable → AutoCloseable
  3. abstract def conn: Connection
  4. abstract def database: Database
  5. abstract def metaData: DatabaseMetaData

Concrete Value Members

  1. final def createStatement(defaultType: ResultSetType = ResultSetType.ForwardOnly, defaultConcurrency: ResultSetConcurrency = ResultSetConcurrency.ReadOnly, defaultHoldability: ResultSetHoldability = ResultSetHoldability.Default): Statement
  2. def decorateStatement[S <: Statement](statement: S): S
  3. def fetchSize: Int
  4. def force(): Unit

    Force an actual database session to be opened.

    Force an actual database session to be opened. Slick sessions are lazy, so you do not get a real database connection until you need it or you call force() on the session.

    Definition Classes
    JdbcSessionDefBasicSessionDef
  5. final def prepareInsertStatement(sql: String, columnIndexes: Array[Int]): PreparedStatement
  6. final def prepareInsertStatement(sql: String, columnNames: Array[String] = new Array[String](0)): PreparedStatement
  7. final def prepareStatement(sql: String, defaultType: ResultSetType = ResultSetType.ForwardOnly, defaultConcurrency: ResultSetConcurrency = ResultSetConcurrency.ReadOnly, defaultHoldability: ResultSetHoldability = ResultSetHoldability.Default, fetchSizeOverride: Option[Int] = None): PreparedStatement
  8. def resultSetConcurrency: ResultSetConcurrency
  9. def resultSetHoldability: ResultSetHoldability
  10. def resultSetType: ResultSetType
  11. final def withPreparedInsertStatement[T](sql: String, columnIndexes: Array[Int])(f: (PreparedStatement) => T): T

    A wrapper around the JDBC Connection's prepareInsertStatement method, that automatically closes the statement.

  12. final def withPreparedInsertStatement[T](sql: String, columnNames: Array[String] = new Array[String](0))(f: (PreparedStatement) => T): T

    A wrapper around the JDBC Connection's prepareInsertStatement method, that automatically closes the statement.

  13. final def withPreparedStatement[T](sql: String, defaultType: ResultSetType = ResultSetType.ForwardOnly, defaultConcurrency: ResultSetConcurrency = ResultSetConcurrency.ReadOnly, defaultHoldability: ResultSetHoldability = ResultSetHoldability.Default)(f: (PreparedStatement) => T): T

    A wrapper around the JDBC Connection's prepareStatement method, that automatically closes the statement.

  14. final def withStatement[T](defaultType: ResultSetType = ResultSetType.ForwardOnly, defaultConcurrency: ResultSetConcurrency = ResultSetConcurrency.ReadOnly, defaultHoldability: ResultSetHoldability = ResultSetHoldability.Default)(f: (Statement) => T): T

    A wrapper around the JDBC Connection's createStatement method, that automatically closes the statement.