Skip to content

Commit

Permalink
Remove private reference of mongo return types
Browse files Browse the repository at this point in the history
  • Loading branch information
paualarco committed Nov 30, 2020
1 parent 5194b78 commit a808573
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,10 @@ package object domain {
@InternalApi private[mongodb] val DefaultReplaceOptions = new ReplaceOptions()

// results
@InternalApi private[mongodb] case class DeleteResult(deleteCount: Long, wasAcknowledged: Boolean)
@InternalApi private[mongodb] case class InsertOneResult(insertedId: Option[String], wasAcknowledged: Boolean)
@InternalApi private[mongodb] case class InsertManyResult(insertedIds: Set[String], wasAcknowledged: Boolean)
@InternalApi private[mongodb] case class UpdateResult(
matchedCount: Long,
modifiedCount: Long,
wasAcknowledged: Boolean)
case class DeleteResult(deleteCount: Long, wasAcknowledged: Boolean)
case class InsertOneResult(insertedId: Option[String], wasAcknowledged: Boolean)
case class InsertManyResult(insertedIds: Set[String], wasAcknowledged: Boolean)
case class UpdateResult(matchedCount: Long, modifiedCount: Long, wasAcknowledged: Boolean)

// default results
@InternalApi private[mongodb] val DefaultDeleteResult = DeleteResult(deleteCount = 0L, wasAcknowledged = false)
Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ object Dependencies {
) ++ testDependencies(hasIt = false)

val MongoDb = Seq(
"org.mongodb" % "mongodb-driver-reactivestreams" % Versions.MongoReactiveStreams,
"org.mongodb" % "mongodb-driver-reactivestreams" % Versions.MongoReactiveStreams,
"org.mongodb.scala" %% "mongo-scala-bson" % Versions.MongoScala,
"org.mongodb.scala" %% "mongo-scala-driver" % Versions.MongoScala
) ++ testDependencies(hasIt = true)
Expand Down

0 comments on commit a808573

Please sign in to comment.