mysql-native v2.2.0

API Reference Home: [This Version] [Latest Version] [Other Versions]


Function Connection.close

Explicitly close the connection.

void close ();

Idiomatic use as follows is suggested:

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