class PartitionDefinition extends Component

Parses the create definition of a partition.

Used for parsing CREATE TABLE statement.

Properties

static array $OPTIONS All field options.
bool $isSubpartition Whether this entry is a subpartition or a partition.
string $name The name of this partition.
string $type The type of this partition (what follows the VALUES keyword).
Expression|string $expr The expression used to defined this partition.
PartitionDefinition[] $subpartitions The subpartitions of this partition.
OptionsArray $options The options of this field.

Methods

static mixed
parse(Parser $parser, TokensList $list, array $options = array())

No description

static string
build(mixed $component, array $options = array())

No description

string
__toString()

Builds the string representation of a component of this type.

from Component

Details

at line 93
static mixed parse(Parser $parser, TokensList $list, array $options = array())

Parameters

Parser $parser the parser that serves as context
TokensList $list the list of tokens that are being parsed
array $options parameters for parsing

Return Value

mixed

at line 202
static string build(mixed $component, array $options = array())

Parameters

mixed $component the component to be built
array $options parameters for building

Return Value

string

in Component at line 73
string __toString()

Builds the string representation of a component of this type.

Return Value

string

See also