SelectConcatenations

 trait Winter\Storm\Database\Query\Grammars\Concerns\SelectConcatenations

Methods

protected compileColumns (Illuminate\Database\Query\Builder $query, array $columns) : string | null

Compile the "select *" portion of the query.

This particular method will call the original compileColumns() method provided by the grammar, then append the concatenated columns to the query.

Parameters
Property Description
$query
Illuminate\Database\Query\Builder
$columns
array
Returns
string | null

protected compileConcat (array $parts, string $as) : string

Compiles a single CONCAT value.

Parameters
Property Description
$parts
array

The concatenation parts.

$as
string

The alias to return the entire concatenation as.

Returns
string

protected compileConcats (Illuminate\Database\Query\Builder $query) : string

Compiles the concatenated columns and adds them to the "select" portion of the query.

Parameters
Property Description
$query
Illuminate\Database\Query\Builder
Returns
string

Used by

Copyright © 2024 Winter CMS