Documentation

Index

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"
	// FieldAge holds the string denoting the age field in the database.
	FieldAge = "age"
	// FieldLicensedAt holds the string denoting the licensed_at field in the database.
	FieldLicensedAt = "licensed_at"

	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"

	// Table holds the table name of the pet in the database.
	Table = "pets"
	// 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 = "user_pets"
)

Variables

var Columns = []string{
	FieldID,
	FieldAge,
	FieldLicensedAt,
}

Columns holds all SQL columns for pet fields.


var ForeignKeys = []string{
	"user_pets",
}

ForeignKeys holds the SQL foreign-keys that are owned by the Pet type.


Functions

func Age

func Age(v int) predicate.Pet

Age applies equality check predicate on the "age" field. It's identical to AgeEQ.

func AgeEQ

func AgeEQ(v int) predicate.Pet

AgeEQ applies the EQ predicate on the "age" field.

func AgeGT

func AgeGT(v int) predicate.Pet

AgeGT applies the GT predicate on the "age" field.

func AgeGTE

func AgeGTE(v int) predicate.Pet

AgeGTE applies the GTE predicate on the "age" field.

func AgeIn

func AgeIn(vs ...int) predicate.Pet

AgeIn applies the In predicate on the "age" field.

func AgeLT

func AgeLT(v int) predicate.Pet

AgeLT applies the LT predicate on the "age" field.

func AgeLTE

func AgeLTE(v int) predicate.Pet

AgeLTE applies the LTE predicate on the "age" field.

func AgeNEQ

func AgeNEQ(v int) predicate.Pet

AgeNEQ applies the NEQ predicate on the "age" field.

func AgeNotIn

func AgeNotIn(vs ...int) predicate.Pet

AgeNotIn applies the NotIn predicate on the "age" field.

func And

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

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

func HasOwner

func HasOwner() predicate.Pet

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

func HasOwnerWith

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

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

func ID

func ID(id int) predicate.Pet

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Pet

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Pet

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Pet

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Pet

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Pet

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Pet

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LicensedAt

func LicensedAt(v time.Time) predicate.Pet

LicensedAt applies equality check predicate on the "licensed_at" field. It's identical to LicensedAtEQ.

func LicensedAtEQ

func LicensedAtEQ(v time.Time) predicate.Pet

LicensedAtEQ applies the EQ predicate on the "licensed_at" field.

func LicensedAtGT

func LicensedAtGT(v time.Time) predicate.Pet

LicensedAtGT applies the GT predicate on the "licensed_at" field.

func LicensedAtGTE

func LicensedAtGTE(v time.Time) predicate.Pet

LicensedAtGTE applies the GTE predicate on the "licensed_at" field.

func LicensedAtIn

func LicensedAtIn(vs ...time.Time) predicate.Pet

LicensedAtIn applies the In predicate on the "licensed_at" field.

func LicensedAtIsNil

func LicensedAtIsNil() predicate.Pet

LicensedAtIsNil applies the IsNil predicate on the "licensed_at" field.

func LicensedAtLT

func LicensedAtLT(v time.Time) predicate.Pet

LicensedAtLT applies the LT predicate on the "licensed_at" field.

func LicensedAtLTE

func LicensedAtLTE(v time.Time) predicate.Pet

LicensedAtLTE applies the LTE predicate on the "licensed_at" field.

func LicensedAtNEQ

func LicensedAtNEQ(v time.Time) predicate.Pet

LicensedAtNEQ applies the NEQ predicate on the "licensed_at" field.

func LicensedAtNotIn

func LicensedAtNotIn(vs ...time.Time) predicate.Pet

LicensedAtNotIn applies the NotIn predicate on the "licensed_at" field.

func LicensedAtNotNil

func LicensedAtNotNil() predicate.Pet

LicensedAtNotNil applies the NotNil predicate on the "licensed_at" field.

func Not

func Not(p predicate.Pet) predicate.Pet

Not applies the not operator on the given predicate.

func Or

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

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

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Source Files