[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/propel-generator/classes/propel/engine/builder/sql/mysql/ -> MysqlDDLBuilder.php (sommaire)

(pas de description)

Poids: 299 lignes (9 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

MysqlDDLBuilder:: (11 méthodes):
  getDatabaseStartDDL()
  getDatabaseEndDDL()
  addDropStatements()
  build()
  addTable()
  getIndexColumnList()
  addIndicesLines()
  addForeignKeysLines()
  containsColname()
  addForeignKeys()
  addIndices()


Classe: MysqlDDLBuilder  - X-Ref

DDL Builder class for MySQL.

getDatabaseStartDDL()   X-Ref
Returns some header SQL that disables foreign key checking.

return: string DDL

getDatabaseEndDDL()   X-Ref
Returns some footer SQL that re-enables foreign key checking.

return: string DDL

addDropStatements(&$script)   X-Ref


build()   X-Ref
Builds the SQL for current table and returns it as a string.

This is the main entry point and defines a basic structure that classes should follow.
In most cases this method will not need to be overridden by subclasses.

return: string The resulting SQL DDL.

addTable(&$script)   X-Ref


getIndexColumnList(Index $index)   X-Ref
Creates a comma-separated list of column names for the index.
For MySQL unique indexes there is the option of specifying size, so we cannot simply use
the getColumnsList() method.

param: Index $index
return: string

addIndicesLines(&$lines)   X-Ref
Adds indexes


addForeignKeysLines(&$lines)   X-Ref
Adds foreign key declarations & necessary indexes for mysql (if they don't exist already).


containsColname($columns, $searchcol)   X-Ref
Checks whether passed-in array of Column objects contains a column with specified name.

param: array Column[] or string[]
param: string $searchcol Column name to search for

addForeignKeys(&$script)   X-Ref
Not used for MySQL since foreign keys are declared inside table declaration.


addIndices(&$script)   X-Ref
Not used for MySQL since indexes are declared inside table declaration.




Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7