reactivemongo-bson-collection

Collection/query library using new BSON serialization

License

License

Categories

Categories

React User Interface Web Frameworks
GroupId

GroupId

org.reactivemongo
ArtifactId

ArtifactId

reactivemongo-bson-collection_2.12
Last Version

Last Version

0.18.8
Release Date

Release Date

Type

Type

jar
Description

Description

reactivemongo-bson-collection
Collection/query library using new BSON serialization
Project URL

Project URL

http://reactivemongo.org
Project Organization

Project Organization

org.reactivemongo

Download reactivemongo-bson-collection_2.12

How to add to project

<!-- https://jarcasting.com/artifacts/org.reactivemongo/reactivemongo-bson-collection_2.12/ -->
<dependency>
    <groupId>org.reactivemongo</groupId>
    <artifactId>reactivemongo-bson-collection_2.12</artifactId>
    <version>0.18.8</version>
</dependency>
// https://jarcasting.com/artifacts/org.reactivemongo/reactivemongo-bson-collection_2.12/
implementation 'org.reactivemongo:reactivemongo-bson-collection_2.12:0.18.8'
// https://jarcasting.com/artifacts/org.reactivemongo/reactivemongo-bson-collection_2.12/
implementation ("org.reactivemongo:reactivemongo-bson-collection_2.12:0.18.8")
'org.reactivemongo:reactivemongo-bson-collection_2.12:jar:0.18.8'
<dependency org="org.reactivemongo" name="reactivemongo-bson-collection_2.12" rev="0.18.8">
  <artifact name="reactivemongo-bson-collection_2.12" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.reactivemongo', module='reactivemongo-bson-collection_2.12', version='0.18.8')
)
libraryDependencies += "org.reactivemongo" % "reactivemongo-bson-collection_2.12" % "0.18.8"
[org.reactivemongo/reactivemongo-bson-collection_2.12 "0.18.8"]

Dependencies

compile (3)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.8
org.reactivemongo : reactivemongo-bson-api_2.12 jar 0.18.8
org.reactivemongo : reactivemongo-bson-compat_2.12 jar 0.18.8

provided (1)

Group / Artifact Type Version
org.reactivemongo : reactivemongo_2.12 jar 0.18.8

test (3)

Group / Artifact Type Version
org.specs2 : specs2-core_2.12 jar 4.7.1
org.specs2 : specs2-junit_2.12 jar 4.7.1
org.slf4j : slf4j-simple jar 1.7.28

Project Modules

There are no modules declared in this project.

ReactiveMongo Biːsən

BSON libraries for ReactiveMongo

Motivation

These libraries are intended to replace (at some point after release 1.0) the BSON library currently shipped along with ReactiveMongo driver.

It will fix some issues, bring multiple API and performance improvements (simpler & better).

Usage

The main API library migrates both the BSON values types (with same names; see example) and the handler typeclasses (reader/writer; see example).

Note: The package of the new library is reactivemongo.api.bson (instead of reactivemongo.bson).

It can already be used in your build.sbt:

libraryDependencies += "org.reactivemongo" %% "reactivemongo-bson-api" % VERSION)

Maven Javadocs

import reactivemongo.api.bson._

This refactoring also includes the following optional libraries.

compat:

The compatibility library, that provides conversions between the previous and the new APIs. It can be configured in the build.sbt as below.

libraryDependencies += "org.reactivemongo" %% "reactivemongo-bson-compat" % VERSION

Then the conversions can be imported:

import reactivemongo.api.bson.compat._

msb-compat:

The compatiblity library for org.bson, that provides conversions between this package and the new BSON API. It can be configured in the build.sbt as below.

libraryDependencies += "org.reactivemongo" %% "reactivemongo-bson-msb-compat" % VERSION

Then the conversions can be imported:

import reactivemongo.api.bson.msb._

geo:

The GeoJSON library, that provides the geometry types and the handlers to read from and write to appropriate BSON representation.

It can be configured in the build.sbt as below.

libraryDependencies += "org.reactivemongo" %% "reactivemongo-bson-geo" % VERSION

specs2:

The Specs2 library provides utilities to write tests using specs2 with BSON values.

It can be configured in the build.sbt as below.

libraryDependencies += "org.reactivemongo" %% "reactivemongo-bson-specs2" % VERSION
import reactivemongo.api.bson.BSONDocument
import reactivemongo.api.bson.specs2._

final class MySpec extends org.specs2.mutable.Specification {
  "Foo" title

  "Bar" should {
    "lorem" in {
      BSONDocument("ipsum" -> 1) must_=== BSONDocument("dolor" -> 2)
      // Use provided Diffable to display difference
      // between actual and expected documents
    }
  }
}

monocle: EXPERIMENTAL

The library that provides Monocle utilities for BSON values. It can be configured in the build.sbt as below.

libraryDependencies += "org.reactivemongo" %% "reactivemongo-bson-monocle" % VERSION

Then the utilities can be imported:

import reactivemongo.api.bson.monocle._

Build manually

ReactiveMongo BSON libraries can be built from this source repository.

sbt publishLocal

To run the tests, use:

sbt test

CircleCI: CircleCI build status

org.reactivemongo

ReactiveMongo

Versions

Version
0.18.8
0.18.7
0.18.6
0.18.5
0.18.4
0.18.3
0.18.2
0.18.1
0.18.0