Class

slick.migration.api

Dialect

Related Doc: package api

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Dialect()

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    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)

    Permalink
    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

    Permalink
    Definition Classes
    AnyRef → Any
  6. def addColumn(table: TableInfo, column: ColumnInfo): String

    Permalink
  7. def alterColumnDefault(table: TableInfo, column: ColumnInfo): String

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

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

    Permalink
  10. final def asInstanceOf[T0]: T0

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

    Permalink
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def columnInfo(driver: JdbcDriver, column: FieldSymbol): ColumnInfo

    Permalink

    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

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

    Permalink
  16. def columnType(ci: ColumnInfo): String

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

    Permalink
  18. def createIndex(index: IndexInfo): String

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

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

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

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

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

    Permalink
  24. def dropIndex(index: IndexInfo): String

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

    Permalink
  26. def dropTable(table: TableInfo): String

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

    Permalink
    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]

    Permalink
    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]

    Permalink
    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]

    Permalink
    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

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

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

    Permalink

    returns

    a FieldSymbol representing the column

    Attributes
    protected
    Definition Classes
    AstHelpers
  34. def fieldSym(node: Node): Option[FieldSymbol]

    Permalink

    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

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

    Permalink
    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[_]

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

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

    Permalink

    returns

    an IndexInfo containing the relevant information from a Slick Index

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

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

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

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

    Permalink
  44. final def notify(): Unit

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

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

    Permalink
  47. def quoteIdentifier(id: String): String

    Permalink
  48. def quoteTableName(t: TableInfo): String

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

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

    Permalink
  51. def renameIndex(old: IndexInfo, newName: String): Seq[String]

    Permalink
  52. def renameTable(table: TableInfo, to: String): String

    Permalink
  53. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  54. def tableInfo(table: TableNode): TableInfo

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  56. final def wait(): Unit

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

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

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

    Permalink
    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