You are here

public function FrxPostgres::__destruct in Forena Reports 8

Destructor - Closes database connections.

File

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

Class

FrxPostgres
Class FrxPostgres

Namespace

Drupal\forena\FrxPlugin\Driver

Code

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