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

package pet

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

Index

Package Files

pet.go where.go

Constants

const (
    // Label holds the string label denoting the pet type in the database.
    Label = "pet"
    // FieldID holds the string denoting the id field in the database.
    FieldID = "id"
    // FieldName holds the string denoting the name vertex property in the database.
    FieldName = "name"

    // Table holds the table name of the pet in the database.
    Table = "pets"
    // TeamTable is the table the holds the team relation/edge.
    TeamTable = "pets"
    // TeamInverseTable is the table name for the User entity.
    // It exists in this package in order to avoid circular dependency with the "user" package.
    TeamInverseTable = "users"
    // TeamColumn is the table column denoting the team relation/edge.
    TeamColumn = "team_id"
    // OwnerTable is the table the holds the owner relation/edge.
    OwnerTable = "pets"
    // OwnerInverseTable is the table name for the User entity.
    // It exists in this package in order to avoid circular dependency with the "user" package.
    OwnerInverseTable = "users"
    // OwnerColumn is the table column denoting the owner relation/edge.
    OwnerColumn = "owner_id"

    // TeamInverseLabel holds the string label denoting the team inverse edge type in the database.
    TeamInverseLabel = "user_team"
    // OwnerInverseLabel holds the string label denoting the owner inverse edge type in the database.
    OwnerInverseLabel = "user_pets"
)

Variables

var Columns = []string{
    FieldID,
    FieldName,
}

Columns holds all SQL columns are pet fields.

func And Uses

func And(predicates ...predicate.Pet) predicate.Pet

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

func HasOwner Uses

func HasOwner() predicate.Pet

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith Uses

func HasOwnerWith(preds ...predicate.User) predicate.Pet

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

func HasTeam Uses

func HasTeam() predicate.Pet

HasTeam applies the HasEdge predicate on the "team" edge.

func HasTeamWith Uses

func HasTeamWith(preds ...predicate.User) predicate.Pet

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

func ID Uses

func ID(id string) predicate.Pet

ID filters vertices based on their identifier.

func IDEQ Uses

func IDEQ(id string) predicate.Pet

IDEQ applies the EQ predicate on the ID field.

func IDGT Uses

func IDGT(id string) predicate.Pet

IDGT applies the GT predicate on the ID field.

func IDGTE Uses

func IDGTE(id string) predicate.Pet

IDGTE applies the GTE predicate on the ID field.

func IDIn Uses

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

IDIn applies the In predicate on the ID field.

func IDLT Uses

func IDLT(id string) predicate.Pet

IDLT applies the LT predicate on the ID field.

func IDLTE Uses

func IDLTE(id string) predicate.Pet

IDLTE applies the LTE predicate on the ID field.

func IDNEQ Uses

func IDNEQ(id string) predicate.Pet

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn Uses

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

IDNotIn applies the NotIn predicate on the ID field.

func Name Uses

func Name(v string) predicate.Pet

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains Uses

func NameContains(v string) predicate.Pet

NameContains applies the Contains predicate on the "name" field.

func NameEQ Uses

func NameEQ(v string) predicate.Pet

NameEQ applies the EQ predicate on the "name" field.

func NameGT Uses

func NameGT(v string) predicate.Pet

NameGT applies the GT predicate on the "name" field.

func NameGTE Uses

func NameGTE(v string) predicate.Pet

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix Uses

func NameHasPrefix(v string) predicate.Pet

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix Uses

func NameHasSuffix(v string) predicate.Pet

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn Uses

func NameIn(vs ...string) predicate.Pet

NameIn applies the In predicate on the "name" field.

func NameLT Uses

func NameLT(v string) predicate.Pet

NameLT applies the LT predicate on the "name" field.

func NameLTE Uses

func NameLTE(v string) predicate.Pet

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ Uses

func NameNEQ(v string) predicate.Pet

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn Uses

func NameNotIn(vs ...string) predicate.Pet

NameNotIn applies the NotIn predicate on the "name" field.

func Not Uses

func Not(p predicate.Pet) predicate.Pet

Not applies the not operator on the given predicate.

func Or Uses

func Or(predicates ...predicate.Pet) predicate.Pet

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

Package pet imports 6 packages (graph) and is imported by 1 packages. Updated 2019-11-19. Refresh now. Tools for package owners.