Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Cat) predicate.Cat
- func BreedID(v uuid.UUID) predicate.Cat
- func BreedIDEQ(v uuid.UUID) predicate.Cat
- func BreedIDIn(vs ...uuid.UUID) predicate.Cat
- func BreedIDNEQ(v uuid.UUID) predicate.Cat
- func BreedIDNotIn(vs ...uuid.UUID) predicate.Cat
- func CreateTime(v time.Time) predicate.Cat
- func CreateTimeEQ(v time.Time) predicate.Cat
- func CreateTimeGT(v time.Time) predicate.Cat
- func CreateTimeGTE(v time.Time) predicate.Cat
- func CreateTimeIn(vs ...time.Time) predicate.Cat
- func CreateTimeLT(v time.Time) predicate.Cat
- func CreateTimeLTE(v time.Time) predicate.Cat
- func CreateTimeNEQ(v time.Time) predicate.Cat
- func CreateTimeNotIn(vs ...time.Time) predicate.Cat
- func DateFrom(v time.Time) predicate.Cat
- func DateFromEQ(v time.Time) predicate.Cat
- func DateFromGT(v time.Time) predicate.Cat
- func DateFromGTE(v time.Time) predicate.Cat
- func DateFromIn(vs ...time.Time) predicate.Cat
- func DateFromLT(v time.Time) predicate.Cat
- func DateFromLTE(v time.Time) predicate.Cat
- func DateFromNEQ(v time.Time) predicate.Cat
- func DateFromNotIn(vs ...time.Time) predicate.Cat
- func DeletedTime(v time.Time) predicate.Cat
- func DeletedTimeEQ(v time.Time) predicate.Cat
- func DeletedTimeGT(v time.Time) predicate.Cat
- func DeletedTimeGTE(v time.Time) predicate.Cat
- func DeletedTimeIn(vs ...time.Time) predicate.Cat
- func DeletedTimeIsNil() predicate.Cat
- func DeletedTimeLT(v time.Time) predicate.Cat
- func DeletedTimeLTE(v time.Time) predicate.Cat
- func DeletedTimeNEQ(v time.Time) predicate.Cat
- func DeletedTimeNotIn(vs ...time.Time) predicate.Cat
- func DeletedTimeNotNil() predicate.Cat
- func HasBreed() predicate.Cat
- func HasBreedWith(preds ...predicate.Breed) predicate.Cat
- func HasKittens() predicate.Cat
- func HasKittensWith(preds ...predicate.Kitten) predicate.Cat
- func ID(id uuid.UUID) predicate.Cat
- func IDEQ(id uuid.UUID) predicate.Cat
- func IDGT(id uuid.UUID) predicate.Cat
- func IDGTE(id uuid.UUID) predicate.Cat
- func IDIn(ids ...uuid.UUID) predicate.Cat
- func IDLT(id uuid.UUID) predicate.Cat
- func IDLTE(id uuid.UUID) predicate.Cat
- func IDNEQ(id uuid.UUID) predicate.Cat
- func IDNotIn(ids ...uuid.UUID) predicate.Cat
- func Name(v string) predicate.Cat
- func NameContains(v string) predicate.Cat
- func NameContainsFold(v string) predicate.Cat
- func NameEQ(v string) predicate.Cat
- func NameEqualFold(v string) predicate.Cat
- func NameGT(v string) predicate.Cat
- func NameGTE(v string) predicate.Cat
- func NameHasPrefix(v string) predicate.Cat
- func NameHasSuffix(v string) predicate.Cat
- func NameIn(vs ...string) predicate.Cat
- func NameLT(v string) predicate.Cat
- func NameLTE(v string) predicate.Cat
- func NameNEQ(v string) predicate.Cat
- func NameNotIn(vs ...string) predicate.Cat
- func Not(p predicate.Cat) predicate.Cat
- func Or(predicates ...predicate.Cat) predicate.Cat
- func OtherTypeEQ(v OtherType) predicate.Cat
- func OtherTypeIn(vs ...OtherType) predicate.Cat
- func OtherTypeNEQ(v OtherType) predicate.Cat
- func OtherTypeNotIn(vs ...OtherType) predicate.Cat
- func OtherTypeValidator(ot OtherType) error
- func Speed(v int64) predicate.Cat
- func SpeedEQ(v int64) predicate.Cat
- func SpeedGT(v int64) predicate.Cat
- func SpeedGTE(v int64) predicate.Cat
- func SpeedIn(vs ...int64) predicate.Cat
- func SpeedLT(v int64) predicate.Cat
- func SpeedLTE(v int64) predicate.Cat
- func SpeedNEQ(v int64) predicate.Cat
- func SpeedNotIn(vs ...int64) predicate.Cat
- func TypeEQ(v Type) predicate.Cat
- func TypeIn(vs ...Type) predicate.Cat
- func TypeNEQ(v Type) predicate.Cat
- func TypeNotIn(vs ...Type) predicate.Cat
- func TypeValidator(_type Type) error
- func UpdateTime(v time.Time) predicate.Cat
- func UpdateTimeEQ(v time.Time) predicate.Cat
- func UpdateTimeGT(v time.Time) predicate.Cat
- func UpdateTimeGTE(v time.Time) predicate.Cat
- func UpdateTimeIn(vs ...time.Time) predicate.Cat
- func UpdateTimeLT(v time.Time) predicate.Cat
- func UpdateTimeLTE(v time.Time) predicate.Cat
- func UpdateTimeNEQ(v time.Time) predicate.Cat
- func UpdateTimeNotIn(vs ...time.Time) predicate.Cat
- func ValidColumn(column string) bool
- type OrderOption
- func ByBreedField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByBreedID(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDateFrom(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedTime(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKittens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByKittensCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOtherType(opts ...sql.OrderTermOption) OrderOption
- func BySpeed(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- type OtherType
- type Type
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldDeletedTime, FieldCreateTime, FieldUpdateTime, FieldName, FieldBreedID, FieldSpeed, FieldDateFrom, FieldType, FieldOtherType, }
Columns holds all SQL columns for cat fields.
Functions ¶
func BreedID ¶
BreedID applies equality check predicate on the "breed_id" field. It's identical to BreedIDEQ.
func BreedIDNEQ ¶
BreedIDNEQ applies the NEQ predicate on the "breed_id" field.
func BreedIDNotIn ¶
BreedIDNotIn applies the NotIn predicate on the "breed_id" field.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func DateFrom ¶
DateFrom applies equality check predicate on the "date_from" field. It's identical to DateFromEQ.
func DateFromEQ ¶
DateFromEQ applies the EQ predicate on the "date_from" field.
func DateFromGT ¶
DateFromGT applies the GT predicate on the "date_from" field.
func DateFromGTE ¶
DateFromGTE applies the GTE predicate on the "date_from" field.
func DateFromIn ¶
DateFromIn applies the In predicate on the "date_from" field.
func DateFromLT ¶
DateFromLT applies the LT predicate on the "date_from" field.
func DateFromLTE ¶
DateFromLTE applies the LTE predicate on the "date_from" field.
func DateFromNEQ ¶
DateFromNEQ applies the NEQ predicate on the "date_from" field.
func DateFromNotIn ¶
DateFromNotIn applies the NotIn predicate on the "date_from" field.
func DeletedTime ¶
DeletedTime applies equality check predicate on the "deleted_time" field. It's identical to DeletedTimeEQ.
func DeletedTimeEQ ¶
DeletedTimeEQ applies the EQ predicate on the "deleted_time" field.
func DeletedTimeGT ¶
DeletedTimeGT applies the GT predicate on the "deleted_time" field.
func DeletedTimeGTE ¶
DeletedTimeGTE applies the GTE predicate on the "deleted_time" field.
func DeletedTimeIn ¶
DeletedTimeIn applies the In predicate on the "deleted_time" field.
func DeletedTimeIsNil ¶
DeletedTimeIsNil applies the IsNil predicate on the "deleted_time" field.
func DeletedTimeLT ¶
DeletedTimeLT applies the LT predicate on the "deleted_time" field.
func DeletedTimeLTE ¶
DeletedTimeLTE applies the LTE predicate on the "deleted_time" field.
func DeletedTimeNEQ ¶
DeletedTimeNEQ applies the NEQ predicate on the "deleted_time" field.
func DeletedTimeNotIn ¶
DeletedTimeNotIn applies the NotIn predicate on the "deleted_time" field.
func DeletedTimeNotNil ¶
DeletedTimeNotNil applies the NotNil predicate on the "deleted_time" field.
func HasBreedWith ¶
HasBreedWith applies the HasEdge predicate on the "breed" edge with a given conditions (other predicates).
func HasKittens ¶
HasKittens applies the HasEdge predicate on the "kittens" edge.
func HasKittensWith ¶
HasKittensWith applies the HasEdge predicate on the "kittens" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func OtherTypeEQ ¶
OtherTypeEQ applies the EQ predicate on the "other_type" field.
func OtherTypeIn ¶
OtherTypeIn applies the In predicate on the "other_type" field.
func OtherTypeNEQ ¶
OtherTypeNEQ applies the NEQ predicate on the "other_type" field.
func OtherTypeNotIn ¶
OtherTypeNotIn applies the NotIn predicate on the "other_type" field.
func OtherTypeValidator ¶
OtherTypeValidator is a validator for the "other_type" field enum values. It is called by the builders before save.
func Speed ¶
Speed applies equality check predicate on the "speed" field. It's identical to SpeedEQ.
func SpeedNotIn ¶
SpeedNotIn applies the NotIn predicate on the "speed" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.