pet

package
v0.0.0-...-2f96202 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 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"
	// FieldBestFriendID holds the string denoting the best_friend_id field in the database.
	FieldBestFriendID = "best_friend_id"
	// FieldOwnerID holds the string denoting the owner_id field in the database.
	FieldOwnerID = "owner_id"
	// EdgeBestFriend holds the string denoting the best_friend edge name in mutations.
	EdgeBestFriend = "best_friend"
	// 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"
	// BestFriendTable is the table that holds the best_friend relation/edge.
	BestFriendTable = "pets"
	// BestFriendColumn is the table column denoting the best_friend relation/edge.
	BestFriendColumn = "best_friend_id"
	// 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 = "owner_id"
)

Variables

View Source
var (
	// DefaultOwnerID holds the default value on creation for the "owner_id" field.
	DefaultOwnerID int
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for pet fields.

Functions

func And

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

And groups predicates with the AND operator between them.

func BestFriendID

func BestFriendID(v uuid.UUID) predicate.Pet

BestFriendID applies equality check predicate on the "best_friend_id" field. It's identical to BestFriendIDEQ.

func BestFriendIDEQ

func BestFriendIDEQ(v uuid.UUID) predicate.Pet

BestFriendIDEQ applies the EQ predicate on the "best_friend_id" field.

func BestFriendIDIn

func BestFriendIDIn(vs ...uuid.UUID) predicate.Pet

BestFriendIDIn applies the In predicate on the "best_friend_id" field.

func BestFriendIDNEQ

func BestFriendIDNEQ(v uuid.UUID) predicate.Pet

BestFriendIDNEQ applies the NEQ predicate on the "best_friend_id" field.

func BestFriendIDNotIn

func BestFriendIDNotIn(vs ...uuid.UUID) predicate.Pet

BestFriendIDNotIn applies the NotIn predicate on the "best_friend_id" field.

func HasBestFriend

func HasBestFriend() predicate.Pet

HasBestFriend applies the HasEdge predicate on the "best_friend" edge.

func HasBestFriendWith

func HasBestFriendWith(preds ...predicate.Pet) predicate.Pet

HasBestFriendWith applies the HasEdge predicate on the "best_friend" 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 ID

func ID(id uuid.UUID) predicate.Pet

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Pet

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Pet

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Pet

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Pet

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Pet

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Pet

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Pet

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Pet

IDNotIn applies the NotIn predicate on the ID 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 OwnerID

func OwnerID(v int) predicate.Pet

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDEQ

func OwnerIDEQ(v int) predicate.Pet

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDIn

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

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDNEQ

func OwnerIDNEQ(v int) predicate.Pet

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn

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

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

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.

Jump to

Keyboard shortcuts

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