scala.slick.driver

JdbcDriver

object JdbcDriver extends JdbcDriver

A generic driver for JDBC-based databases. This can be used as a fallback when a specific driver for a database is not available.

Source
JdbcProfile.scala
Linear Supertypes
Content Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JdbcDriver
  2. JdbcDriver
  3. JdbcMappingCompilerComponent
  4. JdbcStatementBuilderComponent
  5. JdbcProfile
  6. JdbcModelComponent
  7. JdbcTypesComponent
  8. JdbcExecutorComponent
  9. JdbcInsertInvokerComponent
  10. JdbcInvokerComponent
  11. JdbcTableComponent
  12. SqlDriver
  13. SqlUtilsComponent
  14. SqlProfile
  15. SqlTableComponent
  16. SqlExecutorComponent
  17. RelationalDriver
  18. RelationalProfile
  19. RelationalTypesComponent
  20. RelationalSequenceComponent
  21. RelationalTableComponent
  22. BasicDriver
  23. BasicProfile
  24. BasicExecutorComponent
  25. BasicInsertInvokerComponent
  26. BasicInvokerComponent
  27. AnyRef
  28. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Backend = JdbcBackend

    The back-end type required by this profile

    The back-end type required by this profile

    Definition Classes
    JdbcProfileBasicProfile
  2. type BaseColumnType[T] = JdbcType[T] with BaseTypedType[T]

    Definition Classes
    JdbcProfileRelationalTypesComponent
  3. abstract class BaseInsertInvoker[U] extends JdbcDriver.FullInsertInvokerDef[U]

    Attributes
    protected
    Definition Classes
    JdbcInsertInvokerComponent
  4. class CheckInsertBuilder extends JdbcDriver.UpsertBuilder

    Builder for SELECT statements that can be used to check for the existing of primary keys supplied to an INSERT operation.

  5. class ColumnDDLBuilder extends AnyRef

    Builder for column specifications in DDL statements.

  6. trait ColumnOptions extends JdbcDriver.ColumnOptions

  7. type ColumnType[T] = JdbcType[T]

    Definition Classes
    JdbcProfileRelationalTypesComponent
  8. type CompiledInsert = JdbcCompiledInsert

    The type of a (partially) compiled AST for Insert operations.

    The type of a (partially) compiled AST for Insert operations. Unlike querying or deleting, inserts may require different compilation results which should be computed lazily.

    Definition Classes
    JdbcProfileBasicInsertInvokerComponent
  9. class CountingInsertInvoker[U] extends JdbcDriver.BaseInsertInvoker[U] with JdbcDriver.CountingInsertInvokerDef[U]

    Attributes
    protected
    Definition Classes
    JdbcInsertInvokerComponent
  10. trait CountingInsertInvokerDef[U] extends JdbcDriver.FullInsertInvokerDef[U]

    An InsertInvoker that returns the number of affected rows.

  11. trait DDL extends SqlDriver.SchemaDescriptionDef

    Definition Classes
    SqlProfile
  12. class DDLInvoker extends JdbcDriver.DDLInvoker

    Pseudo-invoker for running DDL statements.

  13. class DeleteInvoker extends AnyRef

    Pseudo-invoker for running DELETE calls.

  14. abstract class DriverJdbcType[T] extends JdbcType[T]

    Definition Classes
    JdbcTypesComponent
  15. trait FullInsertInvokerDef[U] extends JdbcDriver.InsertInvokerDef[U]

    An InsertInvoker that can also insert from another query.

  16. trait ImplicitColumnTypes extends JdbcDriver.ImplicitColumnTypes

  17. trait Implicits extends JdbcDriver.LowPriorityImplicits with JdbcDriver.Implicits with JdbcDriver.ImplicitColumnTypes

    Definition Classes
    JdbcProfileRelationalProfileBasicProfile
  18. class InsertBuilder extends AnyRef

    Builder for INSERT statements.

  19. type InsertInvoker[T] = CountingInsertInvokerDef[T]

    The type of insert invokers returned by the driver

    The type of insert invokers returned by the driver

    Definition Classes
    JdbcInsertInvokerComponentBasicInsertInvokerComponent
  20. trait InsertInvokerDef[U] extends JdbcDriver.InsertInvokerDef[U]

    The JDBC-specific InsertInvoker with additional methods

  21. trait IntoInsertInvokerDef[U, R] extends JdbcDriver.InsertInvokerDef[U]

    An InsertInvoker that returns a mapping of inserted values and generated keys.

  22. class JdbcCodeGen extends CodeGen

    Code generator phase for queries on JdbcProfile-based drivers.

  23. class JdbcCompiledInsert extends AnyRef

  24. class JdbcFastPathExtensionMethods[T, P] extends AnyRef

    Definition Classes
    JdbcMappingCompilerComponent
  25. class JdbcInsertCodeGen extends CodeGen

    Code generator phase for inserts on JdbcProfile-based drivers.

  26. class JdbcTypes extends AnyRef

    Definition Classes
    JdbcTypesComponent
  27. trait LowPriorityImplicits extends AnyRef

    Definition Classes
    JdbcProfile
  28. trait MappedColumnTypeFactory extends AnyRef

    Definition Classes
    RelationalTypesComponent
  29. abstract class MappedJdbcType[T, U] extends JdbcType[T]

    Definition Classes
    JdbcTypesComponent
  30. class MappingCompiler extends ResultConverterCompiler[JdbcResultConverterDomain]

    A ResultConverterCompiler that builds JDBC-based converters.

  31. class ModelBuilder extends AnyRef

    Build a Slick model from introspecting the jdbc meta data.

  32. trait OracleStyleRowNum extends JdbcDriver.QueryBuilder

    QueryBuilder mix-in for Oracle-style ROWNUM (applied before ORDER BY and GROUP BY) instead of the standard SQL ROWNUMBER().

  33. class QueryBuilder extends AnyRef

    Builder for SELECT and UPDATE statements.

  34. type QueryExecutor[T] = QueryExecutorDef[T]

    The type of query executors returned by the driver

    The type of query executors returned by the driver

    Definition Classes
    JdbcExecutorComponentSqlExecutorComponentBasicExecutorComponent
  35. class QueryExecutorDef[R] extends JdbcDriver.QueryExecutorDef[R]

    Base class for QueryExecutor implementations

  36. class QueryInvoker[R] extends StatementInvoker[R] with MutatingStatementInvoker[R]

    An Invoker for queries.

  37. class QuotingSymbolNamer extends SymbolNamer

    Definition Classes
    SqlUtilsComponent
  38. class ReturningInsertInvoker[U, RU] extends JdbcDriver.BaseInsertInvoker[U] with JdbcDriver.ReturningInsertInvokerDef[U, RU]

    Attributes
    protected
    Definition Classes
    JdbcInsertInvokerComponent
  39. trait ReturningInsertInvokerDef[U, RU] extends JdbcDriver.FullInsertInvokerDef[U]

    In InsertInvoker that returns generated keys or other columns.

  40. trait RowNumberPagination extends JdbcDriver.QueryBuilder

    QueryBuilder mix-in for pagination based on RowNumber.

  41. type SchemaDescription = DDL

    The type of a schema description (DDL)

    The type of a schema description (DDL)

    Definition Classes
    SqlProfileBasicProfile
  42. trait SchemaDescriptionDef extends AnyRef

    A schema description contains the SQL statements for creating and dropping database entities.

  43. class Sequence[T] extends Typed

    Definition Classes
    RelationalSequenceComponent
  44. class SequenceDDLBuilder extends AnyRef

    Builder for DDL statements for sequences.

  45. trait SimpleQL extends JdbcDriver.SimpleQL with JdbcDriver.Implicits

    Definition Classes
    JdbcProfileRelationalProfileBasicProfile
  46. abstract class StatementPart extends AnyRef

  47. abstract class Table[T] extends AbstractTable[T]

    Definition Classes
    RelationalTableComponent
  48. class TableDDLBuilder extends AnyRef

    Builder for various DDL statements.

  49. class TableQueryExtensionMethods[T <: RelationalDriver.Table[_], U] extends AnyRef

    Definition Classes
    RelationalProfile
  50. class UpdateInsertBuilder extends JdbcDriver.UpsertBuilder

    Builder for UPDATE statements used as part of an insertOrUpdate operation on databases that don't support this in a single server-side statement.

  51. class UpdateInvoker[T] extends AnyRef

    Pseudo-invoker for running UPDATE calls.

  52. class UpsertBuilder extends JdbcDriver.InsertBuilder

    Builder for upsert statements, builds standard SQL MERGE statements by default.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object DDL

    Definition Classes
    SqlProfile
  7. object FromPart extends JdbcDriver.StatementPart with Product with Serializable

  8. lazy val Implicit: Implicits

    Definition Classes
    JdbcProfileRelationalProfileBasicProfile
  9. object JdbcType

    Definition Classes
    JdbcTypesComponent
  10. lazy val MappedColumnType: MappedJdbcType.type

    Definition Classes
    JdbcProfileRelationalTypesComponent
  11. object MappedJdbcType extends JdbcDriver.MappedColumnTypeFactory

    Definition Classes
    JdbcTypesComponent
  12. object OtherPart extends JdbcDriver.StatementPart with Product with Serializable

  13. object SelectPart extends JdbcDriver.StatementPart with Product with Serializable

  14. object Sequence

    Definition Classes
    RelationalSequenceComponent
  15. object WherePart extends JdbcDriver.StatementPart with Product with Serializable

  16. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  17. val backend: Backend

    The back-end implementation for this profile

    The back-end implementation for this profile

    Definition Classes
    JdbcProfileBasicProfile
  18. final def buildSequenceSchemaDescription(seq: Sequence[_]): DDL

  19. final def buildTableSchemaDescription(table: Table[_]): DDL

    Definition Classes
    JdbcProfileRelationalTableComponent
  20. final val capabilities: Set[Capability]

    The capabilities supported by this driver.

    The capabilities supported by this driver. This can be used to query at runtime whether a specific feature is supported.

    Definition Classes
    BasicProfile
  21. lazy val checkInsertCompiler: QueryCompiler

    Definition Classes
    JdbcProfile
  22. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. val columnOptions: ColumnOptions

  24. val columnTypes: JdbcTypes

    Definition Classes
    JdbcProfile
  25. def compileInsert(tree: Node): JdbcCompiledInsert

    (Partially) ompile an AST for insert operations

    (Partially) ompile an AST for insert operations

    Definition Classes
    JdbcProfileBasicProfile
  26. final lazy val compiler: QueryCompiler

    Definition Classes
    RelationalProfile
  27. def computeCapabilities: Set[Capability]

    Compute the capabilities.

    Compute the capabilities. This should be overridden in subclasses as needed.

    Attributes
    protected
    Definition Classes
    JdbcProfileSqlProfileRelationalProfileBasicProfile
  28. def computeQueryCompiler: QueryCompiler

    Attributes
    protected
    Definition Classes
    JdbcProfileRelationalProfile
  29. def createBaseResultConverter[T](ti: JdbcType[T], name: String, idx: Int): ResultConverter[JdbcResultConverterDomain, T]

    Create a (possibly specialized) ResultConverter for the given JdbcType.

    Create a (possibly specialized) ResultConverter for the given JdbcType.

    Definition Classes
    JdbcMappingCompilerComponent
  30. def createCheckInsertBuilder(node: Insert): InsertBuilder

  31. def createColumnDDLBuilder(column: FieldSymbol, table: Table[_]): ColumnDDLBuilder

  32. def createCountingInsertInvoker[U](compiled: CompiledInsert): CountingInsertInvokerDef[U]

    Definition Classes
    JdbcInsertInvokerComponent
  33. def createDDLInvoker(ddl: SchemaDescription): DDLInvoker

    Create a DDLInvoker -- this method should be implemented by drivers as needed

    Create a DDLInvoker -- this method should be implemented by drivers as needed

    Definition Classes
    JdbcInvokerComponentBasicInvokerComponent
  34. def createDeleteInvoker(tree: Node, param: Any): DeleteInvoker

    Definition Classes
    JdbcInvokerComponent
  35. def createInsertBuilder(node: Insert): InsertBuilder

  36. def createInsertInvoker[U](tree: CompiledInsert): CountingInsertInvokerDef[U]

    Create an InsertInvoker -- this method should be implemented by drivers as needed

    Create an InsertInvoker -- this method should be implemented by drivers as needed

    Definition Classes
    JdbcInsertInvokerComponentBasicInsertInvokerComponent
  37. def createModel(tables: Option[Seq[MTable]] = None, ignoreInvalidDefaults: Boolean = true)(implicit session: SessionDef): Model

    Gets the Slick data model describing this data source

    Gets the Slick data model describing this data source

    tables

    used to build the model, uses defaultTables if None given

    ignoreInvalidDefaults

    logs unrecognized default values instead of throwing an exception

    Definition Classes
    JdbcModelComponent
  38. def createOptionResultConverter[T](ti: JdbcType[T], idx: Int): ResultConverter[JdbcResultConverterDomain, Option[T]]

    Create a (possibly specialized) ResultConverter for Option values of the given JdbcType.

    Create a (possibly specialized) ResultConverter for Option values of the given JdbcType.

    Definition Classes
    JdbcMappingCompilerComponent
  39. def createQueryBuilder(n: Node, state: CompilerState): QueryBuilder

  40. def createQueryExecutor[R](tree: Node, param: Any): QueryExecutor[R]

    Create an executor -- this method should be implemented by drivers as needed

    Create an executor -- this method should be implemented by drivers as needed

    Definition Classes
    JdbcExecutorComponentSqlExecutorComponentBasicExecutorComponent
  41. def createQueryInvoker[R](tree: Node, param: Any): QueryInvoker[R]

    Definition Classes
    JdbcInvokerComponent
  42. def createReturningInsertInvoker[U, RU](compiled: CompiledInsert, keys: Node): ReturningInsertInvokerDef[U, RU]

    Definition Classes
    JdbcInsertInvokerComponent
  43. def createSequenceDDLBuilder(seq: Sequence[_]): SequenceDDLBuilder

  44. def createTableDDLBuilder(table: Table[_]): TableDDLBuilder

  45. def createUpdateInsertBuilder(node: Insert): InsertBuilder

  46. def createUpdateInvoker[T](tree: Node, param: Any): UpdateInvoker[T]

    Definition Classes
    JdbcInvokerComponent
  47. def createUpsertBuilder(node: Insert): InsertBuilder

  48. def defaultSqlTypeName(tmd: JdbcType[_]): String

    Definition Classes
    JdbcTypesComponent
  49. def defaultTables(implicit session: SessionDef): Seq[MTable]

    Jdbc meta data for all tables included in the Slick model by default

    Jdbc meta data for all tables included in the Slick model by default

    Definition Classes
    JdbcModelComponent
  50. lazy val deleteCompiler: QueryCompiler

    Definition Classes
    JdbcProfileBasicProfile
  51. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  52. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  53. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  54. lazy val forceInsertCompiler: QueryCompiler

    Definition Classes
    JdbcProfile
  55. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  56. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  57. lazy val insertCompiler: QueryCompiler

    Definition Classes
    JdbcProfileBasicProfile
  58. val invokerMutateConcurrency: ResultSetConcurrency

    Attributes
    protected
    Definition Classes
    JdbcInvokerComponent
  59. val invokerMutateType: ResultSetType

    Attributes
    protected
    Definition Classes
    JdbcInvokerComponent
  60. val invokerPreviousAfterDelete: Boolean

    Attributes
    protected
    Definition Classes
    JdbcInvokerComponent
  61. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  62. def jdbcTypeFor(t: Type): JdbcType[Any]

    Definition Classes
    JdbcTypesComponent
  63. def likeEncode(s: String): String

    Definition Classes
    SqlUtilsComponent
  64. val mappingCompiler: MappingCompiler

    The MappingCompiler for this driver.

    The MappingCompiler for this driver.

    Definition Classes
    JdbcMappingCompilerComponent
  65. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  66. final def notify(): Unit

    Definition Classes
    AnyRef
  67. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  68. val profile: JdbcProfile

    The external interface of this driver which defines the API.

    The external interface of this driver which defines the API.

    Definition Classes
    JdbcDriverSqlDriverRelationalDriverBasicDriver
  69. lazy val queryCompiler: QueryCompiler

    Definition Classes
    JdbcProfileBasicProfile
  70. def quoteIdentifier(id: String): String

    quotes identifiers to avoid collisions with SQL keywords and other syntax issues

    quotes identifiers to avoid collisions with SQL keywords and other syntax issues

    Definition Classes
    SqlUtilsComponent
  71. def quoteTableName(t: TableNode): String

    Definition Classes
    SqlUtilsComponent
  72. val scalarFrom: Option[String]

    The table name for scalar selects (e.

    The table name for scalar selects (e.g. "select 42 from DUAL;"), or None for scalar selects without a FROM clause ("select 42;").

    Definition Classes
    JdbcStatementBuilderComponent
  73. val simple: SimpleQL

    A collection of values for using the query language with a single import statement.

    A collection of values for using the query language with a single import statement. This provides the driver's implicits, the Database and Session objects for DB connections, and commonly used query language types and objects.

    Definition Classes
    JdbcProfileRelationalProfileBasicProfile
  74. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  75. def toString(): String

    Definition Classes
    BasicDriver → AnyRef → Any
  76. lazy val updateCompiler: QueryCompiler

    Definition Classes
    JdbcProfileBasicProfile
  77. lazy val updateInsertCompiler: QueryCompiler

    Definition Classes
    JdbcProfile
  78. lazy val upsertCompiler: QueryCompiler

    Definition Classes
    JdbcProfile
  79. lazy val useServerSideUpsert: Boolean

    Attributes
    protected
    Definition Classes
    JdbcInsertInvokerComponent
  80. lazy val useServerSideUpsertReturning: Boolean

    Attributes
    protected
    Definition Classes
    JdbcInsertInvokerComponent
  81. lazy val useTransactionForUpsert: Boolean

    Attributes
    protected
    Definition Classes
    JdbcInsertInvokerComponent
  82. lazy val useTransactionForUpsertReturning: Boolean

    Attributes
    protected
    Definition Classes
    JdbcInsertInvokerComponent
  83. def valueToSQLLiteral(v: Any, tpe: Type): String

    Create a SQL representation of a literal value.

    Create a SQL representation of a literal value.

    Definition Classes
    JdbcStatementBuilderComponent
  84. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  85. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  86. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def createModel(implicit session: SessionDef): Model

    Definition Classes
    JdbcModelComponent
    Annotations
    @deprecated
    Deprecated

    (Since version 2.1) use createModel() instead (appending parenthesis)

  2. final def getTables: Invoker[MTable]

    Definition Classes
    JdbcModelComponent
    Annotations
    @deprecated
    Deprecated

    (Since version 2.1) use defaultTables instead

Inherited from JdbcDriver

Inherited from JdbcProfile

Inherited from JdbcModelComponent

Inherited from JdbcTypesComponent

Inherited from JdbcExecutorComponent

Inherited from JdbcInvokerComponent

Inherited from JdbcTableComponent

Inherited from SqlDriver

Inherited from SqlUtilsComponent

Inherited from SqlProfile

Inherited from SqlTableComponent

Inherited from SqlExecutorComponent

Inherited from RelationalDriver

Inherited from RelationalProfile

Inherited from RelationalTypesComponent

Inherited from RelationalTableComponent

Inherited from BasicDriver

Inherited from BasicProfile

Inherited from BasicExecutorComponent

Inherited from BasicInvokerComponent

Inherited from AnyRef

Inherited from Any

Ungrouped