package api
- Alphabetic
- Public
- Protected
Type Members
- class CanConcatMigrations[-A, -B, +C] extends AnyRef
A typeclass to determine the best way to combine migrations, either into a ReversibleMigrationSeq or just a MigrationSeq.
A typeclass to determine the best way to combine migrations, either into a ReversibleMigrationSeq or just a MigrationSeq. Used when you call '&' on Migrations. Note that the migrations will be flattened; you will not end up with something like
MigrationSeq(MigrationSeq(MigrationSeq(migA, migB), migC), migD)
. - class CanConcatMigrationsLow extends AnyRef
- class DerbyDialect extends Dialect[DerbyProfile]
- class Dialect[-P <: JdbcProfile] extends AstHelpers
Base class for database dialects.
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.
- class H2Dialect extends Dialect[H2Profile]
- class HsqldbDialect extends Dialect[HsqldbProfile]
- trait Migration extends AnyRef
The base of the migration type hierarchy.
The base of the migration type hierarchy. Produces a DBIO that runs the migration
- case class MigrationSeq(migrations: Migration*) extends Migration with Product with Serializable
Holds a sequence of Migrations and performs them one after the other.
- class MySQLDialect extends Dialect[MySQLProfile] with SimulatedRenameIndex[MySQLProfile]
- class OracleDialect extends Dialect[OracleProfile]
- class PostgresDialect extends Dialect[PostgresProfile]
- trait ReversibleMigration extends Migration
A Migration that can be reversed; that is, it can provide a corresponding
Migration
that will undo whatever this migration will do. - class ReversibleMigrationSeq extends MigrationSeq with ReversibleMigration
Holds a sequence of ReversibleMigrations and performs them one after the other.
- class SQLiteDialect extends Dialect[SQLiteProfile] with SimulatedRenameIndex[SQLiteProfile]
- trait SimulatedRenameIndex[T <: JdbcProfile] extends AnyRef
- trait SqlMigration extends Migration
A Migration defined in terms of SQL commands.
- case class TableMigration[T <: jdbc.JdbcProfile.Table[_], A <: Action](tableInfo: TableInfo, actions: List[A])(table: T)(implicit dialect: Dialect[_], withActions: WithActions[A]) extends SqlMigration with AstHelpers with Product with Serializable
- class ToReversible[-A <: Migration] extends AnyRef
Value Members
- object AddColumnWithInitialValue
- object CanConcatMigrations extends CanConcatMigrationsLow
- object GenericDialect
- object Migration
- object SqlMigration
Convenience factory for SqlMigration
Convenience factory for SqlMigration
SqlMigration("drop table t1", "update t2 set x=10 where y=20")
Example: - object TableMigration extends Serializable
- object ToReversible