class IntoKeyword extends Component

INTO keyword parser.

Properties

static array $FIELDS_OPTIONS FIELDS/COLUMNS Options for `SELECT.
static array $LINES_OPTIONS LINES Options for `SELECT.
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 .
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 = 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
__construct(string $type = null, string|Expression $dest = null, array $columns = null, array $values = null, OptionsArray $fields_options = null, OptionsArray $fields_keyword = null)

Constructor.

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

No description

Details

at line 131
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 257
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

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

Constructor.

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
OptionsArray $fields_keyword options for OPTINOS keyword

at line 228
parseFileOptions(Parser $parser, TokensList $list, $keyword = 'FIELDS')

Parameters

Parser $parser
TokensList $list
$keyword