Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Source) predicate.Source
- func Description(v string) predicate.Source
- func DescriptionContains(v string) predicate.Source
- func DescriptionContainsFold(v string) predicate.Source
- func DescriptionEQ(v string) predicate.Source
- func DescriptionEqualFold(v string) predicate.Source
- func DescriptionGT(v string) predicate.Source
- func DescriptionGTE(v string) predicate.Source
- func DescriptionHasPrefix(v string) predicate.Source
- func DescriptionHasSuffix(v string) predicate.Source
- func DescriptionIn(vs ...string) predicate.Source
- func DescriptionIsNil() predicate.Source
- func DescriptionLT(v string) predicate.Source
- func DescriptionLTE(v string) predicate.Source
- func DescriptionNEQ(v string) predicate.Source
- func DescriptionNotIn(vs ...string) predicate.Source
- func DescriptionNotNil() predicate.Source
- func HasRecipe() predicate.Source
- func HasRecipeWith(preds ...predicate.Recipe) predicate.Source
- func ID(id uuid.UUID) predicate.Source
- func IDEQ(id uuid.UUID) predicate.Source
- func IDGT(id uuid.UUID) predicate.Source
- func IDGTE(id uuid.UUID) predicate.Source
- func IDIn(ids ...uuid.UUID) predicate.Source
- func IDLT(id uuid.UUID) predicate.Source
- func IDLTE(id uuid.UUID) predicate.Source
- func IDNEQ(id uuid.UUID) predicate.Source
- func IDNotIn(ids ...uuid.UUID) predicate.Source
- func Name(v string) predicate.Source
- func NameContains(v string) predicate.Source
- func NameContainsFold(v string) predicate.Source
- func NameEQ(v string) predicate.Source
- func NameEqualFold(v string) predicate.Source
- func NameGT(v string) predicate.Source
- func NameGTE(v string) predicate.Source
- func NameHasPrefix(v string) predicate.Source
- func NameHasSuffix(v string) predicate.Source
- func NameIn(vs ...string) predicate.Source
- func NameIsNil() predicate.Source
- func NameLT(v string) predicate.Source
- func NameLTE(v string) predicate.Source
- func NameNEQ(v string) predicate.Source
- func NameNotIn(vs ...string) predicate.Source
- func NameNotNil() predicate.Source
- func Not(p predicate.Source) predicate.Source
- func Or(predicates ...predicate.Source) predicate.Source
- func URL(v string) predicate.Source
- func URLContains(v string) predicate.Source
- func URLContainsFold(v string) predicate.Source
- func URLEQ(v string) predicate.Source
- func URLEqualFold(v string) predicate.Source
- func URLGT(v string) predicate.Source
- func URLGTE(v string) predicate.Source
- func URLHasPrefix(v string) predicate.Source
- func URLHasSuffix(v string) predicate.Source
- func URLIn(vs ...string) predicate.Source
- func URLIsNil() predicate.Source
- func URLLT(v string) predicate.Source
- func URLLTE(v string) predicate.Source
- func URLNEQ(v string) predicate.Source
- func URLNotIn(vs ...string) predicate.Source
- func URLNotNil() predicate.Source
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the source type in the database. Label = "source" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // EdgeRecipe holds the string denoting the recipe edge name in mutations. EdgeRecipe = "recipe" // Table holds the table name of the source in the database. Table = "sources" // RecipeTable is the table that holds the recipe relation/edge. RecipeTable = "sources" // 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_sources" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldDescription, FieldURL, }
Columns holds all SQL columns for source fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var ForeignKeys = []string{
"recipe_sources",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "sources" table and are not defined as standalone fields in the schema.
Functions ¶
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasRecipeWith ¶
HasRecipeWith applies the HasEdge predicate on the "recipe" 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 NameNotNil ¶
NameNotNil applies the NotNil predicate on the "name" field.
func URLContains ¶
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEqualFold ¶
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLHasPrefix ¶
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
URLHasSuffix applies the HasSuffix predicate on the "url" 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 Source queries.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description 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 ByRecipeField ¶
func ByRecipeField(field string, opts ...sql.OrderTermOption) OrderOption
ByRecipeField orders the results by recipe field.
func ByURL ¶
func ByURL(opts ...sql.OrderTermOption) OrderOption
ByURL orders the results by the url field.