func (condition *conditionClosure) Alias(alias string) Condition {
	condition.alias = &alias
	return condition
}
Alias sets a string alias for the given condition. It can later be used in Query.Set*Params() methods
package objectbox
import (
	"errors"
	"fmt"
)
type Condition interface {
	applyTo(qb *QueryBuilder, isRoot bool) (ConditionId, error)
	Alias(alias string) Condition
	As(alias *alias) Condition
}
type ConditionId = int32
const conditionIdFakeOrder = -1
const conditionIdFakeLink = -2
type conditionClosure struct {
	apply func(qb *QueryBuilder) (ConditionId, error)
	alias *string
}
func (condition *conditionClosure) applyTo(qb *QueryBuilder, isRoot bool) (ConditionId, error) {
	cid, err := condition.apply(qb)
	if err != nil {
		return 0, err
	}
	if condition.alias != nil {
		err = qb.Alias(*condition.alias)
		if err != nil {
			return 0, err
		}
	}
	return cid, nil
}