Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.VariableReference) predicate.VariableReference
- func CreatedAt(v time.Time) predicate.VariableReference
- func CreatedAtEQ(v time.Time) predicate.VariableReference
- func CreatedAtGT(v time.Time) predicate.VariableReference
- func CreatedAtGTE(v time.Time) predicate.VariableReference
- func CreatedAtIn(vs ...time.Time) predicate.VariableReference
- func CreatedAtLT(v time.Time) predicate.VariableReference
- func CreatedAtLTE(v time.Time) predicate.VariableReference
- func CreatedAtNEQ(v time.Time) predicate.VariableReference
- func CreatedAtNotIn(vs ...time.Time) predicate.VariableReference
- func Error(v string) predicate.VariableReference
- func ErrorContains(v string) predicate.VariableReference
- func ErrorContainsFold(v string) predicate.VariableReference
- func ErrorEQ(v string) predicate.VariableReference
- func ErrorEqualFold(v string) predicate.VariableReference
- func ErrorGT(v string) predicate.VariableReference
- func ErrorGTE(v string) predicate.VariableReference
- func ErrorHasPrefix(v string) predicate.VariableReference
- func ErrorHasSuffix(v string) predicate.VariableReference
- func ErrorIn(vs ...string) predicate.VariableReference
- func ErrorIsNil() predicate.VariableReference
- func ErrorLT(v string) predicate.VariableReference
- func ErrorLTE(v string) predicate.VariableReference
- func ErrorNEQ(v string) predicate.VariableReference
- func ErrorNotIn(vs ...string) predicate.VariableReference
- func ErrorNotNil() predicate.VariableReference
- func HasService() predicate.VariableReference
- func HasServiceWith(preds ...predicate.Service) predicate.VariableReference
- func ID(id uuid.UUID) predicate.VariableReference
- func IDEQ(id uuid.UUID) predicate.VariableReference
- func IDGT(id uuid.UUID) predicate.VariableReference
- func IDGTE(id uuid.UUID) predicate.VariableReference
- func IDIn(ids ...uuid.UUID) predicate.VariableReference
- func IDLT(id uuid.UUID) predicate.VariableReference
- func IDLTE(id uuid.UUID) predicate.VariableReference
- func IDNEQ(id uuid.UUID) predicate.VariableReference
- func IDNotIn(ids ...uuid.UUID) predicate.VariableReference
- func Not(p predicate.VariableReference) predicate.VariableReference
- func Or(predicates ...predicate.VariableReference) predicate.VariableReference
- func TargetName(v string) predicate.VariableReference
- func TargetNameContains(v string) predicate.VariableReference
- func TargetNameContainsFold(v string) predicate.VariableReference
- func TargetNameEQ(v string) predicate.VariableReference
- func TargetNameEqualFold(v string) predicate.VariableReference
- func TargetNameGT(v string) predicate.VariableReference
- func TargetNameGTE(v string) predicate.VariableReference
- func TargetNameHasPrefix(v string) predicate.VariableReference
- func TargetNameHasSuffix(v string) predicate.VariableReference
- func TargetNameIn(vs ...string) predicate.VariableReference
- func TargetNameLT(v string) predicate.VariableReference
- func TargetNameLTE(v string) predicate.VariableReference
- func TargetNameNEQ(v string) predicate.VariableReference
- func TargetNameNotIn(vs ...string) predicate.VariableReference
- func TargetServiceID(v uuid.UUID) predicate.VariableReference
- func TargetServiceIDEQ(v uuid.UUID) predicate.VariableReference
- func TargetServiceIDIn(vs ...uuid.UUID) predicate.VariableReference
- func TargetServiceIDNEQ(v uuid.UUID) predicate.VariableReference
- func TargetServiceIDNotIn(vs ...uuid.UUID) predicate.VariableReference
- func UpdatedAt(v time.Time) predicate.VariableReference
- func UpdatedAtEQ(v time.Time) predicate.VariableReference
- func UpdatedAtGT(v time.Time) predicate.VariableReference
- func UpdatedAtGTE(v time.Time) predicate.VariableReference
- func UpdatedAtIn(vs ...time.Time) predicate.VariableReference
- func UpdatedAtLT(v time.Time) predicate.VariableReference
- func UpdatedAtLTE(v time.Time) predicate.VariableReference
- func UpdatedAtNEQ(v time.Time) predicate.VariableReference
- func UpdatedAtNotIn(vs ...time.Time) predicate.VariableReference
- func ValidColumn(column string) bool
- func ValueTemplate(v string) predicate.VariableReference
- func ValueTemplateContains(v string) predicate.VariableReference
- func ValueTemplateContainsFold(v string) predicate.VariableReference
- func ValueTemplateEQ(v string) predicate.VariableReference
- func ValueTemplateEqualFold(v string) predicate.VariableReference
- func ValueTemplateGT(v string) predicate.VariableReference
- func ValueTemplateGTE(v string) predicate.VariableReference
- func ValueTemplateHasPrefix(v string) predicate.VariableReference
- func ValueTemplateHasSuffix(v string) predicate.VariableReference
- func ValueTemplateIn(vs ...string) predicate.VariableReference
- func ValueTemplateLT(v string) predicate.VariableReference
- func ValueTemplateLTE(v string) predicate.VariableReference
- func ValueTemplateNEQ(v string) predicate.VariableReference
- func ValueTemplateNotIn(vs ...string) predicate.VariableReference
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByError(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByServiceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTargetName(opts ...sql.OrderTermOption) OrderOption
- func ByTargetServiceID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByValueTemplate(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the variablereference type in the database. Label = "variable_reference" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldTargetServiceID holds the string denoting the target_service_id field in the database. FieldTargetServiceID = "target_service_id" // FieldTargetName holds the string denoting the target_name field in the database. FieldTargetName = "target_name" // FieldSources holds the string denoting the sources field in the database. FieldSources = "sources" // FieldValueTemplate holds the string denoting the value_template field in the database. FieldValueTemplate = "value_template" // FieldError holds the string denoting the error field in the database. FieldError = "error" // EdgeService holds the string denoting the service edge name in mutations. EdgeService = "service" // Table holds the table name of the variablereference in the database. Table = "variable_references" // ServiceTable is the table that holds the service relation/edge. ServiceTable = "variable_references" // ServiceInverseTable is the table name for the Service entity. // It exists in this package in order to avoid circular dependency with the "service" package. ServiceInverseTable = "services" // ServiceColumn is the table column denoting the service relation/edge. ServiceColumn = "target_service_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldTargetServiceID, FieldTargetName, FieldSources, FieldValueTemplate, FieldError, }
Columns holds all SQL columns for variablereference fields.
Functions ¶
func And ¶
func And(predicates ...predicate.VariableReference) predicate.VariableReference
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.VariableReference
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.VariableReference
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.VariableReference
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.VariableReference
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.VariableReference
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.VariableReference
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.VariableReference
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.VariableReference
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.VariableReference
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Error ¶
func Error(v string) predicate.VariableReference
Error applies equality check predicate on the "error" field. It's identical to ErrorEQ.
func ErrorContains ¶
func ErrorContains(v string) predicate.VariableReference
ErrorContains applies the Contains predicate on the "error" field.
func ErrorContainsFold ¶
func ErrorContainsFold(v string) predicate.VariableReference
ErrorContainsFold applies the ContainsFold predicate on the "error" field.
func ErrorEQ ¶
func ErrorEQ(v string) predicate.VariableReference
ErrorEQ applies the EQ predicate on the "error" field.
func ErrorEqualFold ¶
func ErrorEqualFold(v string) predicate.VariableReference
ErrorEqualFold applies the EqualFold predicate on the "error" field.
func ErrorGT ¶
func ErrorGT(v string) predicate.VariableReference
ErrorGT applies the GT predicate on the "error" field.
func ErrorGTE ¶
func ErrorGTE(v string) predicate.VariableReference
ErrorGTE applies the GTE predicate on the "error" field.
func ErrorHasPrefix ¶
func ErrorHasPrefix(v string) predicate.VariableReference
ErrorHasPrefix applies the HasPrefix predicate on the "error" field.
func ErrorHasSuffix ¶
func ErrorHasSuffix(v string) predicate.VariableReference
ErrorHasSuffix applies the HasSuffix predicate on the "error" field.
func ErrorIn ¶
func ErrorIn(vs ...string) predicate.VariableReference
ErrorIn applies the In predicate on the "error" field.
func ErrorIsNil ¶
func ErrorIsNil() predicate.VariableReference
ErrorIsNil applies the IsNil predicate on the "error" field.
func ErrorLT ¶
func ErrorLT(v string) predicate.VariableReference
ErrorLT applies the LT predicate on the "error" field.
func ErrorLTE ¶
func ErrorLTE(v string) predicate.VariableReference
ErrorLTE applies the LTE predicate on the "error" field.
func ErrorNEQ ¶
func ErrorNEQ(v string) predicate.VariableReference
ErrorNEQ applies the NEQ predicate on the "error" field.
func ErrorNotIn ¶
func ErrorNotIn(vs ...string) predicate.VariableReference
ErrorNotIn applies the NotIn predicate on the "error" field.
func ErrorNotNil ¶
func ErrorNotNil() predicate.VariableReference
ErrorNotNil applies the NotNil predicate on the "error" field.
func HasService ¶
func HasService() predicate.VariableReference
HasService applies the HasEdge predicate on the "service" edge.
func HasServiceWith ¶
func HasServiceWith(preds ...predicate.Service) predicate.VariableReference
HasServiceWith applies the HasEdge predicate on the "service" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.VariableReference
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.VariableReference
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.VariableReference
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.VariableReference
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.VariableReference
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.VariableReference
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.VariableReference
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.VariableReference
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.VariableReference
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.VariableReference) predicate.VariableReference
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.VariableReference) predicate.VariableReference
Or groups predicates with the OR operator between them.
func TargetName ¶
func TargetName(v string) predicate.VariableReference
TargetName applies equality check predicate on the "target_name" field. It's identical to TargetNameEQ.
func TargetNameContains ¶
func TargetNameContains(v string) predicate.VariableReference
TargetNameContains applies the Contains predicate on the "target_name" field.
func TargetNameContainsFold ¶
func TargetNameContainsFold(v string) predicate.VariableReference
TargetNameContainsFold applies the ContainsFold predicate on the "target_name" field.
func TargetNameEQ ¶
func TargetNameEQ(v string) predicate.VariableReference
TargetNameEQ applies the EQ predicate on the "target_name" field.
func TargetNameEqualFold ¶
func TargetNameEqualFold(v string) predicate.VariableReference
TargetNameEqualFold applies the EqualFold predicate on the "target_name" field.
func TargetNameGT ¶
func TargetNameGT(v string) predicate.VariableReference
TargetNameGT applies the GT predicate on the "target_name" field.
func TargetNameGTE ¶
func TargetNameGTE(v string) predicate.VariableReference
TargetNameGTE applies the GTE predicate on the "target_name" field.
func TargetNameHasPrefix ¶
func TargetNameHasPrefix(v string) predicate.VariableReference
TargetNameHasPrefix applies the HasPrefix predicate on the "target_name" field.
func TargetNameHasSuffix ¶
func TargetNameHasSuffix(v string) predicate.VariableReference
TargetNameHasSuffix applies the HasSuffix predicate on the "target_name" field.
func TargetNameIn ¶
func TargetNameIn(vs ...string) predicate.VariableReference
TargetNameIn applies the In predicate on the "target_name" field.
func TargetNameLT ¶
func TargetNameLT(v string) predicate.VariableReference
TargetNameLT applies the LT predicate on the "target_name" field.
func TargetNameLTE ¶
func TargetNameLTE(v string) predicate.VariableReference
TargetNameLTE applies the LTE predicate on the "target_name" field.
func TargetNameNEQ ¶
func TargetNameNEQ(v string) predicate.VariableReference
TargetNameNEQ applies the NEQ predicate on the "target_name" field.
func TargetNameNotIn ¶
func TargetNameNotIn(vs ...string) predicate.VariableReference
TargetNameNotIn applies the NotIn predicate on the "target_name" field.
func TargetServiceID ¶
func TargetServiceID(v uuid.UUID) predicate.VariableReference
TargetServiceID applies equality check predicate on the "target_service_id" field. It's identical to TargetServiceIDEQ.
func TargetServiceIDEQ ¶
func TargetServiceIDEQ(v uuid.UUID) predicate.VariableReference
TargetServiceIDEQ applies the EQ predicate on the "target_service_id" field.
func TargetServiceIDIn ¶
func TargetServiceIDIn(vs ...uuid.UUID) predicate.VariableReference
TargetServiceIDIn applies the In predicate on the "target_service_id" field.
func TargetServiceIDNEQ ¶
func TargetServiceIDNEQ(v uuid.UUID) predicate.VariableReference
TargetServiceIDNEQ applies the NEQ predicate on the "target_service_id" field.
func TargetServiceIDNotIn ¶
func TargetServiceIDNotIn(vs ...uuid.UUID) predicate.VariableReference
TargetServiceIDNotIn applies the NotIn predicate on the "target_service_id" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.VariableReference
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.VariableReference
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.VariableReference
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.VariableReference
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.VariableReference
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.VariableReference
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.VariableReference
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.VariableReference
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.VariableReference
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func ValueTemplate ¶
func ValueTemplate(v string) predicate.VariableReference
ValueTemplate applies equality check predicate on the "value_template" field. It's identical to ValueTemplateEQ.
func ValueTemplateContains ¶
func ValueTemplateContains(v string) predicate.VariableReference
ValueTemplateContains applies the Contains predicate on the "value_template" field.
func ValueTemplateContainsFold ¶
func ValueTemplateContainsFold(v string) predicate.VariableReference
ValueTemplateContainsFold applies the ContainsFold predicate on the "value_template" field.
func ValueTemplateEQ ¶
func ValueTemplateEQ(v string) predicate.VariableReference
ValueTemplateEQ applies the EQ predicate on the "value_template" field.
func ValueTemplateEqualFold ¶
func ValueTemplateEqualFold(v string) predicate.VariableReference
ValueTemplateEqualFold applies the EqualFold predicate on the "value_template" field.
func ValueTemplateGT ¶
func ValueTemplateGT(v string) predicate.VariableReference
ValueTemplateGT applies the GT predicate on the "value_template" field.
func ValueTemplateGTE ¶
func ValueTemplateGTE(v string) predicate.VariableReference
ValueTemplateGTE applies the GTE predicate on the "value_template" field.
func ValueTemplateHasPrefix ¶
func ValueTemplateHasPrefix(v string) predicate.VariableReference
ValueTemplateHasPrefix applies the HasPrefix predicate on the "value_template" field.
func ValueTemplateHasSuffix ¶
func ValueTemplateHasSuffix(v string) predicate.VariableReference
ValueTemplateHasSuffix applies the HasSuffix predicate on the "value_template" field.
func ValueTemplateIn ¶
func ValueTemplateIn(vs ...string) predicate.VariableReference
ValueTemplateIn applies the In predicate on the "value_template" field.
func ValueTemplateLT ¶
func ValueTemplateLT(v string) predicate.VariableReference
ValueTemplateLT applies the LT predicate on the "value_template" field.
func ValueTemplateLTE ¶
func ValueTemplateLTE(v string) predicate.VariableReference
ValueTemplateLTE applies the LTE predicate on the "value_template" field.
func ValueTemplateNEQ ¶
func ValueTemplateNEQ(v string) predicate.VariableReference
ValueTemplateNEQ applies the NEQ predicate on the "value_template" field.
func ValueTemplateNotIn ¶
func ValueTemplateNotIn(vs ...string) predicate.VariableReference
ValueTemplateNotIn applies the NotIn predicate on the "value_template" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the VariableReference queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByError ¶
func ByError(opts ...sql.OrderTermOption) OrderOption
ByError orders the results by the error field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByServiceField ¶
func ByServiceField(field string, opts ...sql.OrderTermOption) OrderOption
ByServiceField orders the results by service field.
func ByTargetName ¶
func ByTargetName(opts ...sql.OrderTermOption) OrderOption
ByTargetName orders the results by the target_name field.
func ByTargetServiceID ¶
func ByTargetServiceID(opts ...sql.OrderTermOption) OrderOption
ByTargetServiceID orders the results by the target_service_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByValueTemplate ¶
func ByValueTemplate(opts ...sql.OrderTermOption) OrderOption
ByValueTemplate orders the results by the value_template field.