PHP Class SqlParser\Components\PartitionDefinition

Used for parsing CREATE TABLE statement.
Author: Dan Ungureanu ([email protected])
Inheritance: extends SqlParser\Component
Afficher le fichier Open project: phpmyadmin/sql-parser Class Usage Examples

Méthodes publiques

Свойство Type Description
$OPTIONS array All field options.
$expr Expression | string The expression used to defined this partition.
$isSubpartition boolean Whether this entry is a subpartition or a partition.
$name string The name of this partition.
$options OptionsArray The options of this field.
$subpartitions PartitionDefinition[] The subpartitions of this partition.
$type string The type of this partition (what follows the VALUES keyword).

Méthodes publiques

Méthode Description
build ( PartitionDefinition | PartitionDefinition[] $component, array $options = [] ) : string
parse ( Parser $parser, TokensList $list, array $options = [] ) : PartitionDefinition

Method Details

build() public static méthode

public static build ( PartitionDefinition | PartitionDefinition[] $component, array $options = [] ) : string
$component PartitionDefinition | PartitionDefinition[] The component to be built.
$options array Parameters for building.
Résultat string

parse() public static méthode

public static parse ( Parser $parser, TokensList $list, array $options = [] ) : PartitionDefinition
$parser SqlParser\Parser The parser that serves as context.
$list SqlParser\TokensList The list of tokens that are being parsed.
$options array Parameters for parsing.
Résultat PartitionDefinition

Property Details

$OPTIONS public_oe static_oe property

All field options.
public static array $OPTIONS
Résultat array

$expr public_oe property

The expression used to defined this partition.
public Expression,SqlParser\Components|string $expr
Résultat Expression | string

$isSubpartition public_oe property

Whether this entry is a subpartition or a partition.
public bool $isSubpartition
Résultat boolean

$name public_oe property

The name of this partition.
public string $name
Résultat string

$options public_oe property

The options of this field.
public OptionsArray,SqlParser\Components $options
Résultat OptionsArray

$subpartitions public_oe property

The subpartitions of this partition.
public PartitionDefinition[],SqlParser\Components $subpartitions
Résultat PartitionDefinition[]

$type public_oe property

The type of this partition (what follows the VALUES keyword).
public string $type
Résultat string