o

play.api.db.evolutions

OfflineEvolutions

object OfflineEvolutions

Can be used to run off-line evolutions, i.e. outside a running application.

Source
Evolutions.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OfflineEvolutions
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def applyScript(appPath: File, classloader: ClassLoader, dbApi: DBApi, dbName: String, autocommit: Boolean = true, schema: String = "", metaTable: String = "play_evolutions", substitutionsMappings: Map[String, String] = Map.empty, substitutionsPrefix: String = "$evolutions{{{", substitutionsSuffix: String = "}}}", substitutionsEscape: Boolean = true): Unit

    Computes and applies an evolutions script.

    Computes and applies an evolutions script.

    appPath

    the application path

    classloader

    the classloader used to load the driver

    dbApi

    the database api for managing application databases

    dbName

    the database name

    schema

    The schema where all the play evolution tables are saved in

    metaTable

    Table to keep evolutions' meta data

    substitutionsMappings

    Mappings of variables (without the prefix and suffix) and their replacements.

    substitutionsPrefix

    Prefix of the variable to substitute, e.g. "$evolutions

    ".
    @param substitutionsSuffix Suffix of the variable to substitute, e.g. "

    ".

    substitutionsEscape

    Whetever escaping of variables is enabled via a preceding "!". E.g. "!$evolutions

    my_variable

    " ends up as "$evolutions

    my_variable

    " in the final sql instead of replacing it with its substitution.

  2. def resolve(appPath: File, classloader: ClassLoader, dbApi: DBApi, dbName: String, revision: Int, schema: String = "", metaTable: String = "play_evolutions"): Unit

    Resolve an inconsistent evolution.

    Resolve an inconsistent evolution.

    appPath

    the application path

    classloader

    the classloader used to load the driver

    dbApi

    the database api for managing application databases

    dbName

    the database name

    revision

    the revision

    schema

    The schema where all the play evolution tables are saved in