Skip to content

SQLExpressionBuilder🔗

Constructor🔗

new SQLExpressionBuilder()

Methods🔗

build🔗

Builds the object.

build()

from🔗

FROM part of the SQL expression

@param \Grafana\Foundation\Cog\Builder<\Grafana\Foundation\Cloudwatch\QueryEditorPropertyExpression>|\Grafana\Foundation\Cog\Builder<\Grafana\Foundation\Cloudwatch\QueryEditorFunctionExpression> $from

from($from)

groupBy🔗

GROUP BY part of the SQL expression

@param \Grafana\Foundation\Cog\Builder<\Grafana\Foundation\Cloudwatch\QueryEditorArrayExpression> $groupBy

groupBy(\Grafana\Foundation\Cog\Builder $groupBy)

limit🔗

LIMIT part of the SQL expression

limit(int $limit)

orderBy🔗

ORDER BY part of the SQL expression

@param \Grafana\Foundation\Cog\Builder<\Grafana\Foundation\Cloudwatch\QueryEditorFunctionExpression> $orderBy

orderBy(\Grafana\Foundation\Cog\Builder $orderBy)

orderByDirection🔗

The sort order of the SQL expression, ASC or DESC

orderByDirection(string $orderByDirection)

select🔗

SELECT part of the SQL expression

@param \Grafana\Foundation\Cog\Builder<\Grafana\Foundation\Cloudwatch\QueryEditorFunctionExpression> $select

select(\Grafana\Foundation\Cog\Builder $select)

where🔗

WHERE part of the SQL expression

@param \Grafana\Foundation\Cog\Builder<\Grafana\Foundation\Cloudwatch\QueryEditorArrayExpression> $where

where(\Grafana\Foundation\Cog\Builder $where)

See also🔗