PHP Class Phpmig\Adapter\PDO\SqlPgsql

Author: Theodson https://github.com/theodson
Inheritance: extends Phpmig\Adapter\PDO\Sql
Show file Open project: davedevelopment/phpmig

Public Methods

Method Description
__construct ( PDO $connection, string $tableName, $schemaName = 'public' ) Constructor
createSchema ( ) : DBAL Create Schema
down ( Phpmig\Migration\Migration $migration ) : self Down
fetchAll ( ) : array Fetch all
hasSchema ( ) : boolean Is the schema ready?
up ( Phpmig\Migration\Migration $migration ) : self Up

Private Methods

Method Description
quotedTableName ( )

Method Details

__construct() public method

Constructor
public __construct ( PDO $connection, string $tableName, $schemaName = 'public' )
$connection PDO
$tableName string

createSchema() public method

Create Schema
public createSchema ( ) : DBAL
return DBAL

down() public method

Down
public down ( Phpmig\Migration\Migration $migration ) : self
$migration Phpmig\Migration\Migration
return self

fetchAll() public method

Fetch all
public fetchAll ( ) : array
return array

hasSchema() public method

Is the schema ready?
public hasSchema ( ) : boolean
return boolean

up() public method

Up
public up ( Phpmig\Migration\Migration $migration ) : self
$migration Phpmig\Migration\Migration
return self