play.api.db.evolutions
Members list
Type members
Classlikes
Run evolutions on application startup. Automatically runs on construction.
Run evolutions on application startup. Automatically runs on construction.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
Evolutions reader that reads evolution files from a class loader.
Evolutions reader that reads evolution files from a class loader.
Value parameters
- classLoader
-
The classloader to read from, defaults to the classloader for this class.
- prefix
-
A prefix that gets added to the resource file names, for example, this could be used to namespace evolutions in different environments to work with different databases.
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
object ThisClassLoaderEvolutionsReader.type
Evolutions reader that reads evolution files from a class loader.
Evolutions reader that reads evolution files from a class loader.
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Evolutions for a particular database.
Evolutions for a particular database.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Default implementation of the evolutions API.
Default implementation of the evolutions API.
Attributes
- Supertypes
Default evolutions configuration.
Default evolutions configuration.
Attributes
- Supertypes
A provider that creates an EvolutionsConfig from the play.api.Configuration.
A provider that creates an EvolutionsConfig from the play.api.Configuration.
Attributes
- Supertypes
Default evolutions datasource configuration.
Default evolutions datasource configuration.
Attributes
Default implementation for optional dynamic evolutions.
Default implementation for optional dynamic evolutions.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Read evolution files from the application environment.
Read evolution files from the application environment.
Attributes
- Supertypes
An SQL evolution - database changes associated with a software version.
An SQL evolution - database changes associated with a software version.
An evolution includes ‘up’ changes, to upgrade to the next version, as well as ‘down’ changes, to downgrade the database to the previous version.
Value parameters
- revision
-
revision number
- sql_down
-
the SQL statements for DOWN application
- sql_up
-
the SQL statements for UP application
Attributes
- Supertypes
Defines Evolutions utilities functions.
Defines Evolutions utilities functions.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Evolutions.type
Evolutions API.
Evolutions API.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class DefaultEvolutionsApi
Components for default implementation of the evolutions API.
Components for default implementation of the evolutions API.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Evolutions configuration for all datasources.
Evolutions configuration for all datasources.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class DefaultEvolutionsConfig
Evolutions configuration for a given datasource.
Evolutions configuration for a given datasource.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Default module for evolutions API.
Default module for evolutions API.
Attributes
- Supertypes
Reader for evolutions
Reader for evolutions
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class ResourceEvolutionsReaderobject ThisClassLoaderEvolutionsReader.typeclass SimpleEvolutionsReader
Web command handler for applying evolutions on application start.
Web command handler for applying evolutions on application start.
Attributes
- Supertypes
Exception thrown when the database is in an inconsistent state.
Exception thrown when the database is in an inconsistent state.
Value parameters
- db
-
the database name
- error
-
an inconsistent state error
- rev
-
the revision
- script
-
the evolution script
Attributes
- Supertypes
-
trait Producttrait Equalsclass RichDescriptionclass ExceptionAttachmentclass PlayExceptionclass UsefulExceptionclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Exception thrown when the database is not up to date.
Exception thrown when the database is not up to date.
Value parameters
- db
-
the database name
- script
-
the script to be run to resolve the conflict.
Attributes
- Supertypes
-
trait Producttrait Equalsclass RichDescriptionclass ExceptionAttachmentclass PlayExceptionclass UsefulExceptionclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Can be used to run off-line evolutions, i.e. outside a running application.
Can be used to run off-line evolutions, i.e. outside a running application.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
OfflineEvolutions.type
Evolutions reader that reads evolutions from resources, for example, the file system or the classpath
Evolutions reader that reads evolutions from resources, for example, the file system or the classpath
Attributes
- Supertypes
- Known subtypes
-
object ThisClassLoaderEvolutionsReader.type
A Script to run on the database.
A Script to run on the database.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class DownScriptclass UpScript
Simple map based implementation of the evolutions reader.
Simple map based implementation of the evolutions reader.
Simple map based implementation of the evolutions reader.
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Evolutions reader that reads evolution files from its own classloader. Only suitable for simple (flat) classloading environments.
Evolutions reader that reads evolution files from its own classloader. Only suitable for simple (flat) classloading environments.
Attributes
- Supertypes
-
class ResourceEvolutionsReadertrait EvolutionsReaderclass Objecttrait Matchableclass AnyShow all
- Self type