MediaWiki REL1_37
|
Interface SchemaBuilder that gets a definition and produces SQL based on RDBMS. More...
Public Member Functions | |
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 () | |
Interface SchemaBuilder that gets a definition and produces SQL based on RDBMS.
@experimental
Definition at line 11 of file SchemaBuilder.php.
Wikimedia\Rdbms\SchemaBuilder::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 |
Implemented in Wikimedia\Rdbms\DoctrineSchemaBuilder.
Wikimedia\Rdbms\SchemaBuilder::getSql | ( | ) |
Implemented in Wikimedia\Rdbms\DoctrineSchemaBuilder.