Dialect

slick.migration.api.Dialect
class Dialect[-P <: JdbcProfile]

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.

Type parameters

P

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

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class DerbyDialect
class H2Dialect
class MySQLDialect
Show all

Members list

Value members

Concrete methods

def addColumn(table: TableInfo, column: ColumnInfo): String
def addColumnWithInitialValue(table: TableInfo, column: ColumnInfo, rawSqlExpr: String): List[String]
def alterColumnDefault(table: TableInfo, column: ColumnInfo): String
def alterColumnNullability(table: TableInfo, column: ColumnInfo): String
def alterColumnType(table: TableInfo, column: ColumnInfo): List[String]
def autoInc(ci: ColumnInfo): String
def columnList(columns: Seq[FieldSymbol]): String
def columnSql(ci: ColumnInfo, newTable: Boolean): String
def columnType(ci: ColumnInfo): String
def createForeignKey(sourceTable: TableInfo, name: String, sourceColumns: Seq[FieldSymbol], targetTable: TableInfo, targetColumns: Seq[FieldSymbol], onUpdate: ForeignKeyAction, onDelete: ForeignKeyAction): String
def createIndex(index: IndexInfo): String
def createPrimaryKey(table: TableInfo, name: String, columns: Seq[FieldSymbol]): String
def createTable(table: TableInfo, columns: Seq[ColumnInfo]): List[String]
def dropColumn(table: TableInfo, column: String): List[String]
def dropConstraint(table: TableInfo, name: String): String
def dropForeignKey(sourceTable: TableInfo, name: String): String
def dropIndex(index: IndexInfo): String
def dropPrimaryKey(table: TableInfo, name: String): String
def dropTable(table: TableInfo): String
def migrateTable(table: TableInfo, actions: List[Action]): List[String]
def notNull(ci: ColumnInfo): String
def primaryKey(ci: ColumnInfo, newTable: Boolean): String
def quoteIdentifier(id: String): String
def quoteTableName(t: TableInfo): String
def renameColumn(table: TableInfo, from: String, to: String): String
def renameColumn(table: TableInfo, from: ColumnInfo, to: String): String
def renameIndex(old: IndexInfo, newName: String): List[String]
def renameTable(table: TableInfo, to: String): String