Skip to content

Instantly share code, notes, and snippets.

@tbergeron
Created April 9, 2012 15:11
Show Gist options
  • Save tbergeron/2344150 to your computer and use it in GitHub Desktop.
Save tbergeron/2344150 to your computer and use it in GitHub Desktop.
Raynos pd/mongodb result example
{ db:
{ databaseName: 'thinair',
serverConfig:
{ host: 'my.fantastic.host.com',
port: 27017,
options: [Object],
internalMaster: true,
connected: true,
poolSize: 4,
ssl: false,
slaveOk: undefined,
_used: true,
_readPreference: null,
socketOptions: [Object],
logger: [Object],
eventHandlers: [Object],
_serverState: 'connected',
_state: [Object],
recordQueryStats: false,
autoReconnect: [Getter],
connection: [Getter/Setter],
master: [Getter/Setter],
primary: [Getter],
queryStats: [Getter],
runtimeStats: [Getter],
readPreference: [Getter],
dbInstance: [Circular],
dbInstances: [Object],
connectionPool: [Object],
isMasterDoc: [Object] },
options: {},
_applicationClosed: false,
native_parser: undefined,
bsonLib:
{ Code: [Function: Code],
Symbol: [Function: Symbol],
BSON: [Object],
DBRef: [Function: DBRef],
Binary: [Object],
ObjectID: [Object],
Long: [Object],
Timestamp: [Object],
Double: [Function: Double],
MinKey: [Function: MinKey],
MaxKey: [Function: MaxKey] },
bson: {},
bson_deserializer:
{ Code: [Function: Code],
Symbol: [Function: Symbol],
BSON: [Object],
DBRef: [Function: DBRef],
Binary: [Object],
ObjectID: [Object],
Long: [Object],
Timestamp: [Object],
Double: [Function: Double],
MinKey: [Function: MinKey],
MaxKey: [Function: MaxKey] },
bson_serializer:
{ Code: [Function: Code],
Symbol: [Function: Symbol],
BSON: [Object],
DBRef: [Function: DBRef],
Binary: [Object],
ObjectID: [Object],
Long: [Object],
Timestamp: [Object],
Double: [Function: Double],
MinKey: [Function: MinKey],
MaxKey: [Function: MaxKey] },
_state: 'connected',
pkFactory:
{ [Function: ObjectID]
index: 0,
createPk: [Function: createPk],
createFromTime: [Function: createFromHexString],
createFromHexString: [Function: createFromHexString] },
forceServerObjectId: false,
strict: false,
notReplied: {},
isInitializing: true,
auths: [],
openCalled: true,
commands: [],
_callBackStore: { _notReplied: {}, _events: {} },
logger: { error: [Function], log: [Function], debug: [Function] },
slaveOk: false,
tag: 1333984013417,
eventHandlers:
{ error: [],
parseError: [],
poolReady: [],
message: [],
close: [] },
serializeFunctions: false,
raw: false,
recordQueryStats: false,
reaperEnabled: false,
_lastReaperTimestamp: 1333984013417,
retryMiliSeconds: 5000,
numberOfRetries: 5,
reaperInterval: 10000,
reaperTimeout: 30000,
state: [Getter] },
collection:
{ db:
{ databaseName: 'thinair',
serverConfig: [Object],
options: {},
_applicationClosed: false,
native_parser: undefined,
bsonLib: [Object],
bson: {},
bson_deserializer: [Object],
bson_serializer: [Object],
_state: 'connected',
pkFactory: [Object],
forceServerObjectId: false,
strict: false,
notReplied: {},
isInitializing: true,
auths: [],
openCalled: true,
commands: [],
_callBackStore: [Object],
logger: [Object],
slaveOk: false,
tag: 1333984013417,
eventHandlers: [Object],
serializeFunctions: false,
raw: false,
recordQueryStats: false,
reaperEnabled: false,
_lastReaperTimestamp: 1333984013417,
retryMiliSeconds: 5000,
numberOfRetries: 5,
reaperInterval: 10000,
reaperTimeout: 30000,
state: [Getter] },
collectionName: 'projects',
opts: {},
slaveOk: false,
serializeFunctions: false,
raw: false,
pkFactory:
{ [Function: ObjectID]
index: 0,
createPk: [Function: createPk],
createFromTime: [Function: createFromHexString],
createFromHexString: [Function: createFromHexString] },
hint: [Getter/Setter] },
selector: {},
fields: undefined,
skipValue: 0,
limitValue: 0,
sortValue: { date_created: 1 },
hint: undefined,
explainValue: undefined,
snapshot: undefined,
timeout: true,
tailable: undefined,
batchSizeValue: 0,
slaveOk: false,
raw: false,
read: true,
returnKey: undefined,
maxScan: undefined,
min: undefined,
max: undefined,
showDiskLoc: undefined,
comment: undefined,
totalNumberOfRecords: 0,
items: [],
cursorId: { _bsontype: 'Long', low_: 0, high_: 0 },
state: 0,
queryRun: false,
getMoreTimer: false,
collectionName: 'thinair.projects' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment