EnvironmentEvolutionsReader

play.api.db.evolutions.EnvironmentEvolutionsReader
@Singleton
class EnvironmentEvolutionsReader(environment: Environment, evolutionsConfig: EvolutionsConfig) extends ResourceEvolutionsReader

Read evolution files from the application environment.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Constructors

def this(environment: Environment, path: String)
def this(environment: Environment)

Concrete methods

def loadResource(db: String, revision: Int): Option[InputStream]

Load the evolutions resource for the given database and revision.

Load the evolutions resource for the given database and revision.

Attributes

Returns

An InputStream to consume the resource, if such a resource exists.

Inherited methods

Read the evolutions for the given db

Read the evolutions for the given db

Attributes

Inherited from:
ResourceEvolutionsReader