ent: github.com/facebookincubator/ent/entc/integration/ent/spec Index | Files

package spec

import "github.com/facebookincubator/ent/entc/integration/ent/spec"

Index

Package Files

spec.go where.go

Constants

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"

    // Table holds the table name of the spec in the database.
    Table = "specs"
    // CardTable is the table the holds the card relation/edge. The primary key declared below.
    CardTable = "spec_card"
    // CardInverseTable is the table name for the Card entity.
    // It exists in this package in order to avoid circular dependency with the "card" package.
    CardInverseTable = "cards"
)

Variables

var (
    // CardPrimaryKey and CardColumn2 are the table columns denoting the
    // primary key for the card relation (M2M).
    CardPrimaryKey = []string{"spec_id", "card_id"}
)
var Columns = []string{
    FieldID,
}

Columns holds all SQL columns for spec fields.

func And Uses

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

And groups list of predicates with the AND operator between them.

func HasCard Uses

func HasCard() predicate.Spec

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

func HasCardWith Uses

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

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

func ID Uses

func ID(id int) predicate.Spec

ID filters vertices based on their identifier.

func IDEQ Uses

func IDEQ(id int) predicate.Spec

IDEQ applies the EQ predicate on the ID field.

func IDGT Uses

func IDGT(id int) predicate.Spec

IDGT applies the GT predicate on the ID field.

func IDGTE Uses

func IDGTE(id int) predicate.Spec

IDGTE applies the GTE predicate on the ID field.

func IDIn Uses

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

IDIn applies the In predicate on the ID field.

func IDLT Uses

func IDLT(id int) predicate.Spec

IDLT applies the LT predicate on the ID field.

func IDLTE Uses

func IDLTE(id int) predicate.Spec

IDLTE applies the LTE predicate on the ID field.

func IDNEQ Uses

func IDNEQ(id int) predicate.Spec

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn Uses

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

IDNotIn applies the NotIn predicate on the ID field.

func Not Uses

func Not(p predicate.Spec) predicate.Spec

Not applies the not operator on the given predicate.

func Or Uses

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

Or groups list of predicates with the OR operator between them.

Package spec imports 3 packages (graph) and is imported by 1 packages. Updated 2020-07-09. Refresh now. Tools for package owners.