Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Category) predicate.Category
- func CreatedAt(v time.Time) predicate.Category
- func CreatedAtEQ(v time.Time) predicate.Category
- func CreatedAtGT(v time.Time) predicate.Category
- func CreatedAtGTE(v time.Time) predicate.Category
- func CreatedAtIn(vs ...time.Time) predicate.Category
- func CreatedAtLT(v time.Time) predicate.Category
- func CreatedAtLTE(v time.Time) predicate.Category
- func CreatedAtNEQ(v time.Time) predicate.Category
- func CreatedAtNotIn(vs ...time.Time) predicate.Category
- func HasPets() predicate.Category
- func HasPetsWith(preds ...predicate.Pet) predicate.Category
- func ID(id int) predicate.Category
- func IDEQ(id int) predicate.Category
- func IDGT(id int) predicate.Category
- func IDGTE(id int) predicate.Category
- func IDIn(ids ...int) predicate.Category
- func IDLT(id int) predicate.Category
- func IDLTE(id int) predicate.Category
- func IDNEQ(id int) predicate.Category
- func IDNotIn(ids ...int) predicate.Category
- func IntsIsNil() predicate.Category
- func IntsNotNil() predicate.Category
- func Name(v string) predicate.Category
- func NameContains(v string) predicate.Category
- func NameContainsFold(v string) predicate.Category
- func NameEQ(v string) predicate.Category
- func NameEqualFold(v string) predicate.Category
- func NameGT(v string) predicate.Category
- func NameGTE(v string) predicate.Category
- func NameHasPrefix(v string) predicate.Category
- func NameHasSuffix(v string) predicate.Category
- func NameIn(vs ...string) predicate.Category
- func NameLT(v string) predicate.Category
- func NameLTE(v string) predicate.Category
- func NameNEQ(v string) predicate.Category
- func NameNotIn(vs ...string) predicate.Category
- func Nillable(v string) predicate.Category
- func NillableContains(v string) predicate.Category
- func NillableContainsFold(v string) predicate.Category
- func NillableEQ(v string) predicate.Category
- func NillableEqualFold(v string) predicate.Category
- func NillableGT(v string) predicate.Category
- func NillableGTE(v string) predicate.Category
- func NillableHasPrefix(v string) predicate.Category
- func NillableHasSuffix(v string) predicate.Category
- func NillableIn(vs ...string) predicate.Category
- func NillableLT(v string) predicate.Category
- func NillableLTE(v string) predicate.Category
- func NillableNEQ(v string) predicate.Category
- func NillableNotIn(vs ...string) predicate.Category
- func Not(p predicate.Category) predicate.Category
- func Or(predicates ...predicate.Category) predicate.Category
- func Readonly(v string) predicate.Category
- func ReadonlyContains(v string) predicate.Category
- func ReadonlyContainsFold(v string) predicate.Category
- func ReadonlyEQ(v string) predicate.Category
- func ReadonlyEqualFold(v string) predicate.Category
- func ReadonlyGT(v string) predicate.Category
- func ReadonlyGTE(v string) predicate.Category
- func ReadonlyHasPrefix(v string) predicate.Category
- func ReadonlyHasSuffix(v string) predicate.Category
- func ReadonlyIn(vs ...string) predicate.Category
- func ReadonlyLT(v string) predicate.Category
- func ReadonlyLTE(v string) predicate.Category
- func ReadonlyNEQ(v string) predicate.Category
- func ReadonlyNotIn(vs ...string) predicate.Category
- func SkipInSpec(v string) predicate.Category
- func SkipInSpecContains(v string) predicate.Category
- func SkipInSpecContainsFold(v string) predicate.Category
- func SkipInSpecEQ(v string) predicate.Category
- func SkipInSpecEqualFold(v string) predicate.Category
- func SkipInSpecGT(v string) predicate.Category
- func SkipInSpecGTE(v string) predicate.Category
- func SkipInSpecHasPrefix(v string) predicate.Category
- func SkipInSpecHasSuffix(v string) predicate.Category
- func SkipInSpecIn(vs ...string) predicate.Category
- func SkipInSpecIsNil() predicate.Category
- func SkipInSpecLT(v string) predicate.Category
- func SkipInSpecLTE(v string) predicate.Category
- func SkipInSpecNEQ(v string) predicate.Category
- func SkipInSpecNotIn(vs ...string) predicate.Category
- func SkipInSpecNotNil() predicate.Category
- func StringsIsNil() predicate.Category
- func StringsNotNil() predicate.Category
- func UpdatedAt(v time.Time) predicate.Category
- func UpdatedAtEQ(v time.Time) predicate.Category
- func UpdatedAtGT(v time.Time) predicate.Category
- func UpdatedAtGTE(v time.Time) predicate.Category
- func UpdatedAtIn(vs ...time.Time) predicate.Category
- func UpdatedAtLT(v time.Time) predicate.Category
- func UpdatedAtLTE(v time.Time) predicate.Category
- func UpdatedAtNEQ(v time.Time) predicate.Category
- func UpdatedAtNotIn(vs ...time.Time) predicate.Category
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNillable(opts ...sql.OrderTermOption) OrderOption
- func ByPets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPetsCount(opts ...sql.OrderTermOption) OrderOption
- func ByReadonly(opts ...sql.OrderTermOption) OrderOption
- func BySkipInSpec(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the category type in the database. Label = "category" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldReadonly holds the string denoting the readonly field in the database. FieldReadonly = "readonly" // FieldSkipInSpec holds the string denoting the skip_in_spec field in the database. FieldSkipInSpec = "skip_in_spec" // FieldNillable holds the string denoting the nillable field in the database. FieldNillable = "nillable" // FieldStrings holds the string denoting the strings field in the database. FieldStrings = "strings" // FieldInts holds the string denoting the ints field in the database. FieldInts = "ints" // EdgePets holds the string denoting the pets edge name in mutations. EdgePets = "pets" // Table holds the table name of the category in the database. Table = "categories" // PetsTable is the table that holds the pets relation/edge. The primary key declared below. PetsTable = "category_pets" // PetsInverseTable is the table name for the Pet entity. // It exists in this package in order to avoid circular dependency with the "pet" package. PetsInverseTable = "pets" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultNillable holds the default value on creation for the "nillable" field. DefaultNillable string )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldReadonly, FieldSkipInSpec, FieldNillable, FieldStrings, FieldInts, }
Columns holds all SQL columns for category fields.
var ( // PetsPrimaryKey and PetsColumn2 are the table columns denoting the // primary key for the pets relation (M2M). PetsPrimaryKey = []string{"category_id", "pet_id"} )
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasPetsWith ¶
HasPetsWith applies the HasEdge predicate on the "pets" edge with a given conditions (other predicates).
func IntsNotNil ¶
IntsNotNil applies the NotNil predicate on the "ints" field.
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 Nillable ¶
Nillable applies equality check predicate on the "nillable" field. It's identical to NillableEQ.
func NillableContains ¶
NillableContains applies the Contains predicate on the "nillable" field.
func NillableContainsFold ¶
NillableContainsFold applies the ContainsFold predicate on the "nillable" field.
func NillableEQ ¶
NillableEQ applies the EQ predicate on the "nillable" field.
func NillableEqualFold ¶
NillableEqualFold applies the EqualFold predicate on the "nillable" field.
func NillableGT ¶
NillableGT applies the GT predicate on the "nillable" field.
func NillableGTE ¶
NillableGTE applies the GTE predicate on the "nillable" field.
func NillableHasPrefix ¶
NillableHasPrefix applies the HasPrefix predicate on the "nillable" field.
func NillableHasSuffix ¶
NillableHasSuffix applies the HasSuffix predicate on the "nillable" field.
func NillableIn ¶
NillableIn applies the In predicate on the "nillable" field.
func NillableLT ¶
NillableLT applies the LT predicate on the "nillable" field.
func NillableLTE ¶
NillableLTE applies the LTE predicate on the "nillable" field.
func NillableNEQ ¶
NillableNEQ applies the NEQ predicate on the "nillable" field.
func NillableNotIn ¶
NillableNotIn applies the NotIn predicate on the "nillable" field.
func Readonly ¶
Readonly applies equality check predicate on the "readonly" field. It's identical to ReadonlyEQ.
func ReadonlyContains ¶
ReadonlyContains applies the Contains predicate on the "readonly" field.
func ReadonlyContainsFold ¶
ReadonlyContainsFold applies the ContainsFold predicate on the "readonly" field.
func ReadonlyEQ ¶
ReadonlyEQ applies the EQ predicate on the "readonly" field.
func ReadonlyEqualFold ¶
ReadonlyEqualFold applies the EqualFold predicate on the "readonly" field.
func ReadonlyGT ¶
ReadonlyGT applies the GT predicate on the "readonly" field.
func ReadonlyGTE ¶
ReadonlyGTE applies the GTE predicate on the "readonly" field.
func ReadonlyHasPrefix ¶
ReadonlyHasPrefix applies the HasPrefix predicate on the "readonly" field.
func ReadonlyHasSuffix ¶
ReadonlyHasSuffix applies the HasSuffix predicate on the "readonly" field.
func ReadonlyIn ¶
ReadonlyIn applies the In predicate on the "readonly" field.
func ReadonlyLT ¶
ReadonlyLT applies the LT predicate on the "readonly" field.
func ReadonlyLTE ¶
ReadonlyLTE applies the LTE predicate on the "readonly" field.
func ReadonlyNEQ ¶
ReadonlyNEQ applies the NEQ predicate on the "readonly" field.
func ReadonlyNotIn ¶
ReadonlyNotIn applies the NotIn predicate on the "readonly" field.
func SkipInSpec ¶
SkipInSpec applies equality check predicate on the "skip_in_spec" field. It's identical to SkipInSpecEQ.
func SkipInSpecContains ¶
SkipInSpecContains applies the Contains predicate on the "skip_in_spec" field.
func SkipInSpecContainsFold ¶
SkipInSpecContainsFold applies the ContainsFold predicate on the "skip_in_spec" field.
func SkipInSpecEQ ¶
SkipInSpecEQ applies the EQ predicate on the "skip_in_spec" field.
func SkipInSpecEqualFold ¶
SkipInSpecEqualFold applies the EqualFold predicate on the "skip_in_spec" field.
func SkipInSpecGT ¶
SkipInSpecGT applies the GT predicate on the "skip_in_spec" field.
func SkipInSpecGTE ¶
SkipInSpecGTE applies the GTE predicate on the "skip_in_spec" field.
func SkipInSpecHasPrefix ¶
SkipInSpecHasPrefix applies the HasPrefix predicate on the "skip_in_spec" field.
func SkipInSpecHasSuffix ¶
SkipInSpecHasSuffix applies the HasSuffix predicate on the "skip_in_spec" field.
func SkipInSpecIn ¶
SkipInSpecIn applies the In predicate on the "skip_in_spec" field.
func SkipInSpecIsNil ¶
SkipInSpecIsNil applies the IsNil predicate on the "skip_in_spec" field.
func SkipInSpecLT ¶
SkipInSpecLT applies the LT predicate on the "skip_in_spec" field.
func SkipInSpecLTE ¶
SkipInSpecLTE applies the LTE predicate on the "skip_in_spec" field.
func SkipInSpecNEQ ¶
SkipInSpecNEQ applies the NEQ predicate on the "skip_in_spec" field.
func SkipInSpecNotIn ¶
SkipInSpecNotIn applies the NotIn predicate on the "skip_in_spec" field.
func SkipInSpecNotNil ¶
SkipInSpecNotNil applies the NotNil predicate on the "skip_in_spec" field.
func StringsIsNil ¶
StringsIsNil applies the IsNil predicate on the "strings" field.
func StringsNotNil ¶
StringsNotNil applies the NotNil predicate on the "strings" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 Category queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByNillable ¶
func ByNillable(opts ...sql.OrderTermOption) OrderOption
ByNillable orders the results by the nillable field.
func ByPets ¶
func ByPets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPets orders the results by pets terms.
func ByPetsCount ¶
func ByPetsCount(opts ...sql.OrderTermOption) OrderOption
ByPetsCount orders the results by pets count.
func ByReadonly ¶
func ByReadonly(opts ...sql.OrderTermOption) OrderOption
ByReadonly orders the results by the readonly field.
func BySkipInSpec ¶
func BySkipInSpec(opts ...sql.OrderTermOption) OrderOption
BySkipInSpec orders the results by the skip_in_spec field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.