ClassLoaderEvolutionsReader

play.api.db.evolutions.ClassLoaderEvolutionsReader
See theClassLoaderEvolutionsReader companion object
class ClassLoaderEvolutionsReader(classLoader: ClassLoader, prefix: String) extends ResourceEvolutionsReader

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
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

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