All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.chrisomeara.pillar.ReportingMigration.scala Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
package com.chrisomeara.pillar

import java.util.Date
import com.datastax.driver.core.Session

class ReportingMigration(reporter: Reporter, wrapped: Migration) extends Migration {
  val description: String = wrapped.description
  val authoredAt: Date = wrapped.authoredAt
  val up: String = wrapped.up

  override def executeUpStatement(session: Session) {
    reporter.applying(wrapped)
    wrapped.executeUpStatement(session)
  }

  def executeDownStatement(session: Session) {
    reporter.reversing(wrapped)
    wrapped.executeDownStatement(session)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy