Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.RuleNode) predicate.RuleNode
- func ChainID(v uint64) predicate.RuleNode
- func ChainIDEQ(v uint64) predicate.RuleNode
- func ChainIDIn(vs ...uint64) predicate.RuleNode
- func ChainIDIsNil() predicate.RuleNode
- func ChainIDNEQ(v uint64) predicate.RuleNode
- func ChainIDNotIn(vs ...uint64) predicate.RuleNode
- func ChainIDNotNil() predicate.RuleNode
- func CreatedAt(v time.Time) predicate.RuleNode
- func CreatedAtEQ(v time.Time) predicate.RuleNode
- func CreatedAtGT(v time.Time) predicate.RuleNode
- func CreatedAtGTE(v time.Time) predicate.RuleNode
- func CreatedAtIn(vs ...time.Time) predicate.RuleNode
- func CreatedAtLT(v time.Time) predicate.RuleNode
- func CreatedAtLTE(v time.Time) predicate.RuleNode
- func CreatedAtNEQ(v time.Time) predicate.RuleNode
- func CreatedAtNotIn(vs ...time.Time) predicate.RuleNode
- func Debug(v bool) predicate.RuleNode
- func DebugEQ(v bool) predicate.RuleNode
- func DebugNEQ(v bool) predicate.RuleNode
- func End(v bool) predicate.RuleNode
- func EndEQ(v bool) predicate.RuleNode
- func EndNEQ(v bool) predicate.RuleNode
- func HasChain() predicate.RuleNode
- func HasChainWith(preds ...predicate.RuleChan) predicate.RuleNode
- func ID(id uint64) predicate.RuleNode
- func IDEQ(id uint64) predicate.RuleNode
- func IDGT(id uint64) predicate.RuleNode
- func IDGTE(id uint64) predicate.RuleNode
- func IDIn(ids ...uint64) predicate.RuleNode
- func IDLT(id uint64) predicate.RuleNode
- func IDLTE(id uint64) predicate.RuleNode
- func IDNEQ(id uint64) predicate.RuleNode
- func IDNotIn(ids ...uint64) predicate.RuleNode
- func Infinite(v bool) predicate.RuleNode
- func InfiniteEQ(v bool) predicate.RuleNode
- func InfiniteNEQ(v bool) predicate.RuleNode
- func NodeID(v string) predicate.RuleNode
- func NodeIDContains(v string) predicate.RuleNode
- func NodeIDContainsFold(v string) predicate.RuleNode
- func NodeIDEQ(v string) predicate.RuleNode
- func NodeIDEqualFold(v string) predicate.RuleNode
- func NodeIDGT(v string) predicate.RuleNode
- func NodeIDGTE(v string) predicate.RuleNode
- func NodeIDHasPrefix(v string) predicate.RuleNode
- func NodeIDHasSuffix(v string) predicate.RuleNode
- func NodeIDIn(vs ...string) predicate.RuleNode
- func NodeIDLT(v string) predicate.RuleNode
- func NodeIDLTE(v string) predicate.RuleNode
- func NodeIDNEQ(v string) predicate.RuleNode
- func NodeIDNotIn(vs ...string) predicate.RuleNode
- func Not(p predicate.RuleNode) predicate.RuleNode
- func Or(predicates ...predicate.RuleNode) predicate.RuleNode
- func UpdatedAt(v time.Time) predicate.RuleNode
- func UpdatedAtEQ(v time.Time) predicate.RuleNode
- func UpdatedAtGT(v time.Time) predicate.RuleNode
- func UpdatedAtGTE(v time.Time) predicate.RuleNode
- func UpdatedAtIn(vs ...time.Time) predicate.RuleNode
- func UpdatedAtLT(v time.Time) predicate.RuleNode
- func UpdatedAtLTE(v time.Time) predicate.RuleNode
- func UpdatedAtNEQ(v time.Time) predicate.RuleNode
- func UpdatedAtNotIn(vs ...time.Time) predicate.RuleNode
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the rulenode type in the database. Label = "rule_node" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldChainID holds the string denoting the chain_id field in the database. FieldChainID = "chain_id" // FieldNodeID holds the string denoting the node_id field in the database. FieldNodeID = "node_id" // FieldOption holds the string denoting the option field in the database. FieldOption = "option" // FieldInfinite holds the string denoting the infinite field in the database. FieldInfinite = "infinite" // FieldDebug holds the string denoting the debug field in the database. FieldDebug = "debug" // FieldEnd holds the string denoting the end field in the database. FieldEnd = "end" // 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" // EdgeChain holds the string denoting the chain edge name in mutations. EdgeChain = "chain" // Table holds the table name of the rulenode in the database. Table = "rule_nodes" // ChainTable is the table that holds the chain relation/edge. ChainTable = "rule_nodes" // ChainInverseTable is the table name for the RuleChan entity. // It exists in this package in order to avoid circular dependency with the "rulechan" package. ChainInverseTable = "rule_chan" // ChainColumn is the table column denoting the chain relation/edge. ChainColumn = "chain_id" )
Variables ¶
var ( // NodeIDValidator is a validator for the "node_id" field. It is called by the builders before save. NodeIDValidator func(string) error // DefaultOption holds the default value on creation for the "option" field. DefaultOption map[string]interface{} // DefaultInfinite holds the default value on creation for the "infinite" field. DefaultInfinite bool // DefaultDebug holds the default value on creation for the "debug" field. DefaultDebug bool // DefaultEnd holds the default value on creation for the "end" field. DefaultEnd 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, FieldChainID, FieldNodeID, FieldOption, FieldInfinite, FieldDebug, FieldEnd, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for rulenode fields.
Functions ¶
func ChainID ¶
ChainID applies equality check predicate on the "chain_id" field. It's identical to ChainIDEQ.
func ChainIDIsNil ¶
ChainIDIsNil applies the IsNil predicate on the "chain_id" field.
func ChainIDNEQ ¶
ChainIDNEQ applies the NEQ predicate on the "chain_id" field.
func ChainIDNotIn ¶
ChainIDNotIn applies the NotIn predicate on the "chain_id" field.
func ChainIDNotNil ¶
ChainIDNotNil applies the NotNil predicate on the "chain_id" field.
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 Debug ¶
Debug applies equality check predicate on the "debug" field. It's identical to DebugEQ.
func HasChainWith ¶
HasChainWith applies the HasEdge predicate on the "chain" 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 NodeID ¶
NodeID applies equality check predicate on the "node_id" field. It's identical to NodeIDEQ.
func NodeIDContains ¶
NodeIDContains applies the Contains predicate on the "node_id" field.
func NodeIDContainsFold ¶
NodeIDContainsFold applies the ContainsFold predicate on the "node_id" field.
func NodeIDEqualFold ¶
NodeIDEqualFold applies the EqualFold predicate on the "node_id" field.
func NodeIDHasPrefix ¶
NodeIDHasPrefix applies the HasPrefix predicate on the "node_id" field.
func NodeIDHasSuffix ¶
NodeIDHasSuffix applies the HasSuffix predicate on the "node_id" field.
func NodeIDNotIn ¶
NodeIDNotIn applies the NotIn predicate on the "node_id" field.
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).
Types ¶
This section is empty.