/MongoY

Simple Mongo API

Primary LanguageJavaMIT LicenseMIT

MongoY

Simple Mongo API

Java Docs

https://ymirsonmez.github.io/MongoY/

Usage

MongoY mongoy = new MongoY("host",27017,"DB");

mongoy.set("moneys","Ymir",5);
mongoy.removeData("moneys","Ymir");
mongoy.getInt("moneys","Ymir"); #Integer
mongoy.exists("moneys","Ymir"); #Boolean
mongoy.set("collection",YObject);
mongo.set("collection",key,Object);

V2 Features

new CaseInsensitiveString("text");

MongoY mongoy = new MongoY("host",27017,"DB");

mongoy.set("moneys","Ymir",5);
mongoy.removeData("moneys",new CaseInsensitiveString("ymir"));
mongoy.getInt("moneys",new CaseInsensitiveString("yMiR")); #Integer
mongoy.exists("moneys",new CaseInsensitiveString("YMIR")); #Boolean

Maven

<dependency>
    <groupId>me.ymir.mongoy</groupId>
    <artifactId>mongoy</artifactId>
    <version>2.0</version>
</dependency>