Consider the following PHP snippet:
$dbw = new db_writer($table_name); // establishes a PDO connection $success = $dbw->insert_record($record); unset($dbw);
Does unsetting the $dbw object result in the PDO connection closing?
The whole point of my db_writer class is to preserve the connection so that, if desired, the class can perform multiple operations without having to make/break the connection for each operation. Thus the class does not ever unset the PDO object, which I presume does close the connection.