mysql-native v3.0.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
    ...
}