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

com.github.jeroenr.tepkin.protocol.result.Result.scala Maven / Gradle / Ivy

The newest version!
package com.github.jeroenr.tepkin.protocol.result

import com.github.jeroenr.bson.BsonDocument

protected[result] trait Result

case class CountResult(missing: Option[Boolean] = None, n: Int, ok: Boolean) extends Result {
  /** Alias for n **/
  def count: Int = n
}

case class DeleteResult(ok: Boolean,
                        n: Int,
                        writeErrors: Option[List[WriteError]] = None,
                        writeConcernError: Option[WriteConcernError] = None) extends WriteResult

case class InsertResult(ok: Boolean,
                        n: Int,
                        writeErrors: Option[List[WriteError]] = None,
                        writeConcernError: Option[WriteConcernError] = None) extends WriteResult

case class UpdateResult(ok: Boolean,
                        n: Int,
                        nModified: Int,
                        upserted: Option[List[BsonDocument]],
                        writeErrors: Option[List[WriteError]] = None,
                        writeConcernError: Option[WriteConcernError] = None) extends WriteResult





© 2015 - 2024 Weber Informatics LLC | Privacy Policy