Postgres

com.mchange.sc.zsqlutil.zmigrate.ZMigratory.Postgres
trait Postgres[T <: Schema] extends ZMigratory[T]

Attributes

Graph
Supertypes
trait ZMigratory[T]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def fetchDbName(conn: Connection): Task[Option[String]]

Attributes

Definition Classes
def simpleLocalRunDump(ds: DataSource, mbDbName: Option[String], dumpFile: Path): Task[Unit]

Inherited methods

def cautiousMigrate(ds: DataSource): Task[Unit]

Attributes

Inherited from:
ZMigratory

Attributes

Inherited from:
ZMigratory
def dbVersionStatus(ds: DataSource): Task[DbVersionStatus]

Attributes

Inherited from:
ZMigratory
def dump(ds: DataSource): Task[Path]

Attributes

Inherited from:
ZMigratory
def dumpFileName(timestamp: String): String

Attributes

Inherited from:
ZMigratory
def ensureDb(ds: DataSource): Task[Unit]

Attributes

Inherited from:
ZMigratory
def ensureMetadataTable(conn: Connection): Task[Unit]

Attributes

Inherited from:
ZMigratory
def extractTimestampFromDumpFileName(dfn: String): Option[Instant]

Attributes

Inherited from:
ZMigratory
def fetchDumpDir(ds: DataSource): Task[Option[Path]]

Attributes

Inherited from:
ZMigratory
def lastHourDumpFileExists(dumpDir: Path): Task[Boolean]

Attributes

Inherited from:
ZMigratory
def migrate(ds: DataSource): Task[Unit]

Attributes

Inherited from:
ZMigratory
def prepareDumpFileForInstant(dumpDir: Path, instant: Instant): Task[Path]

Attributes

Inherited from:
ZMigratory
def zfetchMetadataValue(conn: Connection, key: MetadataKey): Task[Option[String]]

Attributes

Inherited from:
ZMigratory

Inherited and Abstract methods

def fetchDumpDir(conn: Connection): Task[Option[Path]]

Attributes

Inherited from:
ZMigratory
def fetchMetadataValue(conn: Connection, key: MetadataKey): Option[String]

Attributes

Inherited from:
ZMigratory
def getRunningAppVersionIfAvailable(): Option[String]

Attributes

Inherited from:
ZMigratory
def hasMetadataTable(conn: Connection): Boolean

Attributes

Inherited from:
ZMigratory
def insertMetadataKeys(conn: Connection, pairs: (MetadataKey, String)*): Unit

Attributes

Inherited from:
ZMigratory
def runDump(ds: DataSource, mbDbName: Option[String], dumpFile: Path): Task[Unit]

Attributes

Inherited from:
ZMigratory
def upMigrate(ds: DataSource, from: Option[Int]): Task[Unit]

Attributes

Inherited from:
ZMigratory
def updateMetadataKeys(conn: Connection, pairs: (MetadataKey, String)*): Unit

Attributes

Inherited from:
ZMigratory

Inherited fields

lazy val DumpFileNameRegex: Regex

Attributes

Inherited from:
ZMigratory

Inherited and Abstract fields

val AppDbTag: String

Should be overridden a name with no special characters except - or _, e.g. feedletter-pg

Should be overridden a name with no special characters except - or _, e.g. feedletter-pg

Attributes

Inherited from:
ZMigratory
val LatestSchema: T

Attributes

Inherited from:
ZMigratory
val MetadataTableName: String

The initial version of the database should include a "metadata" table which maps String keys to String values. Absence of this table will be taken to mean no version of the schema has been initialized.

The initial version of the database should include a "metadata" table which maps String keys to String values. Absence of this table will be taken to mean no version of the schema has been initialized.

Attributes

Inherited from:
ZMigratory