MediaWiki  master
SchemaBuilder.php
Go to the documentation of this file.
1 <?php
2 namespace Wikimedia\Rdbms;
3 
10 interface SchemaBuilder {
11 
30  public function addTable( array $schema );
31 
35  public function getSql();
36 }
Wikimedia\Rdbms\SchemaBuilder\getSql
getSql()
Wikimedia\Rdbms
Definition: ChronologyProtector.php:24
Wikimedia\Rdbms\SchemaBuilder
Interface SchemaBuilder that gets a definition and produces SQL based on RDBMS.
Definition: SchemaBuilder.php:10
Wikimedia\Rdbms\SchemaBuilder\addTable
addTable(array $schema)
An example of $schema value: [ 'name' => 'actor', 'columns' => [ [ 'actor_id', 'bigint',...