MediaWiki  1.30.2
Wikimedia\Rdbms\PostgresField Class Reference
Inheritance diagram for Wikimedia\Rdbms\PostgresField:
Collaboration diagram for Wikimedia\Rdbms\PostgresField:

Public Member Functions

 conname ()
 
 defaultValue ()
 
 is_deferrable ()
 
 is_deferred ()
 
 isNullable ()
 Whether this field can store NULL values. More...
 
 maxLength ()
 
 name ()
 Field name. More...
 
 tableName ()
 Name of table this field belongs to. More...
 
 type ()
 Database type. More...
 

Static Public Member Functions

static fromText (DatabasePostgres $db, $table, $field)
 

Public Attributes

 $conname
 
 $default
 
 $deferrable
 
 $deferred
 
 $has_default
 
 $max_length
 
 $nullable
 
 $tablename
 
 $type
 

Private Attributes

 $name
 

Detailed Description

Definition at line 5 of file PostgresField.php.

Member Function Documentation

◆ conname()

Wikimedia\Rdbms\PostgresField::conname ( )

◆ defaultValue()

Wikimedia\Rdbms\PostgresField::defaultValue ( )
Since
1.19
Returns
bool|mixed

Definition at line 103 of file PostgresField.php.

References Wikimedia\Rdbms\PostgresField\$default.

◆ fromText()

◆ is_deferrable()

Wikimedia\Rdbms\PostgresField::is_deferrable ( )

Definition at line 87 of file PostgresField.php.

References Wikimedia\Rdbms\PostgresField\$deferrable.

◆ is_deferred()

Wikimedia\Rdbms\PostgresField::is_deferred ( )

Definition at line 91 of file PostgresField.php.

References Wikimedia\Rdbms\PostgresField\$deferred.

◆ isNullable()

Wikimedia\Rdbms\PostgresField::isNullable ( )

Whether this field can store NULL values.

Returns
bool

Implements Wikimedia\Rdbms\Field.

Definition at line 79 of file PostgresField.php.

References Wikimedia\Rdbms\PostgresField\$nullable.

◆ maxLength()

Wikimedia\Rdbms\PostgresField::maxLength ( )

Definition at line 83 of file PostgresField.php.

References Wikimedia\Rdbms\PostgresField\$max_length.

◆ name()

Wikimedia\Rdbms\PostgresField::name ( )

Field name.

Returns
string

Implements Wikimedia\Rdbms\Field.

Definition at line 67 of file PostgresField.php.

References Wikimedia\Rdbms\PostgresField\$name.

◆ tableName()

Wikimedia\Rdbms\PostgresField::tableName ( )

Name of table this field belongs to.

Returns
string

Implements Wikimedia\Rdbms\Field.

Definition at line 71 of file PostgresField.php.

References Wikimedia\Rdbms\PostgresField\$tablename.

◆ type()

Wikimedia\Rdbms\PostgresField::type ( )

Database type.

Returns
string

Implements Wikimedia\Rdbms\Field.

Definition at line 75 of file PostgresField.php.

References Wikimedia\Rdbms\PostgresField\$type.

Referenced by Wikimedia\Rdbms\PostgresField\fromText().

Member Data Documentation

◆ $conname

Wikimedia\Rdbms\PostgresField::$conname

Definition at line 6 of file PostgresField.php.

Referenced by Wikimedia\Rdbms\PostgresField\conname().

◆ $default

Wikimedia\Rdbms\PostgresField::$default

Definition at line 6 of file PostgresField.php.

Referenced by Wikimedia\Rdbms\PostgresField\defaultValue().

◆ $deferrable

Wikimedia\Rdbms\PostgresField::$deferrable

Definition at line 6 of file PostgresField.php.

Referenced by Wikimedia\Rdbms\PostgresField\is_deferrable().

◆ $deferred

Wikimedia\Rdbms\PostgresField::$deferred

Definition at line 6 of file PostgresField.php.

Referenced by Wikimedia\Rdbms\PostgresField\is_deferred().

◆ $has_default

Wikimedia\Rdbms\PostgresField::$has_default

Definition at line 6 of file PostgresField.php.

◆ $max_length

Wikimedia\Rdbms\PostgresField::$max_length

Definition at line 6 of file PostgresField.php.

Referenced by Wikimedia\Rdbms\PostgresField\maxLength().

◆ $name

Wikimedia\Rdbms\PostgresField::$name
private

Definition at line 6 of file PostgresField.php.

Referenced by Wikimedia\Rdbms\PostgresField\name().

◆ $nullable

Wikimedia\Rdbms\PostgresField::$nullable

Definition at line 6 of file PostgresField.php.

Referenced by Wikimedia\Rdbms\PostgresField\isNullable().

◆ $tablename

Wikimedia\Rdbms\PostgresField::$tablename

Definition at line 6 of file PostgresField.php.

Referenced by Wikimedia\Rdbms\PostgresField\tableName().

◆ $type

Wikimedia\Rdbms\PostgresField::$type

Definition at line 6 of file PostgresField.php.

Referenced by Wikimedia\Rdbms\PostgresField\type().


The documentation for this class was generated from the following file: