Blob, Field, DatabaseBase are now auto-detected. Change-Id: Ib8fae2ec3fbb3f5e4aca7965f81631c5f0485ea1
35 lines
530 B
PHP
35 lines
530 B
PHP
<?php
|
|
|
|
namespace Wikimedia\Rdbms;
|
|
|
|
/**
|
|
* Base for all database-specific classes representing information about database fields
|
|
* @ingroup Database
|
|
*/
|
|
interface Field {
|
|
/**
|
|
* Field name
|
|
* @return string
|
|
*/
|
|
function name();
|
|
|
|
/**
|
|
* Name of table this field belongs to
|
|
* @return string
|
|
*/
|
|
function tableName();
|
|
|
|
/**
|
|
* Database type
|
|
* @return string
|
|
*/
|
|
function type();
|
|
|
|
/**
|
|
* Whether this field can store NULL values
|
|
* @return bool
|
|
*/
|
|
function isNullable();
|
|
}
|
|
|
|
class_alias( Field::class, 'Field' );
|