Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Idea) predicate.Idea
- func HasRecipe() predicate.Idea
- func HasRecipeWith(preds ...predicate.Recipe) predicate.Idea
- func ID(id uuid.UUID) predicate.Idea
- func IDEQ(id uuid.UUID) predicate.Idea
- func IDGT(id uuid.UUID) predicate.Idea
- func IDGTE(id uuid.UUID) predicate.Idea
- func IDIn(ids ...uuid.UUID) predicate.Idea
- func IDLT(id uuid.UUID) predicate.Idea
- func IDLTE(id uuid.UUID) predicate.Idea
- func IDNEQ(id uuid.UUID) predicate.Idea
- func IDNotIn(ids ...uuid.UUID) predicate.Idea
- func Not(p predicate.Idea) predicate.Idea
- func Or(predicates ...predicate.Idea) predicate.Idea
- func Text(v string) predicate.Idea
- func TextContains(v string) predicate.Idea
- func TextContainsFold(v string) predicate.Idea
- func TextEQ(v string) predicate.Idea
- func TextEqualFold(v string) predicate.Idea
- func TextGT(v string) predicate.Idea
- func TextGTE(v string) predicate.Idea
- func TextHasPrefix(v string) predicate.Idea
- func TextHasSuffix(v string) predicate.Idea
- func TextIn(vs ...string) predicate.Idea
- func TextLT(v string) predicate.Idea
- func TextLTE(v string) predicate.Idea
- func TextNEQ(v string) predicate.Idea
- func TextNotIn(vs ...string) predicate.Idea
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the idea type in the database. Label = "idea" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldText holds the string denoting the text field in the database. FieldText = "text" // EdgeRecipe holds the string denoting the recipe edge name in mutations. EdgeRecipe = "recipe" // Table holds the table name of the idea in the database. Table = "ideas" // RecipeTable is the table that holds the recipe relation/edge. RecipeTable = "ideas" // 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_ideas" )
Variables ¶
var Columns = []string{ FieldID, FieldText, }
Columns holds all SQL columns for idea fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var ForeignKeys = []string{
"recipe_ideas",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "ideas" table and are not defined as standalone fields in the schema.
Functions ¶
func HasRecipeWith ¶
HasRecipeWith applies the HasEdge predicate on the "recipe" edge with a given conditions (other predicates).
func TextContains ¶
TextContains applies the Contains predicate on the "text" field.
func TextContainsFold ¶
TextContainsFold applies the ContainsFold predicate on the "text" field.
func TextEqualFold ¶
TextEqualFold applies the EqualFold predicate on the "text" field.
func TextHasPrefix ¶
TextHasPrefix applies the HasPrefix predicate on the "text" field.
func TextHasSuffix ¶
TextHasSuffix applies the HasSuffix predicate on the "text" 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 Idea queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByRecipeField ¶
func ByRecipeField(field string, opts ...sql.OrderTermOption) OrderOption
ByRecipeField orders the results by recipe field.
func ByText ¶
func ByText(opts ...sql.OrderTermOption) OrderOption
ByText orders the results by the text field.