1.0.4 • Published 8 years ago

mongols v1.0.4

Weekly downloads
12
License
MIT
Repository
github
Last release
8 years ago

MongoLS

=========

A JavaScript implementation of the mongo query api for plain objects and HTML5 localStorage.

Build Status

Coverage Status

In Node.js

Installation

npm install mongols

Usage

var mongols = require('mongols');
var db = new mongo.DB()
db.createCollection("sample")
db.sample.insert({ age: 4,	legs: 0	});
db.sample.insert([{ age: 4,	legs: 5	},{ age: 54, legs: 2	}]);
db.sample.insertMany([{ age: 54, legs: 12 },{ age: 16					 }]);
db.sample.insertOne({ name: "steve"		 });
var cur = db.sample.find({ $and: [{ age : 54},{ legs: 2 }] })
cur.next()

Tests

npm test

In the Browser

Contributing

If you find this useful ... well, lets not kid around, it basically works, but there is a lot of things to fix up. All help is greatly appreciated!