PHP 클래스 SqlParser\Components\PartitionDefinition

Used for parsing CREATE TABLE statement.
저자: Dan Ungureanu ([email protected])
상속: extends SqlParser\Component
파일 보기 프로젝트 열기: phpmyadmin/sql-parser 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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).

공개 메소드들

메소드 설명
build ( PartitionDefinition | PartitionDefinition[] $component, array $options = [] ) : string
parse ( Parser $parser, TokensList $list, array $options = [] ) : PartitionDefinition

메소드 상세

build() 공개 정적인 메소드

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

parse() 공개 정적인 메소드

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.
리턴 PartitionDefinition

프로퍼티 상세

$OPTIONS 공개적으로 정적으로 프로퍼티

All field options.
public static array $OPTIONS
리턴 array

$expr 공개적으로 프로퍼티

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

$isSubpartition 공개적으로 프로퍼티

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

$name 공개적으로 프로퍼티

The name of this partition.
public string $name
리턴 string

$options 공개적으로 프로퍼티

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

$subpartitions 공개적으로 프로퍼티

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

$type 공개적으로 프로퍼티

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