MediaWiki  master
SchemaBuilder.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Wikimedia\Rdbms;
4 
11 interface SchemaBuilder {
12 
31  public function addTable( array $schema );
32 
36  public function getSql();
37 }
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:11
Wikimedia\Rdbms\SchemaBuilder\addTable
addTable(array $schema)
An example of $schema value: [ 'name' => 'actor', 'columns' => [ [ 'actor_id', 'bigint',...