Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tag) predicate.Tag
- func Description(v string) predicate.Tag
- func DescriptionContains(v string) predicate.Tag
- func DescriptionContainsFold(v string) predicate.Tag
- func DescriptionEQ(v string) predicate.Tag
- func DescriptionEqualFold(v string) predicate.Tag
- func DescriptionGT(v string) predicate.Tag
- func DescriptionGTE(v string) predicate.Tag
- func DescriptionHasPrefix(v string) predicate.Tag
- func DescriptionHasSuffix(v string) predicate.Tag
- func DescriptionIn(vs ...string) predicate.Tag
- func DescriptionLT(v string) predicate.Tag
- func DescriptionLTE(v string) predicate.Tag
- func DescriptionNEQ(v string) predicate.Tag
- func DescriptionNotIn(vs ...string) predicate.Tag
- func HasOccurrence() predicate.Tag
- func HasOccurrenceWith(preds ...predicate.Occurrence) predicate.Tag
- func ID(id string) predicate.Tag
- func IDContainsFold(id string) predicate.Tag
- func IDEQ(id string) predicate.Tag
- func IDEqualFold(id string) predicate.Tag
- func IDGT(id string) predicate.Tag
- func IDGTE(id string) predicate.Tag
- func IDIn(ids ...string) predicate.Tag
- func IDLT(id string) predicate.Tag
- func IDLTE(id string) predicate.Tag
- func IDNEQ(id string) predicate.Tag
- func IDNotIn(ids ...string) predicate.Tag
- func IsAllergy(v bool) predicate.Tag
- func IsAllergyEQ(v bool) predicate.Tag
- func IsAllergyNEQ(v bool) predicate.Tag
- func Name(v string) predicate.Tag
- func NameContains(v string) predicate.Tag
- func NameContainsFold(v string) predicate.Tag
- func NameEQ(v string) predicate.Tag
- func NameEqualFold(v string) predicate.Tag
- func NameGT(v string) predicate.Tag
- func NameGTE(v string) predicate.Tag
- func NameHasPrefix(v string) predicate.Tag
- func NameHasSuffix(v string) predicate.Tag
- func NameIn(vs ...string) predicate.Tag
- func NameLT(v string) predicate.Tag
- func NameLTE(v string) predicate.Tag
- func NameNEQ(v string) predicate.Tag
- func NameNotIn(vs ...string) predicate.Tag
- func Not(p predicate.Tag) predicate.Tag
- func Or(predicates ...predicate.Tag) predicate.Tag
- func PriorityEQ(v schema.TagPriority) predicate.Tag
- func PriorityIn(vs ...schema.TagPriority) predicate.Tag
- func PriorityNEQ(v schema.TagPriority) predicate.Tag
- func PriorityNotIn(vs ...schema.TagPriority) predicate.Tag
- func PriorityValidator(pr schema.TagPriority) error
- func ShortName(v string) predicate.Tag
- func ShortNameContains(v string) predicate.Tag
- func ShortNameContainsFold(v string) predicate.Tag
- func ShortNameEQ(v string) predicate.Tag
- func ShortNameEqualFold(v string) predicate.Tag
- func ShortNameGT(v string) predicate.Tag
- func ShortNameGTE(v string) predicate.Tag
- func ShortNameHasPrefix(v string) predicate.Tag
- func ShortNameHasSuffix(v string) predicate.Tag
- func ShortNameIn(vs ...string) predicate.Tag
- func ShortNameIsNil() predicate.Tag
- func ShortNameLT(v string) predicate.Tag
- func ShortNameLTE(v string) predicate.Tag
- func ShortNameNEQ(v string) predicate.Tag
- func ShortNameNotIn(vs ...string) predicate.Tag
- func ShortNameNotNil() predicate.Tag
- func ValidColumn(column string) bool
- type OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsAllergy(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOccurrence(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOccurrenceCount(opts ...sql.OrderTermOption) OrderOption
- func ByPriority(opts ...sql.OrderTermOption) OrderOption
- func ByShortName(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the tag type in the database. Label = "tag" // FieldID holds the string denoting the id field in the database. FieldID = "key" // 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" // FieldShortName holds the string denoting the short_name field in the database. FieldShortName = "short_name" // FieldPriority holds the string denoting the priority field in the database. FieldPriority = "priority" // FieldIsAllergy holds the string denoting the is_allergy field in the database. FieldIsAllergy = "is_allergy" // EdgeOccurrence holds the string denoting the occurrence edge name in mutations. EdgeOccurrence = "occurrence" // OccurrenceFieldID holds the string denoting the ID field of the Occurrence. OccurrenceFieldID = "id" // Table holds the table name of the tag in the database. Table = "tag" // OccurrenceTable is the table that holds the occurrence relation/edge. The primary key declared below. OccurrenceTable = "occurrence_tags" // OccurrenceInverseTable is the table name for the Occurrence entity. // It exists in this package in order to avoid circular dependency with the "occurrence" package. OccurrenceInverseTable = "occurrence" )
const DefaultPriority schema.TagPriority = "HIDE"
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DescriptionValidator is a validator for the "description" field. It is called by the builders before save. DescriptionValidator func(string) error // ShortNameValidator is a validator for the "short_name" field. It is called by the builders before save. ShortNameValidator func(string) error // DefaultIsAllergy holds the default value on creation for the "is_allergy" field. DefaultIsAllergy bool )
var Columns = []string{ FieldID, FieldName, FieldDescription, FieldShortName, FieldPriority, FieldIsAllergy, }
Columns holds all SQL columns for tag fields.
var ( // OccurrencePrimaryKey and OccurrenceColumn2 are the table columns denoting the // primary key for the occurrence relation (M2M). OccurrencePrimaryKey = []string{"occurrence", "tag"} )
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 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 HasOccurrence ¶
HasOccurrence applies the HasEdge predicate on the "occurrence" edge.
func HasOccurrenceWith ¶
func HasOccurrenceWith(preds ...predicate.Occurrence) predicate.Tag
HasOccurrenceWith applies the HasEdge predicate on the "occurrence" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func IsAllergy ¶
IsAllergy applies equality check predicate on the "is_allergy" field. It's identical to IsAllergyEQ.
func IsAllergyEQ ¶
IsAllergyEQ applies the EQ predicate on the "is_allergy" field.
func IsAllergyNEQ ¶
IsAllergyNEQ applies the NEQ predicate on the "is_allergy" 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 PriorityEQ ¶
func PriorityEQ(v schema.TagPriority) predicate.Tag
PriorityEQ applies the EQ predicate on the "priority" field.
func PriorityIn ¶
func PriorityIn(vs ...schema.TagPriority) predicate.Tag
PriorityIn applies the In predicate on the "priority" field.
func PriorityNEQ ¶
func PriorityNEQ(v schema.TagPriority) predicate.Tag
PriorityNEQ applies the NEQ predicate on the "priority" field.
func PriorityNotIn ¶
func PriorityNotIn(vs ...schema.TagPriority) predicate.Tag
PriorityNotIn applies the NotIn predicate on the "priority" field.
func PriorityValidator ¶
func PriorityValidator(pr schema.TagPriority) error
PriorityValidator is a validator for the "priority" field enum values. It is called by the builders before save.
func ShortName ¶
ShortName applies equality check predicate on the "short_name" field. It's identical to ShortNameEQ.
func ShortNameContains ¶
ShortNameContains applies the Contains predicate on the "short_name" field.
func ShortNameContainsFold ¶
ShortNameContainsFold applies the ContainsFold predicate on the "short_name" field.
func ShortNameEQ ¶
ShortNameEQ applies the EQ predicate on the "short_name" field.
func ShortNameEqualFold ¶
ShortNameEqualFold applies the EqualFold predicate on the "short_name" field.
func ShortNameGT ¶
ShortNameGT applies the GT predicate on the "short_name" field.
func ShortNameGTE ¶
ShortNameGTE applies the GTE predicate on the "short_name" field.
func ShortNameHasPrefix ¶
ShortNameHasPrefix applies the HasPrefix predicate on the "short_name" field.
func ShortNameHasSuffix ¶
ShortNameHasSuffix applies the HasSuffix predicate on the "short_name" field.
func ShortNameIn ¶
ShortNameIn applies the In predicate on the "short_name" field.
func ShortNameIsNil ¶
ShortNameIsNil applies the IsNil predicate on the "short_name" field.
func ShortNameLT ¶
ShortNameLT applies the LT predicate on the "short_name" field.
func ShortNameLTE ¶
ShortNameLTE applies the LTE predicate on the "short_name" field.
func ShortNameNEQ ¶
ShortNameNEQ applies the NEQ predicate on the "short_name" field.
func ShortNameNotIn ¶
ShortNameNotIn applies the NotIn predicate on the "short_name" field.
func ShortNameNotNil ¶
ShortNameNotNil applies the NotNil predicate on the "short_name" 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 Tag 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 ByIsAllergy ¶
func ByIsAllergy(opts ...sql.OrderTermOption) OrderOption
ByIsAllergy orders the results by the is_allergy field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOccurrence ¶
func ByOccurrence(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByOccurrence orders the results by occurrence terms.
func ByOccurrenceCount ¶
func ByOccurrenceCount(opts ...sql.OrderTermOption) OrderOption
ByOccurrenceCount orders the results by occurrence count.
func ByPriority ¶
func ByPriority(opts ...sql.OrderTermOption) OrderOption
ByPriority orders the results by the priority field.
func ByShortName ¶
func ByShortName(opts ...sql.OrderTermOption) OrderOption
ByShortName orders the results by the short_name field.