Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.RuleSection) predicate.RuleSection
- func Desc(v string) predicate.RuleSection
- func DescContains(v string) predicate.RuleSection
- func DescContainsFold(v string) predicate.RuleSection
- func DescEQ(v string) predicate.RuleSection
- func DescEqualFold(v string) predicate.RuleSection
- func DescGT(v string) predicate.RuleSection
- func DescGTE(v string) predicate.RuleSection
- func DescHasPrefix(v string) predicate.RuleSection
- func DescHasSuffix(v string) predicate.RuleSection
- func DescIn(vs ...string) predicate.RuleSection
- func DescLT(v string) predicate.RuleSection
- func DescLTE(v string) predicate.RuleSection
- func DescNEQ(v string) predicate.RuleSection
- func DescNotIn(vs ...string) predicate.RuleSection
- func HasRules() predicate.RuleSection
- func HasRulesWith(preds ...predicate.Rule) predicate.RuleSection
- func ID(id int) predicate.RuleSection
- func IDEQ(id int) predicate.RuleSection
- func IDGT(id int) predicate.RuleSection
- func IDGTE(id int) predicate.RuleSection
- func IDIn(ids ...int) predicate.RuleSection
- func IDLT(id int) predicate.RuleSection
- func IDLTE(id int) predicate.RuleSection
- func IDNEQ(id int) predicate.RuleSection
- func IDNotIn(ids ...int) predicate.RuleSection
- func Indx(v string) predicate.RuleSection
- func IndxContains(v string) predicate.RuleSection
- func IndxContainsFold(v string) predicate.RuleSection
- func IndxEQ(v string) predicate.RuleSection
- func IndxEqualFold(v string) predicate.RuleSection
- func IndxGT(v string) predicate.RuleSection
- func IndxGTE(v string) predicate.RuleSection
- func IndxHasPrefix(v string) predicate.RuleSection
- func IndxHasSuffix(v string) predicate.RuleSection
- func IndxIn(vs ...string) predicate.RuleSection
- func IndxLT(v string) predicate.RuleSection
- func IndxLTE(v string) predicate.RuleSection
- func IndxNEQ(v string) predicate.RuleSection
- func IndxNotIn(vs ...string) predicate.RuleSection
- func Name(v string) predicate.RuleSection
- func NameContains(v string) predicate.RuleSection
- func NameContainsFold(v string) predicate.RuleSection
- func NameEQ(v string) predicate.RuleSection
- func NameEqualFold(v string) predicate.RuleSection
- func NameGT(v string) predicate.RuleSection
- func NameGTE(v string) predicate.RuleSection
- func NameHasPrefix(v string) predicate.RuleSection
- func NameHasSuffix(v string) predicate.RuleSection
- func NameIn(vs ...string) predicate.RuleSection
- func NameLT(v string) predicate.RuleSection
- func NameLTE(v string) predicate.RuleSection
- func NameNEQ(v string) predicate.RuleSection
- func NameNotIn(vs ...string) predicate.RuleSection
- func Not(p predicate.RuleSection) predicate.RuleSection
- func Or(predicates ...predicate.RuleSection) predicate.RuleSection
- func ValidColumn(column string) bool
- type OrderOption
- func ByDesc(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIndx(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByRules(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRulesCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the rulesection type in the database. Label = "rule_section" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldIndx holds the string denoting the indx field in the database. FieldIndx = "indx" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDesc holds the string denoting the desc field in the database. FieldDesc = "desc" // EdgeRules holds the string denoting the rules edge name in mutations. EdgeRules = "rules" // Table holds the table name of the rulesection in the database. Table = "rule_sections" // RulesTable is the table that holds the rules relation/edge. The primary key declared below. RulesTable = "rule_rule_sections" // RulesInverseTable is the table name for the Rule entity. // It exists in this package in order to avoid circular dependency with the "rule" package. RulesInverseTable = "rules" )
Variables ¶
var ( // IndxValidator is a validator for the "indx" field. It is called by the builders before save. IndxValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
Columns holds all SQL columns for rulesection fields.
var ( // RulesPrimaryKey and RulesColumn2 are the table columns denoting the // primary key for the rules relation (M2M). RulesPrimaryKey = []string{"rule_id", "rule_section_id"} )
Functions ¶
func And ¶
func And(predicates ...predicate.RuleSection) predicate.RuleSection
And groups predicates with the AND operator between them.
func Desc ¶
func Desc(v string) predicate.RuleSection
Desc applies equality check predicate on the "desc" field. It's identical to DescEQ.
func DescContains ¶
func DescContains(v string) predicate.RuleSection
DescContains applies the Contains predicate on the "desc" field.
func DescContainsFold ¶
func DescContainsFold(v string) predicate.RuleSection
DescContainsFold applies the ContainsFold predicate on the "desc" field.
func DescEQ ¶
func DescEQ(v string) predicate.RuleSection
DescEQ applies the EQ predicate on the "desc" field.
func DescEqualFold ¶
func DescEqualFold(v string) predicate.RuleSection
DescEqualFold applies the EqualFold predicate on the "desc" field.
func DescGT ¶
func DescGT(v string) predicate.RuleSection
DescGT applies the GT predicate on the "desc" field.
func DescGTE ¶
func DescGTE(v string) predicate.RuleSection
DescGTE applies the GTE predicate on the "desc" field.
func DescHasPrefix ¶
func DescHasPrefix(v string) predicate.RuleSection
DescHasPrefix applies the HasPrefix predicate on the "desc" field.
func DescHasSuffix ¶
func DescHasSuffix(v string) predicate.RuleSection
DescHasSuffix applies the HasSuffix predicate on the "desc" field.
func DescIn ¶
func DescIn(vs ...string) predicate.RuleSection
DescIn applies the In predicate on the "desc" field.
func DescLT ¶
func DescLT(v string) predicate.RuleSection
DescLT applies the LT predicate on the "desc" field.
func DescLTE ¶
func DescLTE(v string) predicate.RuleSection
DescLTE applies the LTE predicate on the "desc" field.
func DescNEQ ¶
func DescNEQ(v string) predicate.RuleSection
DescNEQ applies the NEQ predicate on the "desc" field.
func DescNotIn ¶
func DescNotIn(vs ...string) predicate.RuleSection
DescNotIn applies the NotIn predicate on the "desc" field.
func HasRules ¶
func HasRules() predicate.RuleSection
HasRules applies the HasEdge predicate on the "rules" edge.
func HasRulesWith ¶
func HasRulesWith(preds ...predicate.Rule) predicate.RuleSection
HasRulesWith applies the HasEdge predicate on the "rules" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.RuleSection
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.RuleSection
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.RuleSection
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.RuleSection
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.RuleSection
IDNotIn applies the NotIn predicate on the ID field.
func Indx ¶
func Indx(v string) predicate.RuleSection
Indx applies equality check predicate on the "indx" field. It's identical to IndxEQ.
func IndxContains ¶
func IndxContains(v string) predicate.RuleSection
IndxContains applies the Contains predicate on the "indx" field.
func IndxContainsFold ¶
func IndxContainsFold(v string) predicate.RuleSection
IndxContainsFold applies the ContainsFold predicate on the "indx" field.
func IndxEQ ¶
func IndxEQ(v string) predicate.RuleSection
IndxEQ applies the EQ predicate on the "indx" field.
func IndxEqualFold ¶
func IndxEqualFold(v string) predicate.RuleSection
IndxEqualFold applies the EqualFold predicate on the "indx" field.
func IndxGT ¶
func IndxGT(v string) predicate.RuleSection
IndxGT applies the GT predicate on the "indx" field.
func IndxGTE ¶
func IndxGTE(v string) predicate.RuleSection
IndxGTE applies the GTE predicate on the "indx" field.
func IndxHasPrefix ¶
func IndxHasPrefix(v string) predicate.RuleSection
IndxHasPrefix applies the HasPrefix predicate on the "indx" field.
func IndxHasSuffix ¶
func IndxHasSuffix(v string) predicate.RuleSection
IndxHasSuffix applies the HasSuffix predicate on the "indx" field.
func IndxIn ¶
func IndxIn(vs ...string) predicate.RuleSection
IndxIn applies the In predicate on the "indx" field.
func IndxLT ¶
func IndxLT(v string) predicate.RuleSection
IndxLT applies the LT predicate on the "indx" field.
func IndxLTE ¶
func IndxLTE(v string) predicate.RuleSection
IndxLTE applies the LTE predicate on the "indx" field.
func IndxNEQ ¶
func IndxNEQ(v string) predicate.RuleSection
IndxNEQ applies the NEQ predicate on the "indx" field.
func IndxNotIn ¶
func IndxNotIn(vs ...string) predicate.RuleSection
IndxNotIn applies the NotIn predicate on the "indx" field.
func Name ¶
func Name(v string) predicate.RuleSection
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.RuleSection
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.RuleSection
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.RuleSection
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.RuleSection
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.RuleSection
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.RuleSection
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.RuleSection
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.RuleSection
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.RuleSection
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.RuleSection
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.RuleSection
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.RuleSection
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.RuleSection
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.RuleSection) predicate.RuleSection
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.RuleSection) predicate.RuleSection
Or groups predicates with the OR operator between them.
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 RuleSection queries.
func ByDesc ¶
func ByDesc(opts ...sql.OrderTermOption) OrderOption
ByDesc orders the results by the desc field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIndx ¶
func ByIndx(opts ...sql.OrderTermOption) OrderOption
ByIndx orders the results by the indx field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByRules ¶
func ByRules(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRules orders the results by rules terms.
func ByRulesCount ¶
func ByRulesCount(opts ...sql.OrderTermOption) OrderOption
ByRulesCount orders the results by rules count.