Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Accessory) predicate.Accessory
- func Description(v string) predicate.Accessory
- func DescriptionContains(v string) predicate.Accessory
- func DescriptionContainsFold(v string) predicate.Accessory
- func DescriptionEQ(v string) predicate.Accessory
- func DescriptionEqualFold(v string) predicate.Accessory
- func DescriptionGT(v string) predicate.Accessory
- func DescriptionGTE(v string) predicate.Accessory
- func DescriptionHasPrefix(v string) predicate.Accessory
- func DescriptionHasSuffix(v string) predicate.Accessory
- func DescriptionIn(vs ...string) predicate.Accessory
- func DescriptionLT(v string) predicate.Accessory
- func DescriptionLTE(v string) predicate.Accessory
- func DescriptionNEQ(v string) predicate.Accessory
- func DescriptionNotIn(vs ...string) predicate.Accessory
- func HasInstitution() predicate.Accessory
- func HasInstitutionWith(preds ...predicate.Institution) predicate.Accessory
- func HasRedemptions() predicate.Accessory
- func HasRedemptionsWith(preds ...predicate.Redemption) predicate.Accessory
- func ID(id int) predicate.Accessory
- func IDEQ(id int) predicate.Accessory
- func IDGT(id int) predicate.Accessory
- func IDGTE(id int) predicate.Accessory
- func IDIn(ids ...int) predicate.Accessory
- func IDLT(id int) predicate.Accessory
- func IDLTE(id int) predicate.Accessory
- func IDNEQ(id int) predicate.Accessory
- func IDNotIn(ids ...int) predicate.Accessory
- func Name(v string) predicate.Accessory
- func NameContains(v string) predicate.Accessory
- func NameContainsFold(v string) predicate.Accessory
- func NameEQ(v string) predicate.Accessory
- func NameEqualFold(v string) predicate.Accessory
- func NameGT(v string) predicate.Accessory
- func NameGTE(v string) predicate.Accessory
- func NameHasPrefix(v string) predicate.Accessory
- func NameHasSuffix(v string) predicate.Accessory
- func NameIn(vs ...string) predicate.Accessory
- func NameLT(v string) predicate.Accessory
- func NameLTE(v string) predicate.Accessory
- func NameNEQ(v string) predicate.Accessory
- func NameNotIn(vs ...string) predicate.Accessory
- func Not(p predicate.Accessory) predicate.Accessory
- func Or(predicates ...predicate.Accessory) predicate.Accessory
- func PointsRequired(v int) predicate.Accessory
- func PointsRequiredEQ(v int) predicate.Accessory
- func PointsRequiredGT(v int) predicate.Accessory
- func PointsRequiredGTE(v int) predicate.Accessory
- func PointsRequiredIn(vs ...int) predicate.Accessory
- func PointsRequiredLT(v int) predicate.Accessory
- func PointsRequiredLTE(v int) predicate.Accessory
- func PointsRequiredNEQ(v int) predicate.Accessory
- func PointsRequiredNotIn(vs ...int) predicate.Accessory
- func ValidColumn(column string) bool
- type OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInstitutionField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPointsRequired(opts ...sql.OrderTermOption) OrderOption
- func ByRedemptions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRedemptionsCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the accessory type in the database. Label = "accessory" // 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" // FieldPointsRequired holds the string denoting the points_required field in the database. FieldPointsRequired = "points_required" // EdgeRedemptions holds the string denoting the redemptions edge name in mutations. EdgeRedemptions = "redemptions" // EdgeInstitution holds the string denoting the institution edge name in mutations. EdgeInstitution = "institution" // Table holds the table name of the accessory in the database. Table = "accessories" // RedemptionsTable is the table that holds the redemptions relation/edge. RedemptionsTable = "redemptions" // RedemptionsInverseTable is the table name for the Redemption entity. // It exists in this package in order to avoid circular dependency with the "redemption" package. RedemptionsInverseTable = "redemptions" // RedemptionsColumn is the table column denoting the redemptions relation/edge. RedemptionsColumn = "accessory_redemptions" // InstitutionTable is the table that holds the institution relation/edge. InstitutionTable = "accessories" // InstitutionInverseTable is the table name for the Institution entity. // It exists in this package in order to avoid circular dependency with the "entinstitution" package. InstitutionInverseTable = "institutions" // InstitutionColumn is the table column denoting the institution relation/edge. InstitutionColumn = "institution_accessories" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // PointsRequiredValidator is a validator for the "points_required" field. It is called by the builders before save. PointsRequiredValidator func(int) error )
var Columns = []string{ FieldID, FieldName, FieldDescription, FieldPointsRequired, }
Columns holds all SQL columns for accessory fields.
var ForeignKeys = []string{
"institution_accessories",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "accessories" 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 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 HasInstitution ¶
HasInstitution applies the HasEdge predicate on the "institution" edge.
func HasInstitutionWith ¶
func HasInstitutionWith(preds ...predicate.Institution) predicate.Accessory
HasInstitutionWith applies the HasEdge predicate on the "institution" edge with a given conditions (other predicates).
func HasRedemptions ¶
HasRedemptions applies the HasEdge predicate on the "redemptions" edge.
func HasRedemptionsWith ¶
func HasRedemptionsWith(preds ...predicate.Redemption) predicate.Accessory
HasRedemptionsWith applies the HasEdge predicate on the "redemptions" 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 PointsRequired ¶
PointsRequired applies equality check predicate on the "points_required" field. It's identical to PointsRequiredEQ.
func PointsRequiredEQ ¶
PointsRequiredEQ applies the EQ predicate on the "points_required" field.
func PointsRequiredGT ¶
PointsRequiredGT applies the GT predicate on the "points_required" field.
func PointsRequiredGTE ¶
PointsRequiredGTE applies the GTE predicate on the "points_required" field.
func PointsRequiredIn ¶
PointsRequiredIn applies the In predicate on the "points_required" field.
func PointsRequiredLT ¶
PointsRequiredLT applies the LT predicate on the "points_required" field.
func PointsRequiredLTE ¶
PointsRequiredLTE applies the LTE predicate on the "points_required" field.
func PointsRequiredNEQ ¶
PointsRequiredNEQ applies the NEQ predicate on the "points_required" field.
func PointsRequiredNotIn ¶
PointsRequiredNotIn applies the NotIn predicate on the "points_required" 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 Accessory 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 ByInstitutionField ¶
func ByInstitutionField(field string, opts ...sql.OrderTermOption) OrderOption
ByInstitutionField orders the results by institution field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPointsRequired ¶
func ByPointsRequired(opts ...sql.OrderTermOption) OrderOption
ByPointsRequired orders the results by the points_required field.
func ByRedemptions ¶
func ByRedemptions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRedemptions orders the results by redemptions terms.
func ByRedemptionsCount ¶
func ByRedemptionsCount(opts ...sql.OrderTermOption) OrderOption
ByRedemptionsCount orders the results by redemptions count.