You are here

public function FrxPostgres::__destruct in Forena Reports 7.4

Same name and namespace in other branches
  1. 6.2 plugins/FrxPostgres.inc \FrxPostgres::__destruct()
  2. 6 plugins/FrxPostgres.inc \FrxPostgres::__destruct()
  3. 7 plugins/FrxPostgres.inc \FrxPostgres::__destruct()
  4. 7.2 plugins/FrxPostgres.inc \FrxPostgres::__destruct()
  5. 7.3 plugins/FrxPostgres.inc \FrxPostgres::__destruct()

Destructor - Closes database connections.

File

plugins/FrxPostgres.inc, line 269
Postgres specific driver that takes advantage of native XML support

Class

FrxPostgres
@file Postgres specific driver that takes advantage of native XML support

Code

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