final class IntoKeyword implements Component (View source)

INTO keyword parser.

Constants

private STATEMENT_FIELDS_OPTIONS

FIELDS/COLUMNS Options for SELECT...INTO statements.

private STATEMENT_LINES_OPTIONS

LINES Options for SELECT...INTO statements.

Properties

string|null $type

Type of target (OUTFILE or SYMBOL).

Expression|null $dest

The destination, which can be a table or a file.

string[]|null $columns

The name of the columns.

Expression[]|null $values

The values to be selected into (SELECT .. INTO @var1).

OptionsArray|null $fieldsOptions

Options for FIELDS/COLUMNS keyword.

bool|null $fieldsKeyword

Whether to use FIELDS or COLUMNS while building.

OptionsArray|null $linesOptions

Options for OPTIONS keyword.

Methods

__construct(string|null $type = null, Expression|null $dest = null, array|null $columns = null, array|null $values = null, OptionsArray|null $fieldsOptions = null, bool|null $fieldsKeyword = null)

No description

void
parseFileOptions(Parser $parser, TokensList $list, string $keyword = 'FIELDS')

No description

string
build()

Builds the string representation of a component of this type.

string
__toString()

No description

Details

__construct(string|null $type = null, Expression|null $dest = null, array|null $columns = null, array|null $values = null, OptionsArray|null $fieldsOptions = null, bool|null $fieldsKeyword = null)

No description

Parameters

string|null $type

type of destination (may be OUTFILE)

Expression|null $dest

actual destination

array|null $columns

column list of destination

array|null $values

selected fields

OptionsArray|null $fieldsOptions

options for FIELDS/COLUMNS keyword

bool|null $fieldsKeyword

options for OPTIONS keyword

void parseFileOptions(Parser $parser, TokensList $list, string $keyword = 'FIELDS')

No description

Parameters

Parser $parser

The parser

TokensList $list

A token list

string $keyword

The keyword

Return Value

void

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