MediaWiki REL1_35
|
@experimental @unstable More...
Public Member Functions | ||||
__construct (AbstractPlatform $platform) | ||||
A builder object that take abstract schema definition and produces sql to create the tables. | ||||
addTable (array $schema) | ||||
An example of $schema value: [ 'name' => 'actor', 'columns' => [ [ 'actor_id', 'bigint', [ 'Unsigned' => true, 'Notnull' => true ] ], [ 'actor_user', 'integer', [ 'Unsigned' => true ] ], [ 'actor_name', 'string', [ 'Length' => 255, 'Notnull' => true ] ], ], 'indexes' => [ [ 'actor_user', [ 'actor_user' ], 'unique' => true ], [ 'actor_name', [ 'actor_name' ], 'unique' => true ] ], 'pk' => [ 'actor_id' ] ],.
| ||||
getSql () | ||||
| ||||
Public Attributes | |
const | TABLE_PREFIX = '/*_*/' |
Private Attributes | |
$platform | |
$schema | |
@experimental @unstable
Definition at line 12 of file DoctrineSchemaBuilder.php.
Wikimedia\Rdbms\DoctrineSchemaBuilder::__construct | ( | AbstractPlatform | $platform | ) |
A builder object that take abstract schema definition and produces sql to create the tables.
AbstractPlatform | $platform | A Doctrine Platform object, Can be Mysql, Sqlite, etc. |
Definition at line 23 of file DoctrineSchemaBuilder.php.
References Wikimedia\Rdbms\DoctrineSchemaBuilder\$platform.
Wikimedia\Rdbms\DoctrineSchemaBuilder::addTable | ( | array | $schema | ) |
An example of $schema value: [ 'name' => 'actor', 'columns' => [ [ 'actor_id', 'bigint', [ 'Unsigned' => true, 'Notnull' => true ] ], [ 'actor_user', 'integer', [ 'Unsigned' => true ] ], [ 'actor_name', 'string', [ 'Length' => 255, 'Notnull' => true ] ], ], 'indexes' => [ [ 'actor_user', [ 'actor_user' ], 'unique' => true ], [ 'actor_name', [ 'actor_name' ], 'unique' => true ] ], 'pk' => [ 'actor_id' ] ],.
array | $schema |
Implements Wikimedia\Rdbms\SchemaBuilder.
Definition at line 31 of file DoctrineSchemaBuilder.php.
References Wikimedia\Rdbms\DoctrineSchemaBuilder\$schema.
Wikimedia\Rdbms\DoctrineSchemaBuilder::getSql | ( | ) |
Implements Wikimedia\Rdbms\SchemaBuilder.
Definition at line 50 of file DoctrineSchemaBuilder.php.
|
private |
Definition at line 14 of file DoctrineSchemaBuilder.php.
Referenced by Wikimedia\Rdbms\DoctrineSchemaBuilder\__construct().
|
private |
Definition at line 13 of file DoctrineSchemaBuilder.php.
Referenced by Wikimedia\Rdbms\DoctrineSchemaBuilder\addTable().
const Wikimedia\Rdbms\DoctrineSchemaBuilder::TABLE_PREFIX = '/*_*/' |
Definition at line 16 of file DoctrineSchemaBuilder.php.