final class PartitionDefinition implements Component (View source)

Parses the create definition of a partition.

Used for parsing CREATE TABLE statement.

Properties

static array<string,int|array<int,int|string>> $partitionOptions

All field options.

bool|null $isSubpartition

Whether this entry is a subpartition or a partition.

string|null $name

The name of this partition.

string|null $type

The type of this partition (what follows the VALUES keyword).

Expression|string|null $expr

The expression used to defined this partition.

PartitionDefinition[]|null $subpartitions

The subpartitions of this partition.

OptionsArray|null $options

The options of this field.

Methods

string
build()

Builds the string representation of a component of this type.

string
__toString()

No description

Details

string build()

Builds the string representation of a component of this type.

In other words, this function represents the inverse function of {\PhpMyAdmin\SqlParser\Component::parse()}.

Return Value

string

string __toString()

No description

Return Value

string