|
Doctrine 1.2.4
|
Inherits Doctrine_Import.
Public Member Functions | |
| databaseExists ($database) | |
| functionExists ($function) | |
| getConnection () | |
| getModuleName () | |
| importSchema ($directory, array $connections=array(), array $options=array()) | |
| listDatabases () | |
| listFunctions () | |
| listSequences ($database=null) | |
| listTableColumns ($table) | |
| listTableConstraints ($table) | |
| listTableIndexes ($table) | |
| listTableRelations ($tableName) | |
| listTables ($database=null) | |
| listTableTriggers ($table) | |
| listTableViews ($table) | |
| listTriggers ($database=null) | |
| listUsers () | |
| listViews ($database=null) | |
| sequenceExists ($sequence, $database=null) | |
| tableColumnExists ($column, $table) | |
| tableConstraintExists ($constraint, $table) | |
| tableExists ($table, $database=null) | |
| tableIndexExists ($index, $table) | |
| tableTriggerExists ($trigger, $table) | |
| tableViewExists ($view, $table) | |
| triggerExists ($trigger, $database=null) | |
| userExists ($user) | |
| viewExists ($view, $database=null) | |
|
inherited |
checks if a database exists
| string | $database |
Definition at line 220 of file Import.php.
|
inherited |
checks if a function exists
| string | $function |
Definition at line 231 of file Import.php.
|
inherited |
getConnection returns the connection object this module uses
Definition at line 68 of file Module.php.
|
inherited |
getModuleName returns the name of this module
Definition at line 79 of file Module.php.
|
inherited |
importSchema
method for importing existing schema to Doctrine_Record classes
| string | $directory | |
| array | $connections | Array of connection names to generate models for |
Definition at line 364 of file Import.php.
|
inherited |
lists all databases
Definition at line 46 of file Import.php.
|
inherited |
lists all availible database functions
Definition at line 60 of file Import.php.
| Doctrine_Import_Mysql::listSequences | ( | $database = null | ) |
lists all database sequences
| string | null | $database |
Definition at line 49 of file Mysql.php.
| Doctrine_Import_Mysql::listTableColumns | ( | $table | ) |
lists table constraints
| string | $table | database table name |
Definition at line 140 of file Mysql.php.
| Doctrine_Import_Mysql::listTableConstraints | ( | $table | ) |
lists table constraints
| string | $table | database table name |
Definition at line 66 of file Mysql.php.
| Doctrine_Import_Mysql::listTableIndexes | ( | $table | ) |
lists table constraints
| string | $table | database table name |
Definition at line 185 of file Mysql.php.
| Doctrine_Import_Mysql::listTableRelations | ( | $tableName | ) |
lists table relations
Expects an array of this format to be returned with all the relationships in it where the key is the name of the foreign table, and the value is an array containing the local and foreign column name
Array ( [groups] => Array ( [local] => group_id [foreign] => id ) )
| string | $table | database table name |
Definition at line 119 of file Mysql.php.
| Doctrine_Import_Mysql::listTables | ( | $database = null | ) |
|
inherited |
lists table triggers
| string | $table | database table name |
Definition at line 169 of file Import.php.
|
inherited |
lists table views
| string | $table | database table name |
Definition at line 180 of file Import.php.
|
inherited |
lists all database triggers
| string | null | $database |
Definition at line 75 of file Import.php.
|
inherited |
lists database users
Definition at line 190 of file Import.php.
| Doctrine_Import_Mysql::listViews | ( | $database = null | ) |
lists database views
| string | null | $database |
Definition at line 230 of file Mysql.php.
|
inherited |
checks if a sequence exists
| string | $sequence | |
| string | null | $database |
Definition at line 255 of file Import.php.
|
inherited |
checks if a table column exists
| string | $column | |
| string | $table | database table name |
Definition at line 279 of file Import.php.
|
inherited |
checks if a table constraint exists
| string | $constraint | |
| string | $table | database table name |
Definition at line 267 of file Import.php.
|
inherited |
checks if a table exists
| string | $table | |
| string | null | $database |
Definition at line 303 of file Import.php.
|
inherited |
checks if a table index exists
| string | $index | |
| string | $table | database table name |
Definition at line 291 of file Import.php.
|
inherited |
checks if a table trigger exists
| string | $trigger | |
| string | $table | database table name |
Definition at line 315 of file Import.php.
|
inherited |
checks if a table view exists
| string | $view | |
| string | $table | database table name |
Definition at line 327 of file Import.php.
|
inherited |
checks if a trigger exists
| string | $trigger | |
| string | null | $database |
Definition at line 243 of file Import.php.
|
inherited |
checks if a user exists
| string | $user |
Definition at line 338 of file Import.php.
|
inherited |
checks if a view exists
| string | $view | |
| string | null | $database |
Definition at line 350 of file Import.php.