You are here

public function FrxPostgres::__destruct in Forena Reports 7.5

Destructor - Closes database connections.

File

src/Driver/FrxPostgres.php, line 270
Postgres specific driver that takes advantage of native XML support

Class

FrxPostgres

Namespace

Drupal\forena\Driver

Code

public function __destruct() {
  $db = $this->db;
  if ($db) {
    pg_close($db);
  }
}