0.11 Doctrine_Export_Pgsql
Doctrine Export Pgsql
Inheritence
Doctrine_Export_Pgsql < Doctrine_Export < Doctrine_Connection_Module
Method Summary
| Returns | Name | Description |
|---|---|---|
| boolean | alterTable | |
| array | alterTableSql | |
| createDatabaseSql | ||
| string | createSequenceSql | |
| unknown | createTableSql | |
| dropDatabaseSql | ||
| dropSequenceSql | ||
| string | getAdvancedForeignKeyOptions |
Methods inherited from Doctrine_Export
exportSchema , dropDatabaseSql , exportGeneratorsSql , createConstraintSql , dropSequence , createIndexSql , getDeclaration , createTableSql , getDefaultFieldDeclaration , getAdvancedForeignKeyOptions , dropDatabase , exportClassesSql , getCharsetFieldDeclaration , getCollationFieldDeclaration , dropIndex , dropSequenceSql , createConstraint , alterTableSql , exportTable , getForeignKeyBaseDeclaration , createForeignKeySql , getCheckDeclaration , exportClasses , dropTable , exportSql , getForeignKeyReferentialAction , alterTable , dropIndexSql , dropTableSql , dropConstraint , createSequence , createIndex , getUniqueFieldDeclaration , getForeignKeyDeclaration , getTemporaryTableQuery , dropForeignKey , createSequenceSql , getIndexDeclaration , getAllGenerators , createDatabase , createForeignKey , getFieldDeclarationList , createTable , createDatabaseSql , getIndexFieldDeclarationListMethod Details
-
$name name of the table that is intended to be changed. $changes associative array that contains the details of each type of change that is intended to be performed. The types of changes that are currently supported are defined as follows:
name
New name f
$check indicates whether the function should just check if the DBMS driver can perform the requested table alterations if the value is true or actually perform them otherwise. (boolean) alterTable($name, $changes, $check = false)
alter an existing table
throws Doctrine_Connection_Exception
-
$name name of the table that is intended to be changed. $changes associative array that contains the details of each type * $check indicates whether the function should just check if the DBMS driver can perform the requested table alterations if the value is true or actually perform them otherwise. (array) alterTableSql($name, $changes, $check = false)
generates the sql for altering an existing table on postgresql
-
createDatabaseSql($name)
-
$start start value of the sequence; default is 1 $options An associative array of table options: array( 'comment' => 'Foo', 'charset' => 'utf8', 'collate' => 'utf8_unicode_ci', ); $seqName name of the sequence to be created (string) createSequenceSql($sequenceName, $start = 1, $options = array(), $seqName)
return RDBMS specific create sequence statement
throws Doctrine_Connection_Exception if something fails at database level
-
(unknown) createTableSql((unknown_type) $name, $fields, $options = array())
Creates a table.
-
$name name of the database that should be dropped dropDatabaseSql($name)
drop an existing database
throws PDOException
-
$sequenceName name of the sequence to be dropped dropSequenceSql($sequenceName)
drop existing sequence
-
$definition foreign key definition (string) getAdvancedForeignKeyOptions($definition)
getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...




Comments (0) [ add comment ]
No Comments
Add Comment