Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the spec type in the database.
	Label = "spec"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"

	// EdgeCard holds the string denoting the card edge name in mutations.
	EdgeCard = "card"

	// CardLabel holds the string label denoting the card edge type in the database.
	CardLabel = "spec_card"
)

Variables

This section is empty.

Functions

func And

func And(predicates ...predicate.Spec) predicate.Spec

    And groups predicates with the AND operator between them.

    func HasCard

    func HasCard() predicate.Spec

      HasCard applies the HasEdge predicate on the "card" edge.

      func HasCardWith

      func HasCardWith(preds ...predicate.Card) predicate.Spec

        HasCardWith applies the HasEdge predicate on the "card" edge with a given conditions (other predicates).

        func ID

        func ID(id string) predicate.Spec

          ID filters vertices based on their ID field.

          func IDEQ

          func IDEQ(id string) predicate.Spec

            IDEQ applies the EQ predicate on the ID field.

            func IDGT

            func IDGT(id string) predicate.Spec

              IDGT applies the GT predicate on the ID field.

              func IDGTE

              func IDGTE(id string) predicate.Spec

                IDGTE applies the GTE predicate on the ID field.

                func IDIn

                func IDIn(ids ...string) predicate.Spec

                  IDIn applies the In predicate on the ID field.

                  func IDLT

                  func IDLT(id string) predicate.Spec

                    IDLT applies the LT predicate on the ID field.

                    func IDLTE

                    func IDLTE(id string) predicate.Spec

                      IDLTE applies the LTE predicate on the ID field.

                      func IDNEQ

                      func IDNEQ(id string) predicate.Spec

                        IDNEQ applies the NEQ predicate on the ID field.

                        func IDNotIn

                        func IDNotIn(ids ...string) predicate.Spec

                          IDNotIn applies the NotIn predicate on the ID field.

                          func Not

                            Not applies the not operator on the given predicate.

                            func Or

                            func Or(predicates ...predicate.Spec) predicate.Spec

                              Or groups predicates with the OR operator between them.

                              Types

                              This section is empty.

                              Source Files