Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ val circeVersion = "0.14.14"

libraryDependencies ++= Seq("io.circe" %% "circe-core", "io.circe" %% "circe-generic", "io.circe" %% "circe-parser").map(_ % circeVersion)

libraryDependencies += ("org.mongodb.scala" %% "mongo-scala-driver" % "5.5.1").cross(CrossVersion.for3Use2_13)
libraryDependencies += ("org.mongodb.scala" %% "mongo-scala-driver" % "5.6.0").cross(CrossVersion.for3Use2_13)

val MongoJavaServerVersion = "1.47.0"

Expand All @@ -55,13 +55,13 @@ libraryDependencies += "org.xerial.snappy" % "snappy-java" % "1.1.10.8" % Provid

libraryDependencies += "com.github.luben" % "zstd-jni" % "1.5.7-4" % Provided

libraryDependencies += "org.apache.lucene" % "lucene-queryparser" % "10.2.2"
libraryDependencies += "org.apache.lucene" % "lucene-queryparser" % "10.3.0"

libraryDependencies += "com.github.pathikrit" %% "better-files" % "3.9.2"

libraryDependencies += "com.typesafe" % "config" % "1.4.4"
libraryDependencies += "com.typesafe" % "config" % "1.4.5"

libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % "3.9.5"
libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % "3.9.6"

//libraryDependencies += "org.scala-lang.modules" %% "scala-collection-compat" % "2.12.0"

Expand Down
2 changes: 1 addition & 1 deletion build_test.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ libraryDependencies += "org.liquibase" % "liquibase-core" % "4.33.0" % Test

libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.5.18" % Test

libraryDependencies += "org.scalameta" %% "munit" % "1.1.1"
libraryDependencies += "org.scalameta" %% "munit" % "1.2.0"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name" : "mongodb-driver",
"organization" : "dev.mongocamp",
"version" : "3.0.9.snapshot",
"version" : "3.0.9",
"author" : "[email protected]",
"license" : "Apache-2.0",
"type" : "module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ import dev.mongocamp.driver.MongoImplicits

class PaginationFilterSuite extends BasePersonSuite with MongoImplicits {

test("search with rows Long MaxValue") {
val personCollectionCount = PersonDAO.count().result().toInt
val pagination = MongoPaginatedFilter(PersonDAO)
val page = pagination.paginate(1, Long.MaxValue)
assertEquals(page.paginationInfo.allCount, personCollectionCount.toLong)
assertEquals(page.databaseObjects.size, personCollectionCount)
}

test("support findAll") {

val pagination = MongoPaginatedFilter(PersonDAO)
Expand Down