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 | Type | Description |
---|---|---|
$query | Illuminate\Database\Query\Builder |
Illuminate\Database\Query\Builder
|
$columns | array |
array
|
Returns
string | null
protected compileConcat (array $parts, string $as) : string
Compiles a single CONCAT value.
Parameters
Property | Type | Description |
---|---|---|
$parts | array |
array
The concatenation parts. |
$as | string |
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 | Type | Description |
---|---|---|
$query | Illuminate\Database\Query\Builder |
Illuminate\Database\Query\Builder
|
Returns
string
Used by
Class | Description |
---|---|
MySqlGrammar
|
|
PostgresGrammar
|
|
SQLiteGrammar
|
|
SqlServerGrammar
|
← Previous page
Winter\Storm\Database\Pivot
Next page →
Winter\Storm\Database\Query\Grammars\MySqlGrammar
Copyright © 2024 Winter CMS