Inserts are the basic method for adding data to MongoDB. To insert a document into a collection, use the collection’s insert method:
> db.foo.insert({"bar" : "baz"})
Tags: mongodb
> db.foo.insert({"bar" : "baz"})
Tags: mongodb
Hi,
I have started using MongoDB for my projects.
MongoDB is a powerful, flexible, and scalable data store. It combines the ability to scale out with many of the most useful features of relational databases, such as secondary indexes, range queries, and sorting. MongoDB has built-in support for MapReduce-style aggregation and geospatial indexes
Hi,
Just switch to Dreamhost for my new hosting provider. These guys are good if you are looking for a good hosting.
Dreamhost provides me to create unlimited shell accounts so my friends also can use this for their blogs.
Check this out..!!!
You can use my email address in refer page. it’s arunagw at gmail.com
Or you can follow this link http://www.dreamhost.com/r.cgi?550551
Instance methods may be public, private, or protected.
Methods are normally public unless they are explicitly declared to be private or protected. One exception is the initialize method, which is always implicitly private. Another exception is any “global” method declared outside of a class definition—those methods are defined as private instance methods of Object. A public method can be invoked from anywhere—there are no restrictions on its use.
A private method is internal to the implementation of a class, and it can only be called by other instance methods of the class (or, as we’ll see later, its subclasses). Private methods are implicitly invoked on self, and may not be explicitly invoked on an object. If m is a private method, then you must invoke it in functional style as m. You cannot write o.m or even self.m.
A protected method is like a private method in that it can only be invoked from within the implementation of a class or its subclasses. It differs from a private method in that it may be explicitly invoked on any instance of the class, and it is not restricted to implicit invocation on self. A protected method can be used, for example, to define an accessor that allows instances of a class to share internal state with each other, but does not allow users of the class to access that state.