DbCommand class

Inheritance

Constructors

DbCommand(Db db, String collectionName, int flags, int numberToSkip, int numberToReturn, Map<String, dynamic> query, Map<String, dynamic>? fields)

Properties

collectionNameBson → BsonCString?
no setterinherited
db ↔ Db
getter/setter pair
flags ↔ int
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
messageLength → int
no setterinherited
numberToReturn ↔ int
getter/setter pairinherited
numberToSkip ↔ int
getter/setter pairinherited
opcode ↔ int
getter/setter pairinherited
requestId → int
no setterinherited
responseTo ↔ int
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readMessageHeaderFrom(BsonBinary buffer) → void
inherited
serialize() → BsonBinary
inherited
toString() → String
A string representation of this object.
inherited
writeMessageHeaderTo(BsonBinary buffer) → void
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

createAggregateCommand(Db db, String collectionName, List pipeline, {bool allowDiskUse = false, Map<String, dynamic>? cursor}) → DbCommand
createBuildInfoCommand(Db db) → DbCommand
createCountCommand(Db db, String collectionName, [Map<String, dynamic> selector = const {}]) → DbCommand
createDBSlaveOKCommand(Db db, Map<String, dynamic> command) → DbCommand
createDistinctCommand(Db db, String collectionName, String field, [Map<String, dynamic> selector = const {}]) → DbCommand
createDropCollectionCommand(Db db, String collectionName) → DbCommand
createDropDatabaseCommand(Db db) → DbCommand
createFindAndModifyCommand(Db db, String collectionName, {Map<String, dynamic>? query, Map<String, dynamic>? sort, bool? remove = false, Map<String, dynamic>? update, bool? returnNew = false, Map<String, dynamic>? fields, bool? upsert = false}) → DbCommand
createGetLastErrorCommand(Db db, WriteConcern? concern) → DbCommand
createGetNonceCommand(Db db) → DbCommand
createIsMasterCommand(Db db) → DbCommand
createPingCommand(Db db) → DbCommand
createQueryAdminCommand(Map<String, dynamic> command) → MongoQueryMessage
createQueryDbCommand(Db db, Map<String, dynamic> command) → DbCommand
createSaslContinueCommand(Db db, int conversationId, Uint8List bytesToSendToServer) → DbCommand
createSaslStartCommand(Db db, String mechanismName, Uint8List bytesToSendToServer) → DbCommand