Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.RuleChan) predicate.RuleChan
- func CreatedAt(v time.Time) predicate.RuleChan
- func CreatedAtEQ(v time.Time) predicate.RuleChan
- func CreatedAtGT(v time.Time) predicate.RuleChan
- func CreatedAtGTE(v time.Time) predicate.RuleChan
- func CreatedAtIn(vs ...time.Time) predicate.RuleChan
- func CreatedAtLT(v time.Time) predicate.RuleChan
- func CreatedAtLTE(v time.Time) predicate.RuleChan
- func CreatedAtNEQ(v time.Time) predicate.RuleChan
- func CreatedAtNotIn(vs ...time.Time) predicate.RuleChan
- func Description(v string) predicate.RuleChan
- func DescriptionContains(v string) predicate.RuleChan
- func DescriptionContainsFold(v string) predicate.RuleChan
- func DescriptionEQ(v string) predicate.RuleChan
- func DescriptionEqualFold(v string) predicate.RuleChan
- func DescriptionGT(v string) predicate.RuleChan
- func DescriptionGTE(v string) predicate.RuleChan
- func DescriptionHasPrefix(v string) predicate.RuleChan
- func DescriptionHasSuffix(v string) predicate.RuleChan
- func DescriptionIn(vs ...string) predicate.RuleChan
- func DescriptionLT(v string) predicate.RuleChan
- func DescriptionLTE(v string) predicate.RuleChan
- func DescriptionNEQ(v string) predicate.RuleChan
- func DescriptionNotIn(vs ...string) predicate.RuleChan
- func HasRules() predicate.RuleChan
- func HasRulesWith(preds ...predicate.RuleNode) predicate.RuleChan
- func HasSessions() predicate.RuleChan
- func HasSessionsWith(preds ...predicate.Session) predicate.RuleChan
- func ID(id uint64) predicate.RuleChan
- func IDEQ(id uint64) predicate.RuleChan
- func IDGT(id uint64) predicate.RuleChan
- func IDGTE(id uint64) predicate.RuleChan
- func IDIn(ids ...uint64) predicate.RuleChan
- func IDLT(id uint64) predicate.RuleChan
- func IDLTE(id uint64) predicate.RuleChan
- func IDNEQ(id uint64) predicate.RuleChan
- func IDNotIn(ids ...uint64) predicate.RuleChan
- func Infinite(v bool) predicate.RuleChan
- func InfiniteEQ(v bool) predicate.RuleChan
- func InfiniteNEQ(v bool) predicate.RuleChan
- func Name(v string) predicate.RuleChan
- func NameContains(v string) predicate.RuleChan
- func NameContainsFold(v string) predicate.RuleChan
- func NameEQ(v string) predicate.RuleChan
- func NameEqualFold(v string) predicate.RuleChan
- func NameGT(v string) predicate.RuleChan
- func NameGTE(v string) predicate.RuleChan
- func NameHasPrefix(v string) predicate.RuleChan
- func NameHasSuffix(v string) predicate.RuleChan
- func NameIn(vs ...string) predicate.RuleChan
- func NameLT(v string) predicate.RuleChan
- func NameLTE(v string) predicate.RuleChan
- func NameNEQ(v string) predicate.RuleChan
- func NameNotIn(vs ...string) predicate.RuleChan
- func Not(p predicate.RuleChan) predicate.RuleChan
- func Or(predicates ...predicate.RuleChan) predicate.RuleChan
- func RootNode(v string) predicate.RuleChan
- func RootNodeContains(v string) predicate.RuleChan
- func RootNodeContainsFold(v string) predicate.RuleChan
- func RootNodeEQ(v string) predicate.RuleChan
- func RootNodeEqualFold(v string) predicate.RuleChan
- func RootNodeGT(v string) predicate.RuleChan
- func RootNodeGTE(v string) predicate.RuleChan
- func RootNodeHasPrefix(v string) predicate.RuleChan
- func RootNodeHasSuffix(v string) predicate.RuleChan
- func RootNodeIn(vs ...string) predicate.RuleChan
- func RootNodeLT(v string) predicate.RuleChan
- func RootNodeLTE(v string) predicate.RuleChan
- func RootNodeNEQ(v string) predicate.RuleChan
- func RootNodeNotIn(vs ...string) predicate.RuleChan
- func StatusEQ(v Status) predicate.RuleChan
- func StatusIn(vs ...Status) predicate.RuleChan
- func StatusNEQ(v Status) predicate.RuleChan
- func StatusNotIn(vs ...Status) predicate.RuleChan
- func StatusValidator(s Status) error
- func UpdatedAt(v time.Time) predicate.RuleChan
- func UpdatedAtEQ(v time.Time) predicate.RuleChan
- func UpdatedAtGT(v time.Time) predicate.RuleChan
- func UpdatedAtGTE(v time.Time) predicate.RuleChan
- func UpdatedAtIn(vs ...time.Time) predicate.RuleChan
- func UpdatedAtLT(v time.Time) predicate.RuleChan
- func UpdatedAtLTE(v time.Time) predicate.RuleChan
- func UpdatedAtNEQ(v time.Time) predicate.RuleChan
- func UpdatedAtNotIn(vs ...time.Time) predicate.RuleChan
- func ValidColumn(column string) bool
- type Status
Constants ¶
const ( // Label holds the string label denoting the rulechan type in the database. Label = "rule_chan" // 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" // FieldRootNode holds the string denoting the root_node field in the database. FieldRootNode = "root_node" // FieldInfinite holds the string denoting the infinite field in the database. FieldInfinite = "infinite" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // EdgeRules holds the string denoting the rules edge name in mutations. EdgeRules = "rules" // EdgeSessions holds the string denoting the sessions edge name in mutations. EdgeSessions = "sessions" // Table holds the table name of the rulechan in the database. Table = "rule_chan" // RulesTable is the table that holds the rules relation/edge. RulesTable = "rule_nodes" // RulesInverseTable is the table name for the RuleNode entity. // It exists in this package in order to avoid circular dependency with the "rulenode" package. RulesInverseTable = "rule_nodes" // RulesColumn is the table column denoting the rules relation/edge. RulesColumn = "chain_id" // SessionsTable is the table that holds the sessions relation/edge. SessionsTable = "sessions" // SessionsInverseTable is the table name for the Session entity. // It exists in this package in order to avoid circular dependency with the "session" package. SessionsInverseTable = "sessions" // SessionsColumn is the table column denoting the sessions relation/edge. SessionsColumn = "chain_id" )
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 // RootNodeValidator is a validator for the "root_node" field. It is called by the builders before save. RootNodeValidator func(string) error // DefaultInfinite holds the default value on creation for the "infinite" field. DefaultInfinite bool // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time )
var Columns = []string{ FieldID, FieldName, FieldDescription, FieldRootNode, FieldInfinite, FieldStatus, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for rulechan fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
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 HasRulesWith ¶
HasRulesWith applies the HasEdge predicate on the "rules" edge with a given conditions (other predicates).
func HasSessions ¶
HasSessions applies the HasEdge predicate on the "sessions" edge.
func HasSessionsWith ¶
HasSessionsWith applies the HasEdge predicate on the "sessions" edge with a given conditions (other predicates).
func Infinite ¶
Infinite applies equality check predicate on the "infinite" field. It's identical to InfiniteEQ.
func InfiniteEQ ¶
InfiniteEQ applies the EQ predicate on the "infinite" field.
func InfiniteNEQ ¶
InfiniteNEQ applies the NEQ predicate on the "infinite" 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 RootNode ¶
RootNode applies equality check predicate on the "root_node" field. It's identical to RootNodeEQ.
func RootNodeContains ¶
RootNodeContains applies the Contains predicate on the "root_node" field.
func RootNodeContainsFold ¶
RootNodeContainsFold applies the ContainsFold predicate on the "root_node" field.
func RootNodeEQ ¶
RootNodeEQ applies the EQ predicate on the "root_node" field.
func RootNodeEqualFold ¶
RootNodeEqualFold applies the EqualFold predicate on the "root_node" field.
func RootNodeGT ¶
RootNodeGT applies the GT predicate on the "root_node" field.
func RootNodeGTE ¶
RootNodeGTE applies the GTE predicate on the "root_node" field.
func RootNodeHasPrefix ¶
RootNodeHasPrefix applies the HasPrefix predicate on the "root_node" field.
func RootNodeHasSuffix ¶
RootNodeHasSuffix applies the HasSuffix predicate on the "root_node" field.
func RootNodeIn ¶
RootNodeIn applies the In predicate on the "root_node" field.
func RootNodeLT ¶
RootNodeLT applies the LT predicate on the "root_node" field.
func RootNodeLTE ¶
RootNodeLTE applies the LTE predicate on the "root_node" field.
func RootNodeNEQ ¶
RootNodeNEQ applies the NEQ predicate on the "root_node" field.
func RootNodeNotIn ¶
RootNodeNotIn applies the NotIn predicate on the "root_node" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).