mixinafMongo::Connection
afMongo::Connection
Represents a connection to a MongoDB instance. All connections on creation should be connected to a MongoDB instance and ready to go.
@see TcpConnection
- authenticate
virtual Void authenticate(Str databaseName, Str userName, Str password)Authenticates this connection against a database with the given user credentials.
- authentications
abstract Str:Str authenticationsA map of databases -> users this connection is authenticated as.
- close
abstract Void close()Closes the connection.
- in
abstract InStream in()Data from MongoDB to the client.
- isClosed
abstract Bool isClosed()Return
trueif this socket is closed.- logout
virtual Void logout(Str databaseName, Bool checked := true)Logs this connection out from the given database.
- out
abstract OutStream out()Data to MongoDB from the client.