DQueryAttributes

Alias This

attributes

Members

Aliases

attributes
alias attributes = Attributes

Returns a tuple of attributes in the query.

type
alias type = QueryType

Returns the type being queried.

Manifest constants

empty
enum empty;

Returns true if the list of attributes is empty.

length
enum length;

Returns the number of attributes in the query.

unique
enum unique;

Returns a transformed list of attributes with all duplicateds removed.

Properties

anyOf
auto anyOf [@property getter]

Returns a subset of the list of attributes which match at least one of the given types.

first
auto first [@property getter]

Returns the first attribute in the query.

firstOr
auto firstOr [@property getter]

Returns the first attribute in the query, or a fallback if empty.

firstOrElse
auto firstOrElse [@property getter]

Returns the first attribute in the query, or a fallback if empty.

firstOrThrow
Throwable firstOrThrow [@property setter]

Returns the first attribute in the query, or throw if empty.

hasAllOf
auto hasAllOf [@property getter]

Returns true if all of the given attributes are present.

hasAnyOf
auto hasAnyOf [@property getter]

Returns true if any of the given attributes are present.

hasNoneOf
auto hasNoneOf [@property getter]

Returns true if none of the given attributes are present.

noneOf
auto noneOf [@property getter]

Property that returns a subset of the list of attributes which match none of the given types.

opCall
auto opCall [@property getter]

Returns an uninitialized value of the query's type.

parent
auto parent [@property getter]

Returns a query for the type that produced this attribute query.

Templates

ensure
template ensure(string Attr : "length")

Provides query validation functions tied to length.

Meta