Skip to content
forked from alaz/subset

Subset 1.x: typed MongoDB fields and query/update builders in Scala

Notifications You must be signed in to change notification settings

peter-empen/subset

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Subset

Subset 1.x is a library to ease extracting fields from MongoDB documents, serializing them back and constructing queries.

Subset may help you to

  • define typed fields and feel safe about both the types of values your application reads from MongoDB and the types of values you store into MongoDB, thus keeping your MongoDB records sane. As well:

    • utilize and easily write reusable value serializers/deserializers
    • define MongoDB subdocuments
  • construct queries to MongoDB based on the fields

  • construct MongoDB update operations based on the fields

More Information

Using

Imports

Subset declares most implicits via package object, so it's a good idea to import the whole package:

import com.osinka.subset._
import SmartValues._

More on the choices in the documentation

SBT Configuration

Depending on simple or scala configration:

libraryDependencies += "com.osinka.subset" %% "subset" % "1.1.0"

or

lazy val root = Project(....) dependsOn(subset)

lazy val subset = "com.osinka.subset" %% "subset" % "1.1.0"

Maven Configuration

Dependency:

<dependency>
  <groupId>com.osinka.subset</groupId>
  <artifactId>subset_2.10.0</artifactId>
  <version>1.1.0</version>
</dependency>

No need in repository declaration, Subset is in Maven Central.

About

Subset 1.x: typed MongoDB fields and query/update builders in Scala

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 100.0%