|
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 ($table) | |
| 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) | |
Definition at line 32 of file Sqlite.php.
|
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.
| Doctrine_Import_Sqlite::listDatabases | ( | ) |
| Doctrine_Import_Sqlite::listFunctions | ( | ) |
| Doctrine_Import_Sqlite::listSequences | ( | $database = null | ) |
lists all database sequences
| string | null | $database |
Definition at line 71 of file Sqlite.php.
| Doctrine_Import_Sqlite::listTableColumns | ( | $table | ) |
lists table constraints
| string | $table | database table name |
Definition at line 130 of file Sqlite.php.
| Doctrine_Import_Sqlite::listTableConstraints | ( | $table | ) |
lists table constraints
| string | $table | database table name |
Definition at line 94 of file Sqlite.php.
| Doctrine_Import_Sqlite::listTableIndexes | ( | $table | ) |
lists table constraints
| string | $table | database table name |
Definition at line 166 of file Sqlite.php.
|
inherited |
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 125 of file Import.php.
| Doctrine_Import_Sqlite::listTables | ( | $database = null | ) |
lists tables
| string | null | $database |
Definition at line 177 of file Sqlite.php.
| Doctrine_Import_Sqlite::listTableTriggers | ( | $table | ) |
lists table triggers
| string | $table | database table name |
Definition at line 192 of file Sqlite.php.
| Doctrine_Import_Sqlite::listTableViews | ( | $table | ) |
lists table views
| string | $table | database table name |
Definition at line 203 of file Sqlite.php.
| Doctrine_Import_Sqlite::listTriggers | ( | $database = null | ) |
lists all database triggers
| string | null | $database |
Definition at line 60 of file Sqlite.php.
| Doctrine_Import_Sqlite::listUsers | ( | ) |
| Doctrine_Import_Sqlite::listViews | ( | $database = null | ) |
lists database views
| string | null | $database |
Definition at line 235 of file Sqlite.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.