Connection class
Constructors
- Connection(ConnectionManager _manager, [ServerConfig? serverConfig])
Properties
- connected ↔ bool
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAuthenticated → bool
-
no setter
- isMaster ↔ bool
-
getter/setter pair
-
repliesSubscription
→ StreamSubscription<
MongoResponseMessage> ? -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverCapabilities → ServerCapabilities
-
final
- serverConfig ↔ ServerConfig
-
getter/setter pair
- serverStatus → ServerStatus
-
final
- socket ↔ Socket?
-
getter/setter pair
Methods
-
close(
) → Future< void> -
connect(
) → Future< bool> -
execute(
MongoMessage mongoMessage, bool runImmediately) → void - If runImmediately is set to false, the message is joined into one packet with other messages that follows. This is used for joining insert, update and remove commands with getLastError query (according to MongoDB docs, for some reason, these should be sent 'together')
-
executeModernMessage(
MongoModernMessage modernMessage) → Future< MongoModernMessage> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
query(
MongoMessage queryMessage) → Future< MongoReplyMessage> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited