Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Nutrition) predicate.Nutrition
- func BenefitsIsNil() predicate.Nutrition
- func BenefitsNotNil() predicate.Nutrition
- func Calories(v int) predicate.Nutrition
- func CaloriesEQ(v int) predicate.Nutrition
- func CaloriesGT(v int) predicate.Nutrition
- func CaloriesGTE(v int) predicate.Nutrition
- func CaloriesIn(vs ...int) predicate.Nutrition
- func CaloriesIsNil() predicate.Nutrition
- func CaloriesLT(v int) predicate.Nutrition
- func CaloriesLTE(v int) predicate.Nutrition
- func CaloriesNEQ(v int) predicate.Nutrition
- func CaloriesNotIn(vs ...int) predicate.Nutrition
- func CaloriesNotNil() predicate.Nutrition
- func Carbs(v int) predicate.Nutrition
- func CarbsEQ(v int) predicate.Nutrition
- func CarbsGT(v int) predicate.Nutrition
- func CarbsGTE(v int) predicate.Nutrition
- func CarbsIn(vs ...int) predicate.Nutrition
- func CarbsIsNil() predicate.Nutrition
- func CarbsLT(v int) predicate.Nutrition
- func CarbsLTE(v int) predicate.Nutrition
- func CarbsNEQ(v int) predicate.Nutrition
- func CarbsNotIn(vs ...int) predicate.Nutrition
- func CarbsNotNil() predicate.Nutrition
- func Fat(v int) predicate.Nutrition
- func FatEQ(v int) predicate.Nutrition
- func FatGT(v int) predicate.Nutrition
- func FatGTE(v int) predicate.Nutrition
- func FatIn(vs ...int) predicate.Nutrition
- func FatIsNil() predicate.Nutrition
- func FatLT(v int) predicate.Nutrition
- func FatLTE(v int) predicate.Nutrition
- func FatNEQ(v int) predicate.Nutrition
- func FatNotIn(vs ...int) predicate.Nutrition
- func FatNotNil() predicate.Nutrition
- func HasRecipe() predicate.Nutrition
- func HasRecipeWith(preds ...predicate.Recipe) predicate.Nutrition
- func ID(id int) predicate.Nutrition
- func IDEQ(id int) predicate.Nutrition
- func IDGT(id int) predicate.Nutrition
- func IDGTE(id int) predicate.Nutrition
- func IDIn(ids ...int) predicate.Nutrition
- func IDLT(id int) predicate.Nutrition
- func IDLTE(id int) predicate.Nutrition
- func IDNEQ(id int) predicate.Nutrition
- func IDNotIn(ids ...int) predicate.Nutrition
- func Not(p predicate.Nutrition) predicate.Nutrition
- func Or(predicates ...predicate.Nutrition) predicate.Nutrition
- func Precision(v string) predicate.Nutrition
- func PrecisionContains(v string) predicate.Nutrition
- func PrecisionContainsFold(v string) predicate.Nutrition
- func PrecisionEQ(v string) predicate.Nutrition
- func PrecisionEqualFold(v string) predicate.Nutrition
- func PrecisionGT(v string) predicate.Nutrition
- func PrecisionGTE(v string) predicate.Nutrition
- func PrecisionHasPrefix(v string) predicate.Nutrition
- func PrecisionHasSuffix(v string) predicate.Nutrition
- func PrecisionIn(vs ...string) predicate.Nutrition
- func PrecisionIsNil() predicate.Nutrition
- func PrecisionLT(v string) predicate.Nutrition
- func PrecisionLTE(v string) predicate.Nutrition
- func PrecisionNEQ(v string) predicate.Nutrition
- func PrecisionNotIn(vs ...string) predicate.Nutrition
- func PrecisionNotNil() predicate.Nutrition
- func Protein(v int) predicate.Nutrition
- func ProteinEQ(v int) predicate.Nutrition
- func ProteinGT(v int) predicate.Nutrition
- func ProteinGTE(v int) predicate.Nutrition
- func ProteinIn(vs ...int) predicate.Nutrition
- func ProteinIsNil() predicate.Nutrition
- func ProteinLT(v int) predicate.Nutrition
- func ProteinLTE(v int) predicate.Nutrition
- func ProteinNEQ(v int) predicate.Nutrition
- func ProteinNotIn(vs ...int) predicate.Nutrition
- func ProteinNotNil() predicate.Nutrition
- func ValidColumn(column string) bool
- type OrderOption
- func ByCalories(opts ...sql.OrderTermOption) OrderOption
- func ByCarbs(opts ...sql.OrderTermOption) OrderOption
- func ByFat(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPrecision(opts ...sql.OrderTermOption) OrderOption
- func ByProtein(opts ...sql.OrderTermOption) OrderOption
- func ByRecipeField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the nutrition type in the database. Label = "nutrition" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCalories holds the string denoting the calories field in the database. FieldCalories = "calories" // FieldFat holds the string denoting the fat field in the database. FieldFat = "fat" // FieldCarbs holds the string denoting the carbs field in the database. FieldCarbs = "carbs" // FieldProtein holds the string denoting the protein field in the database. FieldProtein = "protein" // FieldPrecision holds the string denoting the precision field in the database. FieldPrecision = "precision" // FieldBenefits holds the string denoting the benefits field in the database. FieldBenefits = "benefits" // EdgeRecipe holds the string denoting the recipe edge name in mutations. EdgeRecipe = "recipe" // Table holds the table name of the nutrition in the database. Table = "nutritions" // RecipeTable is the table that holds the recipe relation/edge. RecipeTable = "nutritions" // RecipeInverseTable is the table name for the Recipe entity. // It exists in this package in order to avoid circular dependency with the "recipe" package. RecipeInverseTable = "recipes" // RecipeColumn is the table column denoting the recipe relation/edge. RecipeColumn = "recipe_nutrition" )
Variables ¶
var Columns = []string{ FieldID, FieldCalories, FieldFat, FieldCarbs, FieldProtein, FieldPrecision, FieldBenefits, }
Columns holds all SQL columns for nutrition fields.
var ForeignKeys = []string{
"recipe_nutrition",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "nutritions" table and are not defined as standalone fields in the schema.
Functions ¶
func BenefitsIsNil ¶
BenefitsIsNil applies the IsNil predicate on the "benefits" field.
func BenefitsNotNil ¶
BenefitsNotNil applies the NotNil predicate on the "benefits" field.
func Calories ¶
Calories applies equality check predicate on the "calories" field. It's identical to CaloriesEQ.
func CaloriesEQ ¶
CaloriesEQ applies the EQ predicate on the "calories" field.
func CaloriesGT ¶
CaloriesGT applies the GT predicate on the "calories" field.
func CaloriesGTE ¶
CaloriesGTE applies the GTE predicate on the "calories" field.
func CaloriesIn ¶
CaloriesIn applies the In predicate on the "calories" field.
func CaloriesIsNil ¶
CaloriesIsNil applies the IsNil predicate on the "calories" field.
func CaloriesLT ¶
CaloriesLT applies the LT predicate on the "calories" field.
func CaloriesLTE ¶
CaloriesLTE applies the LTE predicate on the "calories" field.
func CaloriesNEQ ¶
CaloriesNEQ applies the NEQ predicate on the "calories" field.
func CaloriesNotIn ¶
CaloriesNotIn applies the NotIn predicate on the "calories" field.
func CaloriesNotNil ¶
CaloriesNotNil applies the NotNil predicate on the "calories" field.
func Carbs ¶
Carbs applies equality check predicate on the "carbs" field. It's identical to CarbsEQ.
func CarbsIsNil ¶
CarbsIsNil applies the IsNil predicate on the "carbs" field.
func CarbsNotIn ¶
CarbsNotIn applies the NotIn predicate on the "carbs" field.
func CarbsNotNil ¶
CarbsNotNil applies the NotNil predicate on the "carbs" field.
func HasRecipeWith ¶
HasRecipeWith applies the HasEdge predicate on the "recipe" edge with a given conditions (other predicates).
func Precision ¶
Precision applies equality check predicate on the "precision" field. It's identical to PrecisionEQ.
func PrecisionContains ¶
PrecisionContains applies the Contains predicate on the "precision" field.
func PrecisionContainsFold ¶
PrecisionContainsFold applies the ContainsFold predicate on the "precision" field.
func PrecisionEQ ¶
PrecisionEQ applies the EQ predicate on the "precision" field.
func PrecisionEqualFold ¶
PrecisionEqualFold applies the EqualFold predicate on the "precision" field.
func PrecisionGT ¶
PrecisionGT applies the GT predicate on the "precision" field.
func PrecisionGTE ¶
PrecisionGTE applies the GTE predicate on the "precision" field.
func PrecisionHasPrefix ¶
PrecisionHasPrefix applies the HasPrefix predicate on the "precision" field.
func PrecisionHasSuffix ¶
PrecisionHasSuffix applies the HasSuffix predicate on the "precision" field.
func PrecisionIn ¶
PrecisionIn applies the In predicate on the "precision" field.
func PrecisionIsNil ¶
PrecisionIsNil applies the IsNil predicate on the "precision" field.
func PrecisionLT ¶
PrecisionLT applies the LT predicate on the "precision" field.
func PrecisionLTE ¶
PrecisionLTE applies the LTE predicate on the "precision" field.
func PrecisionNEQ ¶
PrecisionNEQ applies the NEQ predicate on the "precision" field.
func PrecisionNotIn ¶
PrecisionNotIn applies the NotIn predicate on the "precision" field.
func PrecisionNotNil ¶
PrecisionNotNil applies the NotNil predicate on the "precision" field.
func Protein ¶
Protein applies equality check predicate on the "protein" field. It's identical to ProteinEQ.
func ProteinGTE ¶
ProteinGTE applies the GTE predicate on the "protein" field.
func ProteinIsNil ¶
ProteinIsNil applies the IsNil predicate on the "protein" field.
func ProteinLTE ¶
ProteinLTE applies the LTE predicate on the "protein" field.
func ProteinNEQ ¶
ProteinNEQ applies the NEQ predicate on the "protein" field.
func ProteinNotIn ¶
ProteinNotIn applies the NotIn predicate on the "protein" field.
func ProteinNotNil ¶
ProteinNotNil applies the NotNil predicate on the "protein" 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 Nutrition queries.
func ByCalories ¶
func ByCalories(opts ...sql.OrderTermOption) OrderOption
ByCalories orders the results by the calories field.
func ByCarbs ¶
func ByCarbs(opts ...sql.OrderTermOption) OrderOption
ByCarbs orders the results by the carbs field.
func ByFat ¶
func ByFat(opts ...sql.OrderTermOption) OrderOption
ByFat orders the results by the fat field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPrecision ¶
func ByPrecision(opts ...sql.OrderTermOption) OrderOption
ByPrecision orders the results by the precision field.
func ByProtein ¶
func ByProtein(opts ...sql.OrderTermOption) OrderOption
ByProtein orders the results by the protein field.
func ByRecipeField ¶
func ByRecipeField(field string, opts ...sql.OrderTermOption) OrderOption
ByRecipeField orders the results by recipe field.