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

com.github.jeroenr.tepkin.protocol.command.Validate.scala Maven / Gradle / Ivy

package com.github.jeroenr.tepkin.protocol.command

import com.github.jeroenr.bson.BsonDsl._
import com.github.jeroenr.bson.{BsonDocument}

case class Validate(databaseName: String,
                    collectionName: String,
                    full: Option[Boolean] = None,
                    scandata: Option[Boolean] = None) extends Command {
  override def command: BsonDocument = {
    ("validate" := collectionName) ~
      ("full" := full) ~
      ("scandata" := scandata)
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy