scala.slick.driver

MySQLDriver

trait MySQLDriver extends JdbcDriver

Slick driver for MySQL.

This driver implements scala.slick.driver.JdbcProfile without the following capabilities:

Sequences are supported through an emulation which requires the schema to be created by Slick. You can also use an existing schema with your own sequence emulation if you provide for each sequence s a pair of functions s_nextval and s_currval.

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

Type Members

  1. abstract class AbstractKeysInsertInvoker[U, RU] extends JdbcDriver.BaseInsertInvoker[U]

    Base class with common functionality for KeysInsertInvoker and MappedKeysInsertInvoker.

  2. type Backend = JdbcBackend

    The back-end type required by this profile

    The back-end type required by this profile

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

    Definition Classes
    JdbcProfileRelationalTypesComponent
  4. abstract class BaseInsertInvoker[U] extends JdbcDriver.InsertInvokerDef[U]

    Pseudo-invoker for running INSERT calls.

  5. class ColumnDDLBuilder extends MySQLDriver.ColumnDDLBuilder

    Builder for column specifications in DDL statements.

  6. trait ColumnOptions extends JdbcDriver.ColumnOptions

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

    Definition Classes
    JdbcProfileRelationalTypesComponent
  8. class CountingInsertInvoker[U] extends JdbcDriver.BaseInsertInvoker[U] with JdbcDriver.FullInsertInvoker[U]

    Pseudo-invoker for running INSERT calls and returning affected row counts.

  9. trait DDL extends SqlDriver.SchemaDescriptionDef

    Definition Classes
    SqlProfile
  10. class DDLInvoker extends JdbcDriver.DDLInvoker

    Pseudo-invoker for running DDL statements.

  11. class DeleteInvoker extends AnyRef

    Pseudo-invoker for running DELETE calls.

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

    Definition Classes
    JdbcTypesComponent
  13. trait FullInsertInvoker[U] extends AnyRef

    An InsertInvoker that can also insert from another query.

  14. trait ImplicitColumnTypes extends JdbcDriver.ImplicitColumnTypes

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

    Definition Classes
    JdbcProfileRelationalProfileBasicProfile
  16. class InsertBuilder extends AnyRef

    Builder for INSERT statements.

  17. type InsertInvoker[T] = CountingInsertInvoker[T]

    The type of insert invokers returned by the driver

    The type of insert invokers returned by the driver

    Definition Classes
    JdbcInvokerComponentBasicInvokerComponent
  18. trait InsertInvokerDef[T] extends AnyRef

    Definition Classes
    BasicInvokerComponent
  19. class JdbcCodeGen extends CodeGen

    Code generator phase for JdbcProfile-based drivers.

  20. class JdbcFastPathExtensionMethods[T, P] extends AnyRef

    Definition Classes
    JdbcMappingCompilerComponent
  21. class JdbcInsertCompiler extends InsertCompiler

    Definition Classes
    JdbcMappingCompilerComponent
  22. class JdbcTypes extends MySQLDriver.JdbcTypes

    Definition Classes
    MySQLDriverJdbcTypesComponent
  23. class KeysInsertInvoker[U, RU] extends JdbcDriver.AbstractKeysInsertInvoker[U, RU] with JdbcDriver.FullInsertInvoker[U]

    Pseudo-invoker for running INSERT calls and returning generated keys.

  24. trait LowPriorityImplicits extends AnyRef

    Definition Classes
    JdbcProfile
  25. trait MappedColumnTypeFactory extends AnyRef

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

    Definition Classes
    JdbcTypesComponent
  27. class MappedKeysInsertInvoker[U, RU, R] extends JdbcDriver.AbstractKeysInsertInvoker[U, RU]

    Pseudo-invoker for running INSERT calls and returning generated keys combined with the values.

  28. class MappingCompiler extends ResultConverterCompiler[JdbcResultConverterDomain]

    A ResultConverterCompiler that builds JDBC-based converters.

  29. 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().

  30. class QueryBuilder extends MySQLDriver.QueryBuilder

    Builder for SELECT and UPDATE statements.

  31. 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
  32. class QueryExecutorDef[R] extends JdbcDriver.QueryExecutorDef[R]

    Base class for QueryExecutor implementations

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

    An Invoker for queries.

  34. class QuotingSymbolNamer extends SymbolNamer

    Definition Classes
    SqlUtilsComponent
  35. trait RowNumberPagination extends JdbcDriver.QueryBuilder

    QueryBuilder mix-in for pagination based on RowNumber.

  36. type SchemaDescription = DDL

    The type of a schema description (DDL)

    The type of a schema description (DDL)

    Definition Classes
    SqlProfileBasicProfile
  37. trait SchemaDescriptionDef extends AnyRef

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

  38. class Sequence[T] extends Typed

    Definition Classes
    RelationalSequenceComponent
  39. class SequenceDDLBuilder[T] extends MySQLDriver.SequenceDDLBuilder

    Builder for DDL statements for sequences.

  40. trait SimpleQL extends JdbcDriver.SimpleQL with JdbcDriver.Implicits

    Definition Classes
    JdbcProfileRelationalProfileBasicProfile
  41. abstract class StatementPart extends AnyRef

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

    Definition Classes
    RelationalTableComponent
  43. class TableDDLBuilder extends MySQLDriver.TableDDLBuilder

    Builder for various DDL statements.

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

    Definition Classes
    RelationalProfile
  45. type UnshapedQueryExecutor[T] = UnshapedQueryExecutorDef[T]

    The type of query executors returned by the driver

    The type of query executors returned by the driver

    Definition Classes
    JdbcExecutorComponentBasicExecutorComponent
  46. class UnshapedQueryExecutorDef[M] extends JdbcDriver.UnshapedQueryExecutorDef[M]

  47. class UpdateInvoker[T] extends AnyRef

    Pseudo-invoker for running UPDATE calls.

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. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from MySQLDriver to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (MySQLDriver, B)

    Implicit information
    This member is added by an implicit conversion from MySQLDriver to ArrowAssoc[MySQLDriver] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  8. object DDL

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

  10. lazy val Implicit: Implicits

    Definition Classes
    JdbcProfileRelationalProfileBasicProfile
  11. object JdbcType

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

    Definition Classes
    JdbcProfileRelationalTypesComponent
  13. object MappedJdbcType extends JdbcDriver.MappedColumnTypeFactory

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

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

  16. object Sequence

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

  18. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  19. val backend: Backend

    The back-end implementation for this profile

    The back-end implementation for this profile

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

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

    Definition Classes
    JdbcProfileRelationalTableComponent
  22. 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
  23. def clone(): AnyRef

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

  25. val columnTypes: JdbcTypes

    Definition Classes
    MySQLDriverJdbcProfile
  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
    MySQLDriverJdbcProfileSqlProfileRelationalProfileBasicProfile
  28. def computeQueryCompiler: QueryCompiler

    Attributes
    protected
    Definition Classes
    JdbcProfileRelationalProfile
  29. def createBaseResultConverter[T](ti: JdbcType[T], name: String, fullIdx: Int, skippingIdx: 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 createColumnDDLBuilder(column: FieldSymbol, table: Table[_]): ColumnDDLBuilder

  31. def createCountingInsertInvoker[U](tree: Node): CountingInsertInvoker[U]

    Definition Classes
    JdbcInvokerComponent
  32. 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
  33. def createDeleteInvoker(tree: Node, param: Any): DeleteInvoker

    Definition Classes
    JdbcInvokerComponent
  34. def createInsertBuilder(node: Node): InsertBuilder

  35. def createInsertInvoker[U](tree: Node): CountingInsertInvoker[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
    JdbcInvokerComponentBasicInvokerComponent
  36. def createKeysInsertInvoker[U, RU](tree: Node, keys: Node): KeysInsertInvoker[U, RU]

    Definition Classes
    JdbcInvokerComponent
  37. def createMappedKeysInsertInvoker[U, RU, R](tree: Node, keys: Node, tr: (U, RU) ⇒ R): MappedKeysInsertInvoker[U, RU, R]

    Definition Classes
    JdbcInvokerComponent
  38. def createMappingCompiler: MappingCompiler

    Create a MappingCompiler for this driver.

    Create a MappingCompiler for this driver.

    Definition Classes
    JdbcMappingCompilerComponent
  39. def createModel(implicit session: SessionDef): Model

    Gets the Slick data model describing this data source

    Gets the Slick data model describing this data source

    Definition Classes
    JdbcProfile
  40. def createOptionResultConverter[T](ti: JdbcType[T], fullIdx: Int, skippingIdx: 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
  41. def createQueryBuilder(n: Node, state: CompilerState): QueryBuilder

  42. 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
  43. def createQueryInvoker[R](tree: Node, param: Any): QueryInvoker[R]

    Definition Classes
    JdbcInvokerComponent
  44. def createSequenceDDLBuilder(seq: Sequence[_]): SequenceDDLBuilder[_]

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

  46. def createUnshapedQueryExecutor[M](value: M): UnshapedQueryExecutor[M]

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

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

    Definition Classes
    JdbcTypesComponent
  49. lazy val deleteCompiler: QueryCompiler

    Definition Classes
    JdbcProfileBasicProfile
  50. def ensuring(cond: (MySQLDriver) ⇒ Boolean, msg: ⇒ Any): MySQLDriver

    Implicit information
    This member is added by an implicit conversion from MySQLDriver to Ensuring[MySQLDriver] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  51. def ensuring(cond: (MySQLDriver) ⇒ Boolean): MySQLDriver

    Implicit information
    This member is added by an implicit conversion from MySQLDriver to Ensuring[MySQLDriver] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  52. def ensuring(cond: Boolean, msg: ⇒ Any): MySQLDriver

    Implicit information
    This member is added by an implicit conversion from MySQLDriver to Ensuring[MySQLDriver] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  53. def ensuring(cond: Boolean): MySQLDriver

    Implicit information
    This member is added by an implicit conversion from MySQLDriver to Ensuring[MySQLDriver] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  54. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  57. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from MySQLDriver to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  58. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  59. def getTables: Invoker[MTable]

    Jdbc meta data for all tables

    Jdbc meta data for all tables

    Definition Classes
    JdbcProfile
  60. def hashCode(): Int

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

    Definition Classes
    JdbcProfileBasicProfile
  62. val invokerMutateConcurrency: ResultSetConcurrency

    Definition Classes
    JdbcInvokerComponent
  63. val invokerMutateType: ResultSetType

    Definition Classes
    JdbcInvokerComponent
  64. val invokerPreviousAfterDelete: Boolean

    Definition Classes
    JdbcInvokerComponent
  65. final def isInstanceOf[T0]: Boolean

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

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

    Definition Classes
    SqlUtilsComponent
  68. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  71. 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
  72. lazy val queryCompiler: QueryCompiler

    Definition Classes
    JdbcProfileBasicProfile
  73. 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
    MySQLDriverSqlUtilsComponent
  74. def quoteTableName(t: TableNode): String

    Definition Classes
    SqlUtilsComponent
  75. 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
  76. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  77. def toString(): String

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

    Definition Classes
    JdbcProfileBasicProfile
  79. 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
  80. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  83. def [B](y: B): (MySQLDriver, B)

    Implicit information
    This member is added by an implicit conversion from MySQLDriver to ArrowAssoc[MySQLDriver] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from MySQLDriver to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (mySQLDriver: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from MySQLDriver to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (mySQLDriver: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: MySQLDriver

    Implicit information
    This member is added by an implicit conversion from MySQLDriver to ArrowAssoc[MySQLDriver] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (mySQLDriver: ArrowAssoc[MySQLDriver]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: MySQLDriver

    Implicit information
    This member is added by an implicit conversion from MySQLDriver to Ensuring[MySQLDriver] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (mySQLDriver: Ensuring[MySQLDriver]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from JdbcDriver

Inherited from JdbcProfile

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

Inherited by implicit conversion any2stringadd from MySQLDriver to StringAdd

Inherited by implicit conversion any2stringfmt from MySQLDriver to StringFormat

Inherited by implicit conversion any2ArrowAssoc from MySQLDriver to ArrowAssoc[MySQLDriver]

Inherited by implicit conversion any2Ensuring from MySQLDriver to Ensuring[MySQLDriver]

Ungrouped