Product SiteDocumentation Site

17.3.7. Closing the database

When you are done with the RPM database, call close_rpm_db, as shown following:
$rpm_db->close_rpm_db();
Note that this call is not necessary, as the RPM2 module will close the database when the object, in this case $rpm_db, goes out of scope.