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

close

Source

abstract Void close()

Closes the connection.

in

Source

abstract InStream in()

Data from MongoDB to the client.

isClosed

Source

abstract Bool isClosed()

Return true if this socket is closed.

makeTcpConnection

Source

static Connection makeTcpConnection(IpAddr address := IpAddr)IpAddr.<ctor>("127.0.0.1", Int port := 27017, SocketOptions? options := null)

Creates a TCP Connection to the given IP address.

out

Source

abstract OutStream out()

Data to MongoDB from the client.