Class

PgsqlSchemaParser

class PgsqlSchemaParser extends BaseSchemaParser

Postgresql database schema parser.

Methods

__construct(PDO $dbh = null)

from BaseSchemaParser
setConnection(PDO $dbh)

Sets the database connection.

from BaseSchemaParser
PDO getConnection()

Gets the database connection.

from BaseSchemaParser
setMigrationTable(string $migrationTable)

Setter for the migrationTable property

from BaseSchemaParser
string getMigrationTable()

Getter for the migrationTable property

from BaseSchemaParser
array getWarnings()

Gets array of warning messages.

from BaseSchemaParser
setGeneratorConfig(GeneratorConfigInterface $config)

Sets the GeneratorConfig to use in the parsing.

from BaseSchemaParser
GeneratorConfig getGeneratorConfig()

Gets the GeneratorConfig option.

from BaseSchemaParser
mixed getBuildProperty(string $name)

Gets a specific propel (renamed) property from the build.

from BaseSchemaParser
setPlatform($platform)

from BaseSchemaParser
getPlatform()

from BaseSchemaParser
int parse(Database $database, Task $task = null)

Details

in BaseSchemaParser at line 71
public __construct(PDO $dbh = null)

Parameters

PDO $dbh Optional database connection

in BaseSchemaParser at line 83
public setConnection(PDO $dbh)

Sets the database connection.

Parameters

PDO $dbh

in BaseSchemaParser at line 93
public PDO getConnection()

Gets the database connection.

Return Value

PDO

in BaseSchemaParser at line 103
public setMigrationTable(string $migrationTable)

Setter for the migrationTable property

Parameters

string $migrationTable

in BaseSchemaParser at line 113
public string getMigrationTable()

Getter for the migrationTable property

Return Value

string

in BaseSchemaParser at line 133
public array getWarnings()

Gets array of warning messages.

Return Value

array string[]

in BaseSchemaParser at line 143
public setGeneratorConfig(GeneratorConfigInterface $config)

Sets the GeneratorConfig to use in the parsing.

Parameters

GeneratorConfigInterface $config

in BaseSchemaParser at line 153
public GeneratorConfig getGeneratorConfig()

Gets the GeneratorConfig option.

Return Value

GeneratorConfig

in BaseSchemaParser at line 165
public mixed getBuildProperty(string $name)

Gets a specific propel (renamed) property from the build.

Parameters

string $name

Return Value

mixed

in BaseSchemaParser at line 232
public setPlatform($platform)

Parameters

$platform

in BaseSchemaParser at line 237
public getPlatform()

at line 78
public int parse(Database $database, Task $task = null)

Parameters

Database $database
Task $task

Return Value

int number of generated tables