MIOLO20
|
Membros protegidos | |
_getPortableDatabasesList ($databases) | |
_getPortableDatabaseDefinition ($database) | |
_getPortableFunctionsList ($functions) | |
_getPortableFunctionDefinition ($function) | |
_getPortableTriggersList ($triggers) | |
_getPortableTriggerDefinition ($trigger) | |
_getPortableSequencesList ($sequences) | |
_getPortableSequenceDefinition ($sequence) | |
_getPortableTableColumnList ($tableColumns) | |
_getPortableTableColumnDefinition ($tableColumn) | |
_getPortableTableIndexesList ($tableIndexRows, $tableName=null) | |
_getPortableTablesList ($tables) | |
_getPortableTableDefinition ($table) | |
_getPortableUsersList ($users) | |
_getPortableUserDefinition ($user) | |
_getPortableViewsList ($views) | |
_getPortableViewDefinition ($view) | |
_getPortableTableForeignKeysList ($tableForeignKeys) | |
_getPortableTableForeignKeyDefinition ($tableForeignKey) | |
_execSql ($sql) | |
Atributos Protegidos | |
$_conn | |
$_platform | |
Base class for schema managers. Schema managers are used to inspect and/or modify the database schema/structure.
@license http://www.opensource.org/licenses/lgpl-license.php LGPL
Definido na linha 39 do ficheiro AbstractSchemaManager.php.
__construct | ( | \Doctrine\DBAL\Connection | $conn | ) |
Constructor. Accepts the Connection instance to manage the schema for
\Doctrine\DBAL\Connection | $conn |
Definido na linha 60 do ficheiro AbstractSchemaManager.php.
|
protected |
Definido na linha 742 do ficheiro AbstractSchemaManager.php.
|
protected |
Reimplementado em MsSqlSchemaManager, MySqlSchemaManager, OracleSchemaManager e PostgreSqlSchemaManager.
Definido na linha 555 do ficheiro AbstractSchemaManager.php.
|
protected |
Methods for filtering return values of list*() methods to convert the native DBMS data definition to a portable Doctrine definition
Definido na linha 544 do ficheiro AbstractSchemaManager.php.
|
protected |
Reimplementado em OracleSchemaManager.
Definido na linha 571 do ficheiro AbstractSchemaManager.php.
|
protected |
Definido na linha 560 do ficheiro AbstractSchemaManager.php.
|
protected |
array | $sequence |
Reimplementado em MySqlSchemaManager, OracleSchemaManager e PostgreSqlSchemaManager.
Definido na linha 607 do ficheiro AbstractSchemaManager.php.
|
protected |
Definido na linha 592 do ficheiro AbstractSchemaManager.php.
|
abstractprotected |
Get Table Column Definition
array | $tableColumn |
Reimplementado em DB2SchemaManager, MsSqlSchemaManager, MySqlSchemaManager, OracleSchemaManager, PostgreSqlSchemaManager e SqliteSchemaManager.
|
protected |
Independent of the database the keys of the column list result are lowercased.
The name of the created column instance however is kept in its case.
array | $tableColumns |
Definido na linha 620 do ficheiro AbstractSchemaManager.php.
|
protected |
Reimplementado em MsSqlSchemaManager, MySqlSchemaManager, OracleSchemaManager, PostgreSqlSchemaManager e SqliteSchemaManager.
Definido na linha 688 do ficheiro AbstractSchemaManager.php.
|
protected |
Reimplementado em DB2SchemaManager, MsSqlSchemaManager, MySqlSchemaManager e PostgreSqlSchemaManager.
Definido na linha 737 do ficheiro AbstractSchemaManager.php.
|
protected |
Reimplementado em OracleSchemaManager.
Definido na linha 726 do ficheiro AbstractSchemaManager.php.
|
protected |
Aggregate and group the index results according to the required data result.
array | $tableIndexRows | |
string | $tableName |
Reimplementado em DB2SchemaManager, MySqlSchemaManager, OracleSchemaManager, PostgreSqlSchemaManager, SqliteSchemaManager e MsSqlSchemaManager.
Definido na linha 647 do ficheiro AbstractSchemaManager.php.
|
protected |
Reimplementado em DB2SchemaManager.
Definido na linha 677 do ficheiro AbstractSchemaManager.php.
|
protected |
Reimplementado em PostgreSqlSchemaManager.
Definido na linha 587 do ficheiro AbstractSchemaManager.php.
|
protected |
Definido na linha 576 do ficheiro AbstractSchemaManager.php.
|
protected |
Reimplementado em MySqlSchemaManager, OracleSchemaManager e PostgreSqlSchemaManager.
Definido na linha 704 do ficheiro AbstractSchemaManager.php.
|
protected |
Definido na linha 693 do ficheiro AbstractSchemaManager.php.
|
protected |
Reimplementado em DB2SchemaManager, MsSqlSchemaManager, MySqlSchemaManager, OracleSchemaManager, PostgreSqlSchemaManager e SqliteSchemaManager.
Definido na linha 721 do ficheiro AbstractSchemaManager.php.
|
protected |
Definido na linha 709 do ficheiro AbstractSchemaManager.php.
alterTable | ( | TableDiff | $tableDiff | ) |
Alter an existing tables schema
TableDiff | $tableDiff |
Definido na linha 516 do ficheiro AbstractSchemaManager.php.
createConstraint | ( | Constraint | $constraint, |
$table ) |
Create a constraint on a table
Constraint | $constraint | |
string | Table | $table |
Definido na linha 387 do ficheiro AbstractSchemaManager.php.
createDatabase | ( | $database | ) |
Creates a new database.
string | $database | The name of the database to create. |
Reimplementado em PostgreSqlSchemaManager, SqliteSchemaManager e OracleSchemaManager.
Definido na linha 353 do ficheiro AbstractSchemaManager.php.
createForeignKey | ( | ForeignKeyConstraint | $foreignKey, |
$table ) |
Create a new foreign key
ForeignKeyConstraint | $foreignKey | ForeignKey instance |
string | Table | $table | name of the table on which the foreign key is to be created |
Definido na linha 409 do ficheiro AbstractSchemaManager.php.
createIndex | ( | Index | $index, |
$table ) |
Create a new index on a table
Index | $index | |
string | $table | name of the table on which the index is to be created |
Definido na linha 398 do ficheiro AbstractSchemaManager.php.
createSchema | ( | ) |
Create a schema instance for the current database.
Definido na linha 754 do ficheiro AbstractSchemaManager.php.
createSchemaConfig | ( | ) |
Create the configuration for this schema.
Definido na linha 770 do ficheiro AbstractSchemaManager.php.
createSequence | ( | $sequence | ) |
Create a new sequence
Sequence | $sequence |
Doctrine |
DBAL\ConnectionException if something fails at database level
Definido na linha 376 do ficheiro AbstractSchemaManager.php.
createTable | ( | Table | $table | ) |
Create a new table.
Table | $table | |
int | $createFlags |
Definido na linha 364 do ficheiro AbstractSchemaManager.php.
createView | ( | View | $view | ) |
dropAndCreateConstraint | ( | Constraint | $constraint, |
$table ) |
Drop and create a constraint
Constraint | $constraint | |
string | $table |
Definido na linha 434 do ficheiro AbstractSchemaManager.php.
dropAndCreateDatabase | ( | $database | ) |
Drop and creates a new database.
string | $database | The name of the database to create. |
Definido na linha 492 do ficheiro AbstractSchemaManager.php.
dropAndCreateForeignKey | ( | ForeignKeyConstraint | $foreignKey, |
$table ) |
Drop and create a new foreign key
ForeignKeyConstraint | $foreignKey | associative array that defines properties of the foreign key to be created. |
string | Table | $table | name of the table on which the foreign key is to be created |
Definido na linha 458 do ficheiro AbstractSchemaManager.php.
dropAndCreateIndex | ( | Index | $index, |
$table ) |
Drop and create a new index on a table
string | Table | $table | name of the table on which the index is to be created |
Index | $index |
Definido na linha 446 do ficheiro AbstractSchemaManager.php.
dropAndCreateSequence | ( | Sequence | $sequence | ) |
Drop and create a new sequence
Sequence | $sequence |
Doctrine |
DBAL\ConnectionException if something fails at database level
Definido na linha 470 do ficheiro AbstractSchemaManager.php.
dropAndCreateTable | ( | Table | $table | ) |
Drop and create a new table.
Table | $table |
Definido na linha 481 do ficheiro AbstractSchemaManager.php.
dropAndCreateView | ( | View | $view | ) |
Drop and create a new view
View | $view |
Definido na linha 503 do ficheiro AbstractSchemaManager.php.
dropConstraint | ( | Constraint | $constraint, |
$table ) |
Drop the constraint from the given table
Constraint | $constraint | |
string | $table | The name of the table |
Definido na linha 308 do ficheiro AbstractSchemaManager.php.
dropDatabase | ( | $database | ) |
Drops a database.
NOTE: You can not drop the database this SchemaManager is currently connected to.
string | $database | The name of the database to drop |
Reimplementado em PostgreSqlSchemaManager e SqliteSchemaManager.
Definido na linha 272 do ficheiro AbstractSchemaManager.php.
dropForeignKey | ( | $foreignKey, | |
$table ) |
Drops a foreign key from a table.
ForeignKeyConstraint | string | $table | The name of the table with the foreign key. |
Table | string | $name | The name of the foreign key. |
Definido na linha 320 do ficheiro AbstractSchemaManager.php.
dropIndex | ( | $index, | |
$table ) |
Drop the index from the given table
Index | string | $index | The name of the index |
string | Table | $table | The name of the table |
Definido na linha 293 do ficheiro AbstractSchemaManager.php.
dropSequence | ( | $name | ) |
Drops a sequence with a given name.
string | $name | The name of the sequence to drop. |
Definido na linha 330 do ficheiro AbstractSchemaManager.php.
dropTable | ( | $table | ) |
Drop the given table
string | $table | The name of the table to drop |
Reimplementado em OracleSchemaManager.
Definido na linha 282 do ficheiro AbstractSchemaManager.php.
dropView | ( | $name | ) |
Drop a view
string | $name | The name of the view |
Definido na linha 341 do ficheiro AbstractSchemaManager.php.
getDatabasePlatform | ( | ) |
Return associated platform.
Definido na linha 71 do ficheiro AbstractSchemaManager.php.
listDatabases | ( | ) |
List the available databases for this connection
Definido na linha 107 do ficheiro AbstractSchemaManager.php.
listSequences | ( | $database = null | ) |
List the available sequences for this connection
Definido na linha 121 do ficheiro AbstractSchemaManager.php.
listTableColumns | ( | $table | ) |
List the columns for a given table.
In contrast to other libraries and to the old version of Doctrine, this column definition does try to contain the 'primary' field for the reason that it is not portable accross different RDBMS. Use {
string | $table | The name of the table. |
Definido na linha 146 do ficheiro AbstractSchemaManager.php.
listTableDetails | ( | $tableName | ) |
string | $tableName |
Definido na linha 220 do ficheiro AbstractSchemaManager.php.
listTableForeignKeys | ( | $table, | |
$database = null ) |
List the foreign keys for the given table
string | $table | The name of the table |
Definido na linha 252 do ficheiro AbstractSchemaManager.php.
listTableIndexes | ( | $table | ) |
List the indexes for a given table returning an array of Index instances.
Keys of the portable indexes list are all lower-cased.
string | $table | The name of the table |
Definido na linha 163 do ficheiro AbstractSchemaManager.php.
listTableNames | ( | ) |
Return a list of all tables in the current database
Reimplementado em DB2SchemaManager.
Definido na linha 190 do ficheiro AbstractSchemaManager.php.
listTables | ( | ) |
List the tables for this connection
Definido na linha 204 do ficheiro AbstractSchemaManager.php.
listViews | ( | ) |
List the views this connection has
Definido na linha 237 do ficheiro AbstractSchemaManager.php.
renameTable | ( | $name, | |
$newName ) |
Rename a given table to another name
string | $name | The current name of the table |
string | $newName | The new name of the table |
Definido na linha 532 do ficheiro AbstractSchemaManager.php.
tablesExist | ( | $tableNames | ) |
Return true if all the given tables exist.
array | $tableNames |
Definido na linha 178 do ficheiro AbstractSchemaManager.php.
tryMethod | ( | ) |
Try any method on the schema manager. Normally a method throws an exception when your DBMS doesn't support it or if an error occurs. This method allows you to try and method on your SchemaManager instance and will return false if it does not work or is not supported.
$result = $sm->tryMethod('dropView', 'view_name');
Definido na linha 88 do ficheiro AbstractSchemaManager.php.
|
protected |
Definido na linha 46 do ficheiro AbstractSchemaManager.php.
|
protected |
Definido na linha 53 do ficheiro AbstractSchemaManager.php.