slick.migration.api

Members list

Type members

Classlikes

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
class CanConcatMigrations[-A, -B, +C](val f: (A, B) => C)

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

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

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object CanConcatMigrations.type
class DerbyDialect extends Dialect[DerbyProfile]

Attributes

Supertypes
class Dialect[DerbyProfile]
class Object
trait Matchable
class Any
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.

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

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

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
class H2Dialect extends Dialect[H2Profile]

Attributes

Supertypes
class Dialect[H2Profile]
class Object
trait Matchable
class Any
class HsqldbDialect extends Dialect[HsqldbProfile]

Attributes

Supertypes
class Dialect[HsqldbProfile]
class Object
trait Matchable
class Any
trait Migration

The base of the migration type hierarchy. Produces a DBIO that runs the migration

The base of the migration type hierarchy. Produces a DBIO that runs the migration

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class MigrationSeq
class Reversible[T]
trait SqlMigration
class TableMigration[T, A]
Show all
object Migration

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Migration.type
case class MigrationSeq(migrations: Migration*) extends Migration

Holds a sequence of Migrations and performs them one after the other.

Holds a sequence of Migrations and performs them one after the other.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Migration
class Object
trait Matchable
class Any
Show all
Known subtypes
class MySQLDialect extends Dialect[MySQLProfile], SimulatedRenameIndex[MySQLProfile]

Attributes

Supertypes
trait SimulatedRenameIndex[MySQLProfile]
class Dialect[MySQLProfile]
class Object
trait Matchable
class Any
class OracleDialect extends Dialect[OracleProfile]

Attributes

Supertypes
class Dialect[OracleProfile]
class Object
trait Matchable
class Any
class PostgresDialect extends Dialect[PostgresProfile]

Attributes

Supertypes
class Dialect[PostgresProfile]
class Object
trait Matchable
class Any

A Migration that can be reversed; that is, it can provide a corresponding Migration that will undo whatever this migration will do.

A Migration that can be reversed; that is, it can provide a corresponding Migration that will undo whatever this migration will do.

Attributes

Supertypes
trait Migration
class Object
trait Matchable
class Any
Known subtypes

Holds a sequence of ReversibleMigrations and performs them one after the other.

Holds a sequence of ReversibleMigrations and performs them one after the other.

Attributes

Supertypes
class MigrationSeq
trait Serializable
trait Product
trait Equals
trait Migration
class Object
trait Matchable
class Any
Show all
class SQLiteDialect extends Dialect[SQLiteProfile], SimulatedRenameIndex[SQLiteProfile]

Attributes

Supertypes
trait SimulatedRenameIndex[SQLiteProfile]
class Dialect[SQLiteProfile]
class Object
trait Matchable
class Any
trait SimulatedRenameIndex[T <: JdbcProfile]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type
Dialect[T]
trait SqlMigration extends Migration

A Migration defined in terms of SQL commands. This trait implements apply and instead defines an abstract sql method.

A Migration defined in terms of SQL commands. This trait implements apply and instead defines an abstract sql method.

Attributes

Companion
object
Supertypes
trait Migration
class Object
trait Matchable
class Any
Known subtypes
class Reversible[T]
class TableMigration[T, A]
object SqlMigration

Convenience factory for SqlMigration

Convenience factory for SqlMigration

Attributes

Example
 SqlMigration("drop table t1", "update t2 set x=10 where y=20") 
Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
case class TableMigration[T <: Table[_], A <: Action](tableInfo: TableInfo, actions: List[A])(table: T)(implicit dialect: Dialect[_], withActions: WithActions[A]) extends SqlMigration

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait SqlMigration
trait Migration
class Object
trait Matchable
class Any
Show all
class ToReversible[-A <: Migration](val func: A => ReversibleMigration)

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object ToReversible

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type