Function Connection.close

Explicitly close the connection.

This is a two-stage process. First tell the server we are quitting this connection, and then close the socket.

Idiomatic use as follows is suggested:

{
    auto con = Connection("localhost:user:password:mysqld");
    scope(exit) con.close();
    // Use the connection
    ...
}

Prototype

void close();

Authors

Copyright

License