kitten

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the kitten type in the database.
	Label = "kitten"
	// 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"
	// FieldMotherID holds the string denoting the mother_id field in the database.
	FieldMotherID = "mother_id"
	// EdgeMother holds the string denoting the mother edge name in mutations.
	EdgeMother = "mother"
	// Table holds the table name of the kitten in the database.
	Table = "kittens"
	// MotherTable is the table that holds the mother relation/edge.
	MotherTable = "kittens"
	// MotherInverseTable is the table name for the Cat entity.
	// It exists in this package in order to avoid circular dependency with the "cat" package.
	MotherInverseTable = "cats"
	// MotherColumn is the table column denoting the mother relation/edge.
	MotherColumn = "mother_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 kitten fields.

Functions

func And

func And(predicates ...predicate.Kitten) predicate.Kitten

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Kitten

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Kitten

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Kitten

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Kitten

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

func CreateTimeIn

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

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Kitten

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Kitten

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Kitten

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

func CreateTimeNotIn

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

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

func DeletedTime

func DeletedTime(v time.Time) predicate.Kitten

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

func DeletedTimeEQ

func DeletedTimeEQ(v time.Time) predicate.Kitten

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

func DeletedTimeGT

func DeletedTimeGT(v time.Time) predicate.Kitten

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

func DeletedTimeGTE

func DeletedTimeGTE(v time.Time) predicate.Kitten

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

func DeletedTimeIn

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

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

func DeletedTimeIsNil

func DeletedTimeIsNil() predicate.Kitten

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

func DeletedTimeLT

func DeletedTimeLT(v time.Time) predicate.Kitten

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

func DeletedTimeLTE

func DeletedTimeLTE(v time.Time) predicate.Kitten

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

func DeletedTimeNEQ

func DeletedTimeNEQ(v time.Time) predicate.Kitten

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

func DeletedTimeNotIn

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

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

func DeletedTimeNotNil

func DeletedTimeNotNil() predicate.Kitten

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

func HasMother

func HasMother() predicate.Kitten

HasMother applies the HasEdge predicate on the "mother" edge.

func HasMotherWith

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

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

func ID

func ID(id uuid.UUID) predicate.Kitten

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Kitten

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Kitten

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Kitten

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Kitten

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Kitten

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Kitten

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MotherID

func MotherID(v uuid.UUID) predicate.Kitten

MotherID applies equality check predicate on the "mother_id" field. It's identical to MotherIDEQ.

func MotherIDEQ

func MotherIDEQ(v uuid.UUID) predicate.Kitten

MotherIDEQ applies the EQ predicate on the "mother_id" field.

func MotherIDIn

func MotherIDIn(vs ...uuid.UUID) predicate.Kitten

MotherIDIn applies the In predicate on the "mother_id" field.

func MotherIDNEQ

func MotherIDNEQ(v uuid.UUID) predicate.Kitten

MotherIDNEQ applies the NEQ predicate on the "mother_id" field.

func MotherIDNotIn

func MotherIDNotIn(vs ...uuid.UUID) predicate.Kitten

MotherIDNotIn applies the NotIn predicate on the "mother_id" field.

func Name

func Name(v string) predicate.Kitten

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

func NameContains

func NameContains(v string) predicate.Kitten

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

func NameContainsFold

func NameContainsFold(v string) predicate.Kitten

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

func NameEQ

func NameEQ(v string) predicate.Kitten

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

func NameEqualFold

func NameEqualFold(v string) predicate.Kitten

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

func NameGT

func NameGT(v string) predicate.Kitten

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

func NameGTE

func NameGTE(v string) predicate.Kitten

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Kitten

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Kitten

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Kitten

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

func NameLTE

func NameLTE(v string) predicate.Kitten

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

func NameNEQ

func NameNEQ(v string) predicate.Kitten

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Kitten) predicate.Kitten

Or groups predicates with the OR operator between them.

func UpdateTime

func UpdateTime(v time.Time) predicate.Kitten

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

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Kitten

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

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Kitten

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

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Kitten

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

func UpdateTimeIn

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

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

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Kitten

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

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Kitten

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

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Kitten

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

func UpdateTimeNotIn

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

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 Kitten queries.

func ByCreateTime

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

ByCreateTime orders the results by the create_time 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 ByMotherField

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

ByMotherField orders the results by mother field.

func ByMotherID

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

ByMotherID orders the results by the mother_id field.

func ByName

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

ByName orders the results by the name field.

func ByUpdateTime

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

ByUpdateTime orders the results by the update_time field.

Jump to

Keyboard shortcuts

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