![JAR search and dependency download from the Maven repository](/logo.png)
com.synhaptein.migmongo.commands.ChangeGroup.scala Maven / Gradle / Ivy
The newest version!
package com.synhaptein.migmongo.commands
import collection.mutable
import com.mongodb.casbah.MongoDB
trait ChangeGroup {
protected[migmongo] val changeSets = mutable.MutableList[ChangeSet]()
val group: String
protected def changeSet(changeId: String, author: String)(changes: MongoDB => Unit) {
changeSets += SyncChangeSet(changeId, author, changes)
}
protected def asyncChangeSet(changeId: String, author: String)(changes: MongoDB => Unit) {
changeSets += AsyncChangeSet(changeId, author, changes)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy