pet

package
v0.0.0-...-ed3e5d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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 field in the database.
	FieldName = "name"
	// FieldWeight holds the string denoting the weight field in the database.
	FieldWeight = "weight"
	// FieldBirthday holds the string denoting the birthday field in the database.
	FieldBirthday = "birthday"
	// FieldTagID holds the string denoting the tag_id field in the database.
	FieldTagID = "tag_id"
	// FieldHeight holds the string denoting the height field in the database.
	FieldHeight = "height"
	// EdgeCategories holds the string denoting the categories edge name in mutations.
	EdgeCategories = "categories"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeRescuer holds the string denoting the rescuer edge name in mutations.
	EdgeRescuer = "rescuer"
	// EdgeFriends holds the string denoting the friends edge name in mutations.
	EdgeFriends = "friends"
	// Table holds the table name of the pet in the database.
	Table = "pets"
	// CategoriesTable is the table that holds the categories relation/edge. The primary key declared below.
	CategoriesTable = "category_pets"
	// CategoriesInverseTable is the table name for the Category entity.
	// It exists in this package in order to avoid circular dependency with the "category" package.
	CategoriesInverseTable = "categories"
	// OwnerTable is the table that 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"
	// RescuerTable is the table that holds the rescuer relation/edge. The primary key declared below.
	RescuerTable = "user_animals_saved"
	// RescuerInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	RescuerInverseTable = "users"
	// FriendsTable is the table that holds the friends relation/edge. The primary key declared below.
	FriendsTable = "pet_friends"
)

Variables

View Source
var (
	// CategoriesPrimaryKey and CategoriesColumn2 are the table columns denoting the
	// primary key for the categories relation (M2M).
	CategoriesPrimaryKey = []string{"category_id", "pet_id"}
	// RescuerPrimaryKey and RescuerColumn2 are the table columns denoting the
	// primary key for the rescuer relation (M2M).
	RescuerPrimaryKey = []string{"user_id", "pet_id"}
	// FriendsPrimaryKey and FriendsColumn2 are the table columns denoting the
	// primary key for the friends relation (M2M).
	FriendsPrimaryKey = []string{"pet_id", "friend_id"}
)

Columns holds all SQL columns for pet fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the "pets" table and are not defined as standalone fields in the schema.

Functions

func And

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

And groups predicates with the AND operator between them.

func Birthday

func Birthday(v time.Time) predicate.Pet

Birthday applies equality check predicate on the "birthday" field. It's identical to BirthdayEQ.

func BirthdayEQ

func BirthdayEQ(v time.Time) predicate.Pet

BirthdayEQ applies the EQ predicate on the "birthday" field.

func BirthdayGT

func BirthdayGT(v time.Time) predicate.Pet

BirthdayGT applies the GT predicate on the "birthday" field.

func BirthdayGTE

func BirthdayGTE(v time.Time) predicate.Pet

BirthdayGTE applies the GTE predicate on the "birthday" field.

func BirthdayIn

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

BirthdayIn applies the In predicate on the "birthday" field.

func BirthdayIsNil

func BirthdayIsNil() predicate.Pet

BirthdayIsNil applies the IsNil predicate on the "birthday" field.

func BirthdayLT

func BirthdayLT(v time.Time) predicate.Pet

BirthdayLT applies the LT predicate on the "birthday" field.

func BirthdayLTE

func BirthdayLTE(v time.Time) predicate.Pet

BirthdayLTE applies the LTE predicate on the "birthday" field.

func BirthdayNEQ

func BirthdayNEQ(v time.Time) predicate.Pet

BirthdayNEQ applies the NEQ predicate on the "birthday" field.

func BirthdayNotIn

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

BirthdayNotIn applies the NotIn predicate on the "birthday" field.

func BirthdayNotNil

func BirthdayNotNil() predicate.Pet

BirthdayNotNil applies the NotNil predicate on the "birthday" field.

func HasCategories

func HasCategories() predicate.Pet

HasCategories applies the HasEdge predicate on the "categories" edge.

func HasCategoriesWith

func HasCategoriesWith(preds ...predicate.Category) predicate.Pet

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

func HasFriends

func HasFriends() predicate.Pet

HasFriends applies the HasEdge predicate on the "friends" edge.

func HasFriendsWith

func HasFriendsWith(preds ...predicate.Pet) predicate.Pet

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

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 HasRescuer

func HasRescuer() predicate.Pet

HasRescuer applies the HasEdge predicate on the "rescuer" edge.

func HasRescuerWith

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

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

func Height

func Height(v int) predicate.Pet

Height applies equality check predicate on the "height" field. It's identical to HeightEQ.

func HeightEQ

func HeightEQ(v int) predicate.Pet

HeightEQ applies the EQ predicate on the "height" field.

func HeightGT

func HeightGT(v int) predicate.Pet

HeightGT applies the GT predicate on the "height" field.

func HeightGTE

func HeightGTE(v int) predicate.Pet

HeightGTE applies the GTE predicate on the "height" field.

func HeightIn

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

HeightIn applies the In predicate on the "height" field.

func HeightIsNil

func HeightIsNil() predicate.Pet

HeightIsNil applies the IsNil predicate on the "height" field.

func HeightLT

func HeightLT(v int) predicate.Pet

HeightLT applies the LT predicate on the "height" field.

func HeightLTE

func HeightLTE(v int) predicate.Pet

HeightLTE applies the LTE predicate on the "height" field.

func HeightNEQ

func HeightNEQ(v int) predicate.Pet

HeightNEQ applies the NEQ predicate on the "height" field.

func HeightNotIn

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

HeightNotIn applies the NotIn predicate on the "height" field.

func HeightNotNil

func HeightNotNil() predicate.Pet

HeightNotNil applies the NotNil predicate on the "height" field.

func ID

func ID(id int) predicate.Pet

ID filters vertices based on their ID field.

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 Name

func Name(v string) predicate.Pet

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

func NameContains

func NameContains(v string) predicate.Pet

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

func NameContainsFold

func NameContainsFold(v string) predicate.Pet

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Pet

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

func NameEqualFold

func NameEqualFold(v string) predicate.Pet

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Pet

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

func NameGTE

func NameGTE(v string) predicate.Pet

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Pet

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Pet

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Pet

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

func NameLTE

func NameLTE(v string) predicate.Pet

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

func NameNEQ

func NameNEQ(v string) predicate.Pet

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

func NameNotIn

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

NameNotIn applies the NotIn predicate on the "name" 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 predicates with the OR operator between them.

func TagID

func TagID(v []byte) predicate.Pet

TagID applies equality check predicate on the "tag_id" field. It's identical to TagIDEQ.

func TagIDEQ

func TagIDEQ(v []byte) predicate.Pet

TagIDEQ applies the EQ predicate on the "tag_id" field.

func TagIDGT

func TagIDGT(v []byte) predicate.Pet

TagIDGT applies the GT predicate on the "tag_id" field.

func TagIDGTE

func TagIDGTE(v []byte) predicate.Pet

TagIDGTE applies the GTE predicate on the "tag_id" field.

func TagIDIn

func TagIDIn(vs ...[]byte) predicate.Pet

TagIDIn applies the In predicate on the "tag_id" field.

func TagIDIsNil

func TagIDIsNil() predicate.Pet

TagIDIsNil applies the IsNil predicate on the "tag_id" field.

func TagIDLT

func TagIDLT(v []byte) predicate.Pet

TagIDLT applies the LT predicate on the "tag_id" field.

func TagIDLTE

func TagIDLTE(v []byte) predicate.Pet

TagIDLTE applies the LTE predicate on the "tag_id" field.

func TagIDNEQ

func TagIDNEQ(v []byte) predicate.Pet

TagIDNEQ applies the NEQ predicate on the "tag_id" field.

func TagIDNotIn

func TagIDNotIn(vs ...[]byte) predicate.Pet

TagIDNotIn applies the NotIn predicate on the "tag_id" field.

func TagIDNotNil

func TagIDNotNil() predicate.Pet

TagIDNotNil applies the NotNil predicate on the "tag_id" field.

func ValidColumn

func ValidColumn(column string) bool

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

func Weight

func Weight(v int) predicate.Pet

Weight applies equality check predicate on the "weight" field. It's identical to WeightEQ.

func WeightEQ

func WeightEQ(v int) predicate.Pet

WeightEQ applies the EQ predicate on the "weight" field.

func WeightGT

func WeightGT(v int) predicate.Pet

WeightGT applies the GT predicate on the "weight" field.

func WeightGTE

func WeightGTE(v int) predicate.Pet

WeightGTE applies the GTE predicate on the "weight" field.

func WeightIn

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

WeightIn applies the In predicate on the "weight" field.

func WeightIsNil

func WeightIsNil() predicate.Pet

WeightIsNil applies the IsNil predicate on the "weight" field.

func WeightLT

func WeightLT(v int) predicate.Pet

WeightLT applies the LT predicate on the "weight" field.

func WeightLTE

func WeightLTE(v int) predicate.Pet

WeightLTE applies the LTE predicate on the "weight" field.

func WeightNEQ

func WeightNEQ(v int) predicate.Pet

WeightNEQ applies the NEQ predicate on the "weight" field.

func WeightNotIn

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

WeightNotIn applies the NotIn predicate on the "weight" field.

func WeightNotNil

func WeightNotNil() predicate.Pet

WeightNotNil applies the NotNil predicate on the "weight" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL