scala.slick.migration.api

Dialect

Related Doc: package api

class Dialect[-D <: JdbcDriver] 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 overriden in database-specific subclasses as needed.

D

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

Linear Supertypes
AstHelpers, AnyRef, Any
Known Subclasses
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
Learn more about member selection
Visibility
  1. Public
  2. All

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 information
    This member is added by an implicit conversion from Dialect[D] to any2stringadd[Dialect[D]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Dialect[D], B)

    Implicit information
    This member is added by an implicit conversion from Dialect[D] to ArrowAssoc[Dialect[D]] 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 alterColumnDefault(table: TableInfo, column: ColumnInfo): String

  8. def alterColumnNullability(table: TableInfo, column: ColumnInfo): String

  9. def alterColumnType(table: TableInfo, column: ColumnInfo): Seq[String]

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def autoInc(ci: ColumnInfo): String

  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def columnInfo(driver: JdbcDriver, 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
  14. def columnList(columns: Seq[FieldSymbol]): String

  15. def columnSql(ci: ColumnInfo, newTable: Boolean = true): String

  16. def columnType(ci: ColumnInfo): String

  17. def createForeignKey(sourceTable: TableInfo, name: String, sourceColumns: Seq[FieldSymbol], targetTable: TableInfo, targetColumns: Seq[FieldSymbol], onUpdate: ForeignKeyAction, onDelete: ForeignKeyAction): String

  18. def createIndex(index: IndexInfo): String

  19. def createPrimaryKey(table: TableInfo, name: String, columns: Seq[FieldSymbol]): String

  20. def createTable(table: TableInfo, columns: Seq[ColumnInfo]): String

  21. def dropColumn(table: TableInfo, column: String): String

  22. def dropConstraint(table: TableInfo, name: String): String

  23. def dropForeignKey(sourceTable: TableInfo, name: String): String

  24. def dropIndex(index: IndexInfo): String

  25. def dropPrimaryKey(table: TableInfo, name: String): String

  26. def dropTable(table: TableInfo): String

  27. def ensuring(cond: (Dialect[D]) ⇒ Boolean, msg: ⇒ Any): Dialect[D]

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  33. def fieldSym(column: Column[_]): FieldSymbol

    returns

    a FieldSymbol representing the column

    Attributes
    protected
    Definition Classes
    AstHelpers
  34. 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
  35. def finalize(): Unit

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

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

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

    Definition Classes
    AnyRef → Any
  39. def indexInfo(index: Index): IndexInfo

    returns

    an IndexInfo containing the relevant information from a Slick Index

    Attributes
    protected
    Definition Classes
    AstHelpers
  40. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  41. def migrateTable[E <: D](table: TableInfo, tmd: TableMigrationData): Seq[String]

  42. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  43. def notNull(ci: ColumnInfo): String

  44. final def notify(): Unit

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

    Definition Classes
    AnyRef
  46. def primaryKey(ci: ColumnInfo, newTable: Boolean): String

  47. def quoteIdentifier(id: String): String

  48. def quoteTableName(t: TableInfo): String

  49. def quotedColumnNames(ns: Seq[FieldSymbol]): collection.Seq[String]

    Attributes
    protected
  50. def renameColumn(table: TableInfo, from: ColumnInfo, to: String): String

  51. def renameIndex(old: IndexInfo, newName: String): Seq[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(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. def [B](y: B): (Dialect[D], B)

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

Inherited from AstHelpers

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Dialect[D] to any2stringadd[Dialect[D]]

Inherited by implicit conversion StringFormat from Dialect[D] to StringFormat[Dialect[D]]

Inherited by implicit conversion Ensuring from Dialect[D] to Ensuring[Dialect[D]]

Inherited by implicit conversion ArrowAssoc from Dialect[D] to ArrowAssoc[Dialect[D]]

Ungrouped