Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5978675
SchemaBuilder.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
825 B
Referenced Files
None
Subscribers
None
SchemaBuilder.php
View Options
<?php
namespace
Wikimedia\Rdbms
;
/**
* Interface SchemaBuilder that gets a definition and produces SQL based on RDBMS
*
* @experimental
* @unstable
*/
interface
SchemaBuilder
{
/**
* 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' ]
* ],
* @param array $schema
* @return void
*/
public
function
addTable
(
array
$schema
);
/**
* @return string[] SQLs to run
*/
public
function
getSql
();
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 20:30 (3 d, 21 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
31/ff/8377e7a970b27973a5483ec74aa6
Default Alt Text
SchemaBuilder.php (825 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment