MongoDB Nit Driver.

This is actually a wrapper around the MongoDB C Driver.

Usage:

var client = new MongoClient("mongodb://mongo:27017/")

# Select the database.
var db_suffix = "NIT_TESTING_ID".environ
var db_name = "test_{db_suffix}"
var db = client.database(db_name)

# Retrieve a collection.
var col = db.collection("test")

# Insert a document in the collection.
var doc = new JsonObject
doc["foo"] = 10
doc["bar"] = "bar"
doc["baz"] = new JsonArray
assert col.insert(doc)

# Retrieve a document from the collection.
var query = new JsonObject
query["foo"] = 10
var res = col.find(query)
assert res["bar"] == "bar"

All groups and modules

module mongodb

mongodb :: mongodb

MongoDB Nit Driver.
module native_mongodb

mongodb :: native_mongodb

Native wrapper for the MongoDB C Driver
module queries

mongodb :: queries

Mongo queries framework
package_diagram mongodb mongodb json json mongodb->json c c mongodb->c parser_base parser_base json->parser_base serialization serialization json->serialization core core c->core ...parser_base ... ...parser_base->parser_base ...serialization ... ...serialization->serialization ...core ... ...core->core popcorn popcorn popcorn->mongodb github github github->popcorn nitc nitc nitc->popcorn github... ... github...->github nitc... ... nitc...->nitc

Ancestors

package core

core

Nit common library of core classes and methods
package meta

meta

Simple user-defined meta-level to manipulate types of instances as object.
package parser_base

parser_base

Simple base for hand-made parsers of all kinds
package poset

poset

Pre order sets and partial order set (ie hierarchies)
package serialization

serialization

Abstract serialization services

Parents

package c

c

Structures and services for compatibility with the C language
package json

json

read and write JSON formatted text

Children

package popcorn

popcorn

Popcorn

Descendants

package github

github

Nit wrapper for Github API
package nitc

nitc

Nit compiler and tools