ReactiveMongo SBT playground
Scala Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
project
src/main
.gitignore
LICENSE
README.md
build.sbt
connect.sh
run.sh

README.md

ReactiveMongo SBT Playground

Can work with any database, even if not initialized/empty.

Usage

./run.sh
scala> import Playground._
scala> rm connect "mongodb://host:27017,host:27018,host:27019/foo"
scala> rm exit

The command sbt console + import Playground._ can also be used.

DB resolution:

scala> rm database

Must display a result of the following form.

resN: scala.util.Try[Unit] = Success(())

This can be executed multiple times, to check the DB resolution, according the ReplicaSet events.

scala> rm database
res1: scala.util.Try[Unit] = Success(())
scala> rm database
res1: scala.util.Try[Unit] = Success(())

Dummy collection operation:

scala> rm dummyFind

Must display a result of the following form.

resN: scala.util.Try[Unit] = Success(())

This can be executed many times, in order to repeat the dummy collection operation.

scala> rm database
res1: scala.util.Try[Unit] = Success(())
scala> rm database
res1: scala.util.Try[Unit] = Success(())

Log:

All the ReactiveMongo traces are logged to logs/reactivemongo.log.

Exit:

scala> rm exit

Select version of ReactiveMongo

RM_VERSION="..." sbt console