PHP Class SqlParser\Components\PartitionDefinition

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

Public Properties

Property 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).

Public Methods

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

Method Details

build() public static method

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

parse() public static method

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.
return PartitionDefinition

Property Details

$OPTIONS public_oe static_oe property

All field options.
public static array $OPTIONS
return array

$expr public_oe property

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

$isSubpartition public_oe property

Whether this entry is a subpartition or a partition.
public bool $isSubpartition
return boolean

$name public_oe property

The name of this partition.
public string $name
return string

$options public_oe property

The options of this field.
public OptionsArray,SqlParser\Components $options
return OptionsArray

$subpartitions public_oe property

The subpartitions of this partition.
public PartitionDefinition[],SqlParser\Components $subpartitions
return PartitionDefinition[]

$type public_oe property

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