object OfflineEvolutions
Can be used to run off-line evolutions, i.e. outside a running application.
- Source
- Evolutions.scala
- Alphabetic
- By Inheritance
- OfflineEvolutions
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- 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
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)