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

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

The newest version!
package com.streamsend.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 - 2025 Weber Informatics LLC | Privacy Policy