class Dialect[-P <: JdbcProfile] extends AstHelpers

Base class for database dialects. Provides methods that return the dialect-specific SQL strings for performing various database operations. The most important method is perhaps migrateTable, which is called from TableMigration#sql. These methods are to be overridden in database-specific subclasses as needed.

P

The corresponding Slick driver type. Not used, but may come in handy in certain situations.

Linear Supertypes
AstHelpers, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Dialect
  2. AstHelpers
  3. AnyRef
  4. 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

Instance Constructors

  1. new Dialect()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Dialect[P] toany2stringadd[Dialect[P]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Dialect[P], B)
    Implicit
    This member is added by an implicit conversion from Dialect[P] toArrowAssoc[Dialect[P]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def addColumn(table: TableInfo, column: ColumnInfo): String
  7. def addColumnWithInitialValue(table: TableInfo, column: ColumnInfo, rawSqlExpr: String): List[String]
  8. def alterColumnDefault(table: TableInfo, column: ColumnInfo): String
  9. def alterColumnNullability(table: TableInfo, column: ColumnInfo): String
  10. def alterColumnType(table: TableInfo, column: ColumnInfo): List[String]
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def autoInc(ci: ColumnInfo): String
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  14. def colInfo[T <: jdbc.JdbcProfile.Table[_]](table: T)(f: (T) => Rep[_]): ColumnInfo
    Attributes
    protected
    Definition Classes
    AstHelpers
  15. def columnInfo(driver: JdbcProfile, column: FieldSymbol): ColumnInfo

    driver

    a Slick driver, used to extract ColumnInfo#sqlType and ColumnInfo#notNull by calling typeInfoFor

    returns

    a ColumnInfo representing the relevant information in column

    Attributes
    protected
    Definition Classes
    AstHelpers
  16. def columnList(columns: Seq[FieldSymbol]): String
  17. def columnSql(ci: ColumnInfo, newTable: Boolean): String
  18. def columnType(ci: ColumnInfo): String
  19. def createForeignKey(sourceTable: TableInfo, name: String, sourceColumns: Seq[FieldSymbol], targetTable: TableInfo, targetColumns: Seq[FieldSymbol], onUpdate: ForeignKeyAction, onDelete: ForeignKeyAction): String
  20. def createIndex(index: IndexInfo): String
  21. def createPrimaryKey(table: TableInfo, name: String, columns: Seq[FieldSymbol]): String
  22. def createTable(table: TableInfo, columns: Seq[ColumnInfo]): List[String]
  23. def dropColumn(table: TableInfo, column: String): List[String]
  24. def dropConstraint(table: TableInfo, name: String): String
  25. def dropForeignKey(sourceTable: TableInfo, name: String): String
  26. def dropIndex(index: IndexInfo): String
  27. def dropPrimaryKey(table: TableInfo, name: String): String
  28. def dropTable(table: TableInfo): String
  29. def ensuring(cond: (Dialect[P]) => Boolean, msg: => Any): Dialect[P]
    Implicit
    This member is added by an implicit conversion from Dialect[P] toEnsuring[Dialect[P]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  30. def ensuring(cond: (Dialect[P]) => Boolean): Dialect[P]
    Implicit
    This member is added by an implicit conversion from Dialect[P] toEnsuring[Dialect[P]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  31. def ensuring(cond: Boolean, msg: => Any): Dialect[P]
    Implicit
    This member is added by an implicit conversion from Dialect[P] toEnsuring[Dialect[P]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  32. def ensuring(cond: Boolean): Dialect[P]
    Implicit
    This member is added by an implicit conversion from Dialect[P] toEnsuring[Dialect[P]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  33. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  35. def fieldSym(node: Node): Option[FieldSymbol]

    returns

    if node represents a reference to a table's column, that is, it is a Select(_, f: FieldSymbol), then Some(f); otherwise None

    Attributes
    protected
    Definition Classes
    AstHelpers
  36. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  37. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  38. def indexInfo(index: Index): IndexInfo

    returns

    an IndexInfo containing the relevant information from a Slick Index

    Attributes
    protected
    Definition Classes
    AstHelpers
  39. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  40. def migrateTable(table: TableInfo, actions: List[Action]): List[String]
  41. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  42. def notNull(ci: ColumnInfo): String
  43. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  44. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  45. def primaryKey(ci: ColumnInfo, newTable: Boolean): String
  46. def quoteIdentifier(id: String): String
  47. def quoteTableName(t: TableInfo): String
  48. def quotedColumnNames(ns: Seq[FieldSymbol]): Seq[String]
    Attributes
    protected
  49. def renameColumn(table: TableInfo, from: ColumnInfo, to: String): String
  50. def renameColumn(table: TableInfo, from: String, to: String): String
  51. def renameIndex(old: IndexInfo, newName: String): List[String]
  52. def renameTable(table: TableInfo, to: String): String
  53. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  54. def tableInfo(table: TableNode): TableInfo

    table

    a Slick table object whose qualified name is needed

    returns

    a TableInfo representing the qualified name of table

    Attributes
    protected
    Definition Classes
    AstHelpers
  55. def toString(): String
    Definition Classes
    AnyRef → Any
  56. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  57. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  58. 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)

  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Dialect[P] toStringFormat[Dialect[P]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (Dialect[P], B)
    Implicit
    This member is added by an implicit conversion from Dialect[P] toArrowAssoc[Dialect[P]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AstHelpers

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromDialect[P] to any2stringadd[Dialect[P]]

Inherited by implicit conversion StringFormat fromDialect[P] to StringFormat[Dialect[P]]

Inherited by implicit conversion Ensuring fromDialect[P] to Ensuring[Dialect[P]]

Inherited by implicit conversion ArrowAssoc fromDialect[P] to ArrowAssoc[Dialect[P]]

Ungrouped