DefaultEvolutionsApi
Default implementation of the evolutions API.
Attributes
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Apply evolution scripts to the database.
Apply evolution scripts to the database.
Value parameters
- autocommit
-
determines whether the connection uses autocommit
- db
-
the database name
- schema
-
The schema where all the play evolution tables are saved in
- scripts
-
the evolution scripts to run
Attributes
Apply evolution scripts to the database.
Apply evolution scripts to the database.
Value parameters
- autocommit
-
determines whether the connection uses autocommit
- db
-
the database name
- metaTable
-
Table to keep evolutions' data
- schema
-
The schema where all the play evolution tables are saved in
- scripts
-
the evolution scripts to run
Attributes
Apply evolution scripts to the database.
Apply evolution scripts to the database.
Value parameters
- autocommit
-
determines whether the connection uses autocommit
- db
-
the database name
- metaTable
-
Table to keep evolutions' data
- schema
-
The schema where all the play evolution tables are saved in
- scripts
-
the evolution scripts to run
- 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
Get all scripts necessary to reset the database state to its initial state.
Get all scripts necessary to reset the database state to its initial state.
Value parameters
- db
-
the database name
- schema
-
The schema where all the play evolution tables are saved in
Attributes
- Returns
-
evolution scripts
Get all scripts necessary to reset the database state to its initial state.
Get all scripts necessary to reset the database state to its initial state.
Value parameters
- db
-
the database name
- metaTable
-
Table to keep evolutions' data
- schema
-
The schema where all the play evolution tables are saved in
Attributes
- Returns
-
evolution scripts
Resolve evolution conflicts.
Resolve evolution conflicts.
Value parameters
- db
-
the database name
- revision
-
the revision to mark as resolved
- schema
-
The schema where all the play evolution tables are saved in
Attributes
Resolve evolution conflicts.
Resolve evolution conflicts.
Value parameters
- db
-
the database name
- metaTable
-
Table to keep evolutions' meta data
- revision
-
the revision to mark as resolved
- schema
-
The schema where all the play evolution tables are saved in
Attributes
Create evolution scripts.
Create evolution scripts.
Value parameters
- db
-
the database name
- evolutions
-
the evolutions for the application
- schema
-
The schema where all the play evolution tables are saved in
Attributes
- Returns
-
evolution scripts
Create evolution scripts.
Create evolution scripts.
Value parameters
- db
-
the database name
- evolutions
-
the evolutions for the application
- metaTable
-
Table to keep evolutions' meta data
- schema
-
The schema where all the play evolution tables are saved in
Attributes
- Returns
-
evolution scripts
Create evolution scripts.
Create evolution scripts.
Value parameters
- db
-
the database name
- reader
-
evolution file reader
- schema
-
The schema where all the play evolution tables are saved in
Attributes
- Returns
-
evolution scripts
Create evolution scripts.
Create evolution scripts.
Value parameters
- db
-
the database name
- metaTable
-
Table to keep evolutions' meta data
- reader
-
evolution file reader
- schema
-
The schema where all the play evolution tables are saved in
Attributes
- Returns
-
evolution scripts
Inherited methods
Apply pending evolutions for the given database.