athieriot / embedded-mongo Goto Github PK
View Code? Open in Web Editor NEWThis project forked from gdb/embedded-mongo
License: MIT License
This project forked from gdb/embedded-mongo
License: MIT License
== What == A Ruby implementation of the MongoDB interface. Just swap out the line "Mongo::Connection.new" in your application with "EmbeddedMongo::Connection.new" and leave the rest of the code alone. No server process needed! E.g. conn = EmbeddedMongo::Connection.new coll = conn['test']['embedded'] coll.insert({ 'hello' => 'world' }) coll.find.to_a # => [{"_id"=>BSON::ObjectId('4e1b4027f626214e9e000001'), "hello"=>"world"}] == Goal == embedded-mongo's goal is to provide the same interface as mongodb but be embedded inside the calling process. This allows unit tests to be run without the overhead of database roundtrips or the creation of ad-hoc mock layers. It also allows one to start using the mongodb interface for new projects without having to set up a real database. I don't think there's a use-case for it in production, though I could be wrong. == Status == Most of the query semantics have been coded. Many of the database management operations have not. Nothing involving execution of JavaScript has been coded, because that sounds like work. Persistence hasn't been added, though that could be as easy as a Marshal or YAML dump when needed. I think the next thing to add is indexes. Currently everything works via a linear scan of the database.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.