InsertManyOperationV1 class base

Inheritance

Constructors

InsertManyOperationV1(MongoCollection collection, List<MongoDocument> document, {ClientSession? session, InsertManyOptionsV1? insertManyOptions, Options? rawOptions})

Properties

canRetryRead bool
no setterinherited
collection MongoCollection?
getter/setter pairinherited
command ↔ Command
getter/setter pairinherited
db MongoDatabase
getter/setter pairinherited
documents List<MongoDocument>
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
ids List
getter/setter pairinherited
isImplicitSession bool
getter/setter pairinherited
mongoClient MongoClient
getter/setter pairinherited
options ↔ Options
getter/setter pairinherited
readPreference ReadPreference?
The ReadPreference Object has prefernce with respect to the options ReadPrefernce Specs
getter/setter pairinherited
requiresAuthentication bool
Some commanda, like Hello can be run without first having authenticated the connection. In this case the default value is overridden in the derived class.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
session ClientSession
finalinherited
topology → Topology
no setterinherited

Methods

$buildCommand() → Command
inherited
execute({Server? server}) Future<MongoDocument>
This method is for exposing a common interface for the user Must be overriden from commands
inherited
executeDocument() Future<InsertManyDocumentRec>
inherited
executeInsert() Future<InsertRec>
inherited
executeOnServer(Server server, {ConnectionBase? connection}) Future<MongoDocument>
A session ID MUST NOT be used simultaneously by more than one operation. Since drivers don't wait for a response for an unacknowledged write a driver would not know when the session ID could be reused. In theory a driver could use a new session ID for each unacknowledged write, but that would result in many orphaned sessions building up at the server. Therefore drivers MUST NOT send a session ID with unacknowledged writes under any circumstances: For unacknowledged writes with an explicit session, drivers SHOULD raise an error. If a driver allows users to provide an explicit session with an unacknowledged write (e.g. for backwards compatibility), the driver MUST NOT send the session ID. For unacknowledged writes without an explicit session, drivers SHOULD NOT use an implicit session. If a driver creates an implicit session for unacknowledged writes without an explicit session, the driver MUST NOT send the session ID. Drivers MUST document the behavior of unacknowledged writes for both explicit and implicit sessions.
inherited
hasAspect(Aspect aspect) bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
process() Future<MongoDocument>
This method is for internal processing
inherited
processOptions(Command command) → void
ReadPrefernce must be managed before
inherited
toString() String
A string representation of this object.
inherited

Operators

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