cat

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the cat type in the database.
	Label = "cat"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldDeletedTime holds the string denoting the deleted_time field in the database.
	FieldDeletedTime = "deleted_time"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldBreedID holds the string denoting the breed_id field in the database.
	FieldBreedID = "breed_id"
	// FieldSpeed holds the string denoting the speed field in the database.
	FieldSpeed = "speed"
	// FieldDateFrom holds the string denoting the date_from field in the database.
	FieldDateFrom = "date_from"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldOtherType holds the string denoting the other_type field in the database.
	FieldOtherType = "other_type"
	// EdgeKittens holds the string denoting the kittens edge name in mutations.
	EdgeKittens = "kittens"
	// EdgeBreed holds the string denoting the breed edge name in mutations.
	EdgeBreed = "breed"
	// Table holds the table name of the cat in the database.
	Table = "cats"
	// KittensTable is the table that holds the kittens relation/edge.
	KittensTable = "kittens"
	// KittensInverseTable is the table name for the Kitten entity.
	// It exists in this package in order to avoid circular dependency with the "kitten" package.
	KittensInverseTable = "kittens"
	// KittensColumn is the table column denoting the kittens relation/edge.
	KittensColumn = "mother_id"
	// BreedTable is the table that holds the breed relation/edge.
	BreedTable = "cats"
	// BreedInverseTable is the table name for the Breed entity.
	// It exists in this package in order to avoid circular dependency with the "breed" package.
	BreedInverseTable = "breeds"
	// BreedColumn is the table column denoting the breed relation/edge.
	BreedColumn = "breed_id"
)

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for cat fields.

Functions

func And

func And(predicates ...predicate.Cat) predicate.Cat

And groups predicates with the AND operator between them.

func BreedID

func BreedID(v uuid.UUID) predicate.Cat

BreedID applies equality check predicate on the "breed_id" field. It's identical to BreedIDEQ.

func BreedIDEQ

func BreedIDEQ(v uuid.UUID) predicate.Cat

BreedIDEQ applies the EQ predicate on the "breed_id" field.

func BreedIDIn

func BreedIDIn(vs ...uuid.UUID) predicate.Cat

BreedIDIn applies the In predicate on the "breed_id" field.

func BreedIDNEQ

func BreedIDNEQ(v uuid.UUID) predicate.Cat

BreedIDNEQ applies the NEQ predicate on the "breed_id" field.

func BreedIDNotIn

func BreedIDNotIn(vs ...uuid.UUID) predicate.Cat

BreedIDNotIn applies the NotIn predicate on the "breed_id" field.

func CreateTime

func CreateTime(v time.Time) predicate.Cat

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Cat

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Cat

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Cat

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Cat

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Cat

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Cat

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Cat

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Cat

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func DateFrom

func DateFrom(v time.Time) predicate.Cat

DateFrom applies equality check predicate on the "date_from" field. It's identical to DateFromEQ.

func DateFromEQ

func DateFromEQ(v time.Time) predicate.Cat

DateFromEQ applies the EQ predicate on the "date_from" field.

func DateFromGT

func DateFromGT(v time.Time) predicate.Cat

DateFromGT applies the GT predicate on the "date_from" field.

func DateFromGTE

func DateFromGTE(v time.Time) predicate.Cat

DateFromGTE applies the GTE predicate on the "date_from" field.

func DateFromIn

func DateFromIn(vs ...time.Time) predicate.Cat

DateFromIn applies the In predicate on the "date_from" field.

func DateFromLT

func DateFromLT(v time.Time) predicate.Cat

DateFromLT applies the LT predicate on the "date_from" field.

func DateFromLTE

func DateFromLTE(v time.Time) predicate.Cat

DateFromLTE applies the LTE predicate on the "date_from" field.

func DateFromNEQ

func DateFromNEQ(v time.Time) predicate.Cat

DateFromNEQ applies the NEQ predicate on the "date_from" field.

func DateFromNotIn

func DateFromNotIn(vs ...time.Time) predicate.Cat

DateFromNotIn applies the NotIn predicate on the "date_from" field.

func DeletedTime

func DeletedTime(v time.Time) predicate.Cat

DeletedTime applies equality check predicate on the "deleted_time" field. It's identical to DeletedTimeEQ.

func DeletedTimeEQ

func DeletedTimeEQ(v time.Time) predicate.Cat

DeletedTimeEQ applies the EQ predicate on the "deleted_time" field.

func DeletedTimeGT

func DeletedTimeGT(v time.Time) predicate.Cat

DeletedTimeGT applies the GT predicate on the "deleted_time" field.

func DeletedTimeGTE

func DeletedTimeGTE(v time.Time) predicate.Cat

DeletedTimeGTE applies the GTE predicate on the "deleted_time" field.

func DeletedTimeIn

func DeletedTimeIn(vs ...time.Time) predicate.Cat

DeletedTimeIn applies the In predicate on the "deleted_time" field.

func DeletedTimeIsNil

func DeletedTimeIsNil() predicate.Cat

DeletedTimeIsNil applies the IsNil predicate on the "deleted_time" field.

func DeletedTimeLT

func DeletedTimeLT(v time.Time) predicate.Cat

DeletedTimeLT applies the LT predicate on the "deleted_time" field.

func DeletedTimeLTE

func DeletedTimeLTE(v time.Time) predicate.Cat

DeletedTimeLTE applies the LTE predicate on the "deleted_time" field.

func DeletedTimeNEQ

func DeletedTimeNEQ(v time.Time) predicate.Cat

DeletedTimeNEQ applies the NEQ predicate on the "deleted_time" field.

func DeletedTimeNotIn

func DeletedTimeNotIn(vs ...time.Time) predicate.Cat

DeletedTimeNotIn applies the NotIn predicate on the "deleted_time" field.

func DeletedTimeNotNil

func DeletedTimeNotNil() predicate.Cat

DeletedTimeNotNil applies the NotNil predicate on the "deleted_time" field.

func HasBreed

func HasBreed() predicate.Cat

HasBreed applies the HasEdge predicate on the "breed" edge.

func HasBreedWith

func HasBreedWith(preds ...predicate.Breed) predicate.Cat

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

func HasKittens

func HasKittens() predicate.Cat

HasKittens applies the HasEdge predicate on the "kittens" edge.

func HasKittensWith

func HasKittensWith(preds ...predicate.Kitten) predicate.Cat

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

func ID

func ID(id uuid.UUID) predicate.Cat

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Cat

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Cat

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Cat

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Cat

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Cat

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Cat

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Cat

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

func NameContains

func NameContains(v string) predicate.Cat

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

func NameContainsFold

func NameContainsFold(v string) predicate.Cat

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

func NameEQ

func NameEQ(v string) predicate.Cat

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

func NameEqualFold

func NameEqualFold(v string) predicate.Cat

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

func NameGT

func NameGT(v string) predicate.Cat

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

func NameGTE

func NameGTE(v string) predicate.Cat

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Cat

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Cat

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Cat

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

func NameLTE

func NameLTE(v string) predicate.Cat

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

func NameNEQ

func NameNEQ(v string) predicate.Cat

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

func NameNotIn

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

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

func Not

func Not(p predicate.Cat) predicate.Cat

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Cat) predicate.Cat

Or groups predicates with the OR operator between them.

func OtherTypeEQ

func OtherTypeEQ(v OtherType) predicate.Cat

OtherTypeEQ applies the EQ predicate on the "other_type" field.

func OtherTypeIn

func OtherTypeIn(vs ...OtherType) predicate.Cat

OtherTypeIn applies the In predicate on the "other_type" field.

func OtherTypeNEQ

func OtherTypeNEQ(v OtherType) predicate.Cat

OtherTypeNEQ applies the NEQ predicate on the "other_type" field.

func OtherTypeNotIn

func OtherTypeNotIn(vs ...OtherType) predicate.Cat

OtherTypeNotIn applies the NotIn predicate on the "other_type" field.

func OtherTypeValidator

func OtherTypeValidator(ot OtherType) error

OtherTypeValidator is a validator for the "other_type" field enum values. It is called by the builders before save.

func Speed

func Speed(v int64) predicate.Cat

Speed applies equality check predicate on the "speed" field. It's identical to SpeedEQ.

func SpeedEQ

func SpeedEQ(v int64) predicate.Cat

SpeedEQ applies the EQ predicate on the "speed" field.

func SpeedGT

func SpeedGT(v int64) predicate.Cat

SpeedGT applies the GT predicate on the "speed" field.

func SpeedGTE

func SpeedGTE(v int64) predicate.Cat

SpeedGTE applies the GTE predicate on the "speed" field.

func SpeedIn

func SpeedIn(vs ...int64) predicate.Cat

SpeedIn applies the In predicate on the "speed" field.

func SpeedLT

func SpeedLT(v int64) predicate.Cat

SpeedLT applies the LT predicate on the "speed" field.

func SpeedLTE

func SpeedLTE(v int64) predicate.Cat

SpeedLTE applies the LTE predicate on the "speed" field.

func SpeedNEQ

func SpeedNEQ(v int64) predicate.Cat

SpeedNEQ applies the NEQ predicate on the "speed" field.

func SpeedNotIn

func SpeedNotIn(vs ...int64) predicate.Cat

SpeedNotIn applies the NotIn predicate on the "speed" field.

func TypeEQ

func TypeEQ(v Type) predicate.Cat

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.Cat

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.Cat

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.Cat

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func UpdateTime

func UpdateTime(v time.Time) predicate.Cat

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Cat

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Cat

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Cat

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Cat

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Cat

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Cat

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Cat

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Cat

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Cat queries.

func ByBreedField

func ByBreedField(field string, opts ...sql.OrderTermOption) OrderOption

ByBreedField orders the results by breed field.

func ByBreedID

func ByBreedID(opts ...sql.OrderTermOption) OrderOption

ByBreedID orders the results by the breed_id field.

func ByCreateTime

func ByCreateTime(opts ...sql.OrderTermOption) OrderOption

ByCreateTime orders the results by the create_time field.

func ByDateFrom

func ByDateFrom(opts ...sql.OrderTermOption) OrderOption

ByDateFrom orders the results by the date_from field.

func ByDeletedTime

func ByDeletedTime(opts ...sql.OrderTermOption) OrderOption

ByDeletedTime orders the results by the deleted_time field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByKittens

func ByKittens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByKittens orders the results by kittens terms.

func ByKittensCount

func ByKittensCount(opts ...sql.OrderTermOption) OrderOption

ByKittensCount orders the results by kittens count.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByOtherType

func ByOtherType(opts ...sql.OrderTermOption) OrderOption

ByOtherType orders the results by the other_type field.

func BySpeed

func BySpeed(opts ...sql.OrderTermOption) OrderOption

BySpeed orders the results by the speed field.

func ByType

func ByType(opts ...sql.OrderTermOption) OrderOption

ByType orders the results by the type field.

func ByUpdateTime

func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption

ByUpdateTime orders the results by the update_time field.

type OtherType

type OtherType string

OtherType defines the type for the "other_type" enum field.

const (
	OtherTypeMerch      OtherType = "merch"
	OtherTypeHotel      OtherType = "hotel"
	OtherTypeTournament OtherType = "tournament"
)

OtherType values.

func (OtherType) String

func (ot OtherType) String() string

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeMerch      Type = "merch"
	TypeHotel      Type = "hotel"
	TypeTournament Type = "tournament"
)

Type values.

func (Type) String

func (_type Type) String() string

Jump to

Keyboard shortcuts

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