OpenSQLManager/src/databases/pgsql.php
Timothy Warren 39b2688675 Per-db driver checks
Only show databases that are supported by PHP
2012-01-31 16:29:48 -05:00

43 lines
755 B
PHP

<?php
/**
* OpenSQLManager
*
* Free Database manager for Open Source Databases
*
* @author Timothy J. Warren
* @copyright Copyright (c) 2012
* @link https://github.com/aviat4ion/OpenSQLManager
* @license http://philsturgeon.co.uk/code/dbad-license
*/
// --------------------------------------------------------------------------
// Test for support
if( ! in_array('pgsql', pdo_drivers()))
{
return FALSE;
}
/**
* PostgreSQL specifc class
*
* @extends DB_PDO
*/
class pgSQL extends DB_PDO {
function __construct($dsn, $username=null, $password=null, $options=array())
{
parent::__construct($dsn, $username, $password, $options);
}
/**
* Empty a table
*
* @param string $table
*/
function truncate($table)
{
}
}