Skip to content

SQLExpression🔗

Definition🔗

type SQLExpression struct {
    // SELECT part of the SQL expression
    Select *cloudwatch.QueryEditorFunctionExpression `json:"select,omitempty"`
    // FROM part of the SQL expression
    From *cloudwatch.QueryEditorPropertyExpressionOrQueryEditorFunctionExpression `json:"from,omitempty"`
    // WHERE part of the SQL expression
    Where *cloudwatch.QueryEditorArrayExpression `json:"where,omitempty"`
    // GROUP BY part of the SQL expression
    GroupBy *cloudwatch.QueryEditorArrayExpression `json:"groupBy,omitempty"`
    // ORDER BY part of the SQL expression
    OrderBy *cloudwatch.QueryEditorFunctionExpression `json:"orderBy,omitempty"`
    // The sort order of the SQL expression, `ASC` or `DESC`
    OrderByDirection *string `json:"orderByDirection,omitempty"`
    // LIMIT part of the SQL expression
    Limit *int64 `json:"limit,omitempty"`
}

Methods🔗

UnmarshalJSONStrict🔗

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode SQLExpression from JSON.

Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (sQLExpression *SQLExpression) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two SQLExpression objects.

func (sQLExpression *SQLExpression) Equals(other SQLExpression) bool

Validate🔗

Validate checks all the validation constraints that may be defined on SQLExpression fields for violations and returns them.

func (sQLExpression *SQLExpression) Validate() error

See also🔗