Module: EM::Mongo

Defined in:
lib/em-mongo/cursor.rb,
lib/em-mongo/prev.rb,
lib/em-mongo/support.rb,
lib/em-mongo/database.rb,
lib/em-mongo/collection.rb,
lib/em-mongo/exceptions.rb,
lib/em-mongo/connection.rb,
lib/em-mongo/conversions.rb,
lib/em-mongo/server_response.rb,
lib/em-mongo/request_response.rb,
lib/em-mongo.rb

Overview

– Copyright (C) 2008-2010 10gen Inc.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ++

Defined Under Namespace

Modules: Conversions, Support, Version Classes: AuthenticationError, Collection, ConfigurationError, Connection, ConnectionError, ConnectionFailure, ConnectionTimeoutError, Cursor, Database, EMConnection, GridError, GridFileNotFound, GridMD5Failure, InvalidNSName, InvalidOperation, InvalidSortValueError, MongoArgumentError, MongoDBError, MongoRubyError, OperationFailure, OperationTimeout, ReplicaSetConnectionError, RequestResponse, ServerResponse

Constant Summary

DEFAULT_IP =
"127.0.0.1"
DEFAULT_PORT =
27017
DEFAULT_DB =
"db"
DEFAULT_NS =
"ns"
DEFAULT_QUERY_DOCS =
101
OP_REPLY =
1
OP_MSG =
1000
OP_UPDATE =
2001
OP_INSERT =
2002
OP_QUERY =
2004
OP_GET_MORE =
2005
OP_DELETE =
2006
OP_KILL_CURSORS =
2007
OP_QUERY_TAILABLE =
2 ** 1
OP_QUERY_SLAVE_OK =
2 ** 2
OP_QUERY_OPLOG_REPLAY =
2 ** 3
OP_QUERY_NO_CURSOR_TIMEOUT =
2 ** 4
OP_QUERY_AWAIT_DATA =
2 ** 5
OP_QUERY_EXHAUST =
2 ** 6
ASCENDING =
1
DESCENDING =
-1
FLAT2D =
'2d'
SPHERE2D =
'2dsphere'
GEO2D =
'2d'
DEFAULT_MAX_BSON_SIZE =
4 * 1024 * 1024
NAME =
'em-mongo'
LIBPATH =
::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
PATH =
::File.dirname(LIBPATH) + ::File::SEPARATOR