Freeze

io.eezo.db.migrate.Freeze
object Freeze

Attributes

Source
Freeze.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Freeze.type

Members list

Value members

Concrete methods

def committedSnapshot(dbDir: Path = ...): SchemaSnap

Attributes

Source
Freeze.scala
def existing(dbDir: Path = ...): List[(Int, Path)]

Attributes

Source
Freeze.scala
def migrationsDir(dbDir: Path = ...): Path

Attributes

Source
Freeze.scala
def nextNumber(dbDir: Path = ...): Int

Attributes

Source
Freeze.scala
def slug(s: String): String

Attributes

Source
Freeze.scala
def snapshotFile(dbDir: Path = ...): Path

Attributes

Source
Freeze.scala
def write(name: String, resolutions: List[Resolution], newSnapshot: SchemaSnap, dbDir: Path = ...): Path

Attributes

Source
Freeze.scala

Concrete fields

Where a project keeps its migration history, relative to the working directory.

Where a project keeps its migration history, relative to the working directory.

Every entry point below takes the directory as a parameter defaulting to this, rather than reading it from a val. A hardcoded path is not a configuration problem so much as a testability one: with the path baked in, nothing that writes a migration can be exercised anywhere except the real db/ of whatever process is running.

Attributes

Source
Freeze.scala