class IntoKeyword extends Component (View source)

INTO keyword parser.

Properties

static array $FIELDS_OPTIONS FIELDS/COLUMNS Options for SELECT...INTO statements.
static array $LINES_OPTIONS LINES Options for SELECT...INTO statements.
string $type Type of target (OUTFILE or SYMBOL).
string|Expression $dest The destination, which can be a table or a file.
array $columns The name of the columns.
Expression[] $values The values to be selected into (SELECT .. INTO @var1).
OptionsArray $fields_options Options for FIELDS/COLUMNS keyword.
bool $fields_keyword Whether to use FIELDS or COLUMNS while building.
OptionsArray $lines_options Options for OPTIONS keyword.

Methods

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

No description

static mixed
build(mixed $component, array $options = [])

No description

string
__toString()

Builds the string representation of a component of this type.

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

No description

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

No description

Details

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

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

static mixed build(mixed $component, array $options = [])

Parameters

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

Return Value

mixed

string __toString()

Builds the string representation of a component of this type.

Return Value

string

See also

static::build

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

Parameters

string $type type of destination (may be OUTFILE)
string|Expression $dest actual destination
array $columns column list of destination
array $values selected fields
OptionsArray $fields_options options for FIELDS/COLUMNS keyword
bool $fields_keyword options for OPTIONS keyword

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

Parameters

Parser $parser The parser
TokensList $list A token list
string $keyword They keyword

Return Value

void