OfflineEvolutions

play.api.db.evolutions.OfflineEvolutions

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

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def applyScript(appPath: File, classloader: ClassLoader, dbApi: DBApi, dbName: String, autocommit: Boolean, schema: String, metaTable: String, substitutionsMappings: Map[String, String], substitutionsPrefix: String, substitutionsSuffix: String, substitutionsEscape: Boolean): Unit

Computes and applies an evolutions script.

Computes and applies an evolutions script.

Value parameters

appPath

the application path

classloader

the classloader used to load the driver

dbApi

the database api for managing application databases

dbName

the database name

metaTable

Table to keep evolutions' meta data

schema

The schema where all the play evolution tables are saved in

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.

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

".

Attributes

def resolve(appPath: File, classloader: ClassLoader, dbApi: DBApi, dbName: String, revision: Int, schema: String, metaTable: String): Unit

Resolve an inconsistent evolution.

Resolve an inconsistent evolution.

Value parameters

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

Attributes