Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ResourceComponentRelationship) predicate.ResourceComponentRelationship
- func CreateTime(v time.Time) predicate.ResourceComponentRelationship
- func CreateTimeEQ(v time.Time) predicate.ResourceComponentRelationship
- func CreateTimeGT(v time.Time) predicate.ResourceComponentRelationship
- func CreateTimeGTE(v time.Time) predicate.ResourceComponentRelationship
- func CreateTimeIn(vs ...time.Time) predicate.ResourceComponentRelationship
- func CreateTimeLT(v time.Time) predicate.ResourceComponentRelationship
- func CreateTimeLTE(v time.Time) predicate.ResourceComponentRelationship
- func CreateTimeNEQ(v time.Time) predicate.ResourceComponentRelationship
- func CreateTimeNotIn(vs ...time.Time) predicate.ResourceComponentRelationship
- func DependencyID(v object.ID) predicate.ResourceComponentRelationship
- func DependencyIDContains(v object.ID) predicate.ResourceComponentRelationship
- func DependencyIDContainsFold(v object.ID) predicate.ResourceComponentRelationship
- func DependencyIDEQ(v object.ID) predicate.ResourceComponentRelationship
- func DependencyIDEqualFold(v object.ID) predicate.ResourceComponentRelationship
- func DependencyIDGT(v object.ID) predicate.ResourceComponentRelationship
- func DependencyIDGTE(v object.ID) predicate.ResourceComponentRelationship
- func DependencyIDHasPrefix(v object.ID) predicate.ResourceComponentRelationship
- func DependencyIDHasSuffix(v object.ID) predicate.ResourceComponentRelationship
- func DependencyIDIn(vs ...object.ID) predicate.ResourceComponentRelationship
- func DependencyIDLT(v object.ID) predicate.ResourceComponentRelationship
- func DependencyIDLTE(v object.ID) predicate.ResourceComponentRelationship
- func DependencyIDNEQ(v object.ID) predicate.ResourceComponentRelationship
- func DependencyIDNotIn(vs ...object.ID) predicate.ResourceComponentRelationship
- func HasDependency() predicate.ResourceComponentRelationship
- func HasDependencyWith(preds ...predicate.ResourceComponent) predicate.ResourceComponentRelationship
- func HasResourceComponent() predicate.ResourceComponentRelationship
- func HasResourceComponentWith(preds ...predicate.ResourceComponent) predicate.ResourceComponentRelationship
- func ID(id object.ID) predicate.ResourceComponentRelationship
- func IDEQ(id object.ID) predicate.ResourceComponentRelationship
- func IDGT(id object.ID) predicate.ResourceComponentRelationship
- func IDGTE(id object.ID) predicate.ResourceComponentRelationship
- func IDIn(ids ...object.ID) predicate.ResourceComponentRelationship
- func IDLT(id object.ID) predicate.ResourceComponentRelationship
- func IDLTE(id object.ID) predicate.ResourceComponentRelationship
- func IDNEQ(id object.ID) predicate.ResourceComponentRelationship
- func IDNotIn(ids ...object.ID) predicate.ResourceComponentRelationship
- func Not(p predicate.ResourceComponentRelationship) predicate.ResourceComponentRelationship
- func Or(predicates ...predicate.ResourceComponentRelationship) predicate.ResourceComponentRelationship
- func ResourceComponentID(v object.ID) predicate.ResourceComponentRelationship
- func ResourceComponentIDContains(v object.ID) predicate.ResourceComponentRelationship
- func ResourceComponentIDContainsFold(v object.ID) predicate.ResourceComponentRelationship
- func ResourceComponentIDEQ(v object.ID) predicate.ResourceComponentRelationship
- func ResourceComponentIDEqualFold(v object.ID) predicate.ResourceComponentRelationship
- func ResourceComponentIDGT(v object.ID) predicate.ResourceComponentRelationship
- func ResourceComponentIDGTE(v object.ID) predicate.ResourceComponentRelationship
- func ResourceComponentIDHasPrefix(v object.ID) predicate.ResourceComponentRelationship
- func ResourceComponentIDHasSuffix(v object.ID) predicate.ResourceComponentRelationship
- func ResourceComponentIDIn(vs ...object.ID) predicate.ResourceComponentRelationship
- func ResourceComponentIDLT(v object.ID) predicate.ResourceComponentRelationship
- func ResourceComponentIDLTE(v object.ID) predicate.ResourceComponentRelationship
- func ResourceComponentIDNEQ(v object.ID) predicate.ResourceComponentRelationship
- func ResourceComponentIDNotIn(vs ...object.ID) predicate.ResourceComponentRelationship
- func Type(v string) predicate.ResourceComponentRelationship
- func TypeContains(v string) predicate.ResourceComponentRelationship
- func TypeContainsFold(v string) predicate.ResourceComponentRelationship
- func TypeEQ(v string) predicate.ResourceComponentRelationship
- func TypeEqualFold(v string) predicate.ResourceComponentRelationship
- func TypeGT(v string) predicate.ResourceComponentRelationship
- func TypeGTE(v string) predicate.ResourceComponentRelationship
- func TypeHasPrefix(v string) predicate.ResourceComponentRelationship
- func TypeHasSuffix(v string) predicate.ResourceComponentRelationship
- func TypeIn(vs ...string) predicate.ResourceComponentRelationship
- func TypeLT(v string) predicate.ResourceComponentRelationship
- func TypeLTE(v string) predicate.ResourceComponentRelationship
- func TypeNEQ(v string) predicate.ResourceComponentRelationship
- func TypeNotIn(vs ...string) predicate.ResourceComponentRelationship
- func ValidColumn(column string) bool
- func WithoutFields(ignores ...string) []string
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDependencyField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByDependencyID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByResourceComponentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByResourceComponentID(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the resourcecomponentrelationship type in the database. Label = "resource_component_relationship" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldResourceComponentID holds the string denoting the resource_component_id field in the database. FieldResourceComponentID = "resource_component_id" // FieldDependencyID holds the string denoting the dependency_id field in the database. FieldDependencyID = "dependency_id" // FieldType holds the string denoting the type field in the database. FieldType = "type" // EdgeResourceComponent holds the string denoting the resource_component edge name in mutations. EdgeResourceComponent = "resource_component" // EdgeDependency holds the string denoting the dependency edge name in mutations. EdgeDependency = "dependency" // Table holds the table name of the resourcecomponentrelationship in the database. Table = "resource_component_relationships" // ResourceComponentTable is the table that holds the resource_component relation/edge. ResourceComponentTable = "resource_component_relationships" // ResourceComponentInverseTable is the table name for the ResourceComponent entity. // It exists in this package in order to avoid circular dependency with the "resourcecomponent" package. ResourceComponentInverseTable = "resource_components" // ResourceComponentColumn is the table column denoting the resource_component relation/edge. ResourceComponentColumn = "resource_component_id" // DependencyTable is the table that holds the dependency relation/edge. DependencyTable = "resource_component_relationships" // DependencyInverseTable is the table name for the ResourceComponent entity. // It exists in this package in order to avoid circular dependency with the "resourcecomponent" package. DependencyInverseTable = "resource_components" // DependencyColumn is the table column denoting the dependency relation/edge. DependencyColumn = "dependency_id" )
Variables ¶
var ( Hooks [1]ent.Hook // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // ResourceComponentIDValidator is a validator for the "resource_component_id" field. It is called by the builders before save. ResourceComponentIDValidator func(string) error // DependencyIDValidator is a validator for the "dependency_id" field. It is called by the builders before save. DependencyIDValidator func(string) error // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/seal-io/walrus/pkg/dao/model/runtime"
var Columns = []string{ FieldID, FieldCreateTime, FieldResourceComponentID, FieldDependencyID, FieldType, }
Columns holds all SQL columns for resourcecomponentrelationship fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ResourceComponentRelationship) predicate.ResourceComponentRelationship
And groups predicates with the AND operator between them.
func CreateTime ¶
func CreateTime(v time.Time) predicate.ResourceComponentRelationship
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.ResourceComponentRelationship
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.ResourceComponentRelationship
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.ResourceComponentRelationship
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.ResourceComponentRelationship
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.ResourceComponentRelationship
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.ResourceComponentRelationship
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.ResourceComponentRelationship
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
func CreateTimeNotIn(vs ...time.Time) predicate.ResourceComponentRelationship
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func DependencyID ¶
func DependencyID(v object.ID) predicate.ResourceComponentRelationship
DependencyID applies equality check predicate on the "dependency_id" field. It's identical to DependencyIDEQ.
func DependencyIDContains ¶
func DependencyIDContains(v object.ID) predicate.ResourceComponentRelationship
DependencyIDContains applies the Contains predicate on the "dependency_id" field.
func DependencyIDContainsFold ¶
func DependencyIDContainsFold(v object.ID) predicate.ResourceComponentRelationship
DependencyIDContainsFold applies the ContainsFold predicate on the "dependency_id" field.
func DependencyIDEQ ¶
func DependencyIDEQ(v object.ID) predicate.ResourceComponentRelationship
DependencyIDEQ applies the EQ predicate on the "dependency_id" field.
func DependencyIDEqualFold ¶
func DependencyIDEqualFold(v object.ID) predicate.ResourceComponentRelationship
DependencyIDEqualFold applies the EqualFold predicate on the "dependency_id" field.
func DependencyIDGT ¶
func DependencyIDGT(v object.ID) predicate.ResourceComponentRelationship
DependencyIDGT applies the GT predicate on the "dependency_id" field.
func DependencyIDGTE ¶
func DependencyIDGTE(v object.ID) predicate.ResourceComponentRelationship
DependencyIDGTE applies the GTE predicate on the "dependency_id" field.
func DependencyIDHasPrefix ¶
func DependencyIDHasPrefix(v object.ID) predicate.ResourceComponentRelationship
DependencyIDHasPrefix applies the HasPrefix predicate on the "dependency_id" field.
func DependencyIDHasSuffix ¶
func DependencyIDHasSuffix(v object.ID) predicate.ResourceComponentRelationship
DependencyIDHasSuffix applies the HasSuffix predicate on the "dependency_id" field.
func DependencyIDIn ¶
func DependencyIDIn(vs ...object.ID) predicate.ResourceComponentRelationship
DependencyIDIn applies the In predicate on the "dependency_id" field.
func DependencyIDLT ¶
func DependencyIDLT(v object.ID) predicate.ResourceComponentRelationship
DependencyIDLT applies the LT predicate on the "dependency_id" field.
func DependencyIDLTE ¶
func DependencyIDLTE(v object.ID) predicate.ResourceComponentRelationship
DependencyIDLTE applies the LTE predicate on the "dependency_id" field.
func DependencyIDNEQ ¶
func DependencyIDNEQ(v object.ID) predicate.ResourceComponentRelationship
DependencyIDNEQ applies the NEQ predicate on the "dependency_id" field.
func DependencyIDNotIn ¶
func DependencyIDNotIn(vs ...object.ID) predicate.ResourceComponentRelationship
DependencyIDNotIn applies the NotIn predicate on the "dependency_id" field.
func HasDependency ¶
func HasDependency() predicate.ResourceComponentRelationship
HasDependency applies the HasEdge predicate on the "dependency" edge.
func HasDependencyWith ¶
func HasDependencyWith(preds ...predicate.ResourceComponent) predicate.ResourceComponentRelationship
HasDependencyWith applies the HasEdge predicate on the "dependency" edge with a given conditions (other predicates).
func HasResourceComponent ¶
func HasResourceComponent() predicate.ResourceComponentRelationship
HasResourceComponent applies the HasEdge predicate on the "resource_component" edge.
func HasResourceComponentWith ¶
func HasResourceComponentWith(preds ...predicate.ResourceComponent) predicate.ResourceComponentRelationship
HasResourceComponentWith applies the HasEdge predicate on the "resource_component" edge with a given conditions (other predicates).
func ID ¶
func ID(id object.ID) predicate.ResourceComponentRelationship
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id object.ID) predicate.ResourceComponentRelationship
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id object.ID) predicate.ResourceComponentRelationship
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id object.ID) predicate.ResourceComponentRelationship
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...object.ID) predicate.ResourceComponentRelationship
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id object.ID) predicate.ResourceComponentRelationship
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id object.ID) predicate.ResourceComponentRelationship
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id object.ID) predicate.ResourceComponentRelationship
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...object.ID) predicate.ResourceComponentRelationship
IDNotIn applies the NotIn predicate on the ID field.
func Or ¶
func Or(predicates ...predicate.ResourceComponentRelationship) predicate.ResourceComponentRelationship
Or groups predicates with the OR operator between them.
func ResourceComponentID ¶
func ResourceComponentID(v object.ID) predicate.ResourceComponentRelationship
ResourceComponentID applies equality check predicate on the "resource_component_id" field. It's identical to ResourceComponentIDEQ.
func ResourceComponentIDContains ¶
func ResourceComponentIDContains(v object.ID) predicate.ResourceComponentRelationship
ResourceComponentIDContains applies the Contains predicate on the "resource_component_id" field.
func ResourceComponentIDContainsFold ¶
func ResourceComponentIDContainsFold(v object.ID) predicate.ResourceComponentRelationship
ResourceComponentIDContainsFold applies the ContainsFold predicate on the "resource_component_id" field.
func ResourceComponentIDEQ ¶
func ResourceComponentIDEQ(v object.ID) predicate.ResourceComponentRelationship
ResourceComponentIDEQ applies the EQ predicate on the "resource_component_id" field.
func ResourceComponentIDEqualFold ¶
func ResourceComponentIDEqualFold(v object.ID) predicate.ResourceComponentRelationship
ResourceComponentIDEqualFold applies the EqualFold predicate on the "resource_component_id" field.
func ResourceComponentIDGT ¶
func ResourceComponentIDGT(v object.ID) predicate.ResourceComponentRelationship
ResourceComponentIDGT applies the GT predicate on the "resource_component_id" field.
func ResourceComponentIDGTE ¶
func ResourceComponentIDGTE(v object.ID) predicate.ResourceComponentRelationship
ResourceComponentIDGTE applies the GTE predicate on the "resource_component_id" field.
func ResourceComponentIDHasPrefix ¶
func ResourceComponentIDHasPrefix(v object.ID) predicate.ResourceComponentRelationship
ResourceComponentIDHasPrefix applies the HasPrefix predicate on the "resource_component_id" field.
func ResourceComponentIDHasSuffix ¶
func ResourceComponentIDHasSuffix(v object.ID) predicate.ResourceComponentRelationship
ResourceComponentIDHasSuffix applies the HasSuffix predicate on the "resource_component_id" field.
func ResourceComponentIDIn ¶
func ResourceComponentIDIn(vs ...object.ID) predicate.ResourceComponentRelationship
ResourceComponentIDIn applies the In predicate on the "resource_component_id" field.
func ResourceComponentIDLT ¶
func ResourceComponentIDLT(v object.ID) predicate.ResourceComponentRelationship
ResourceComponentIDLT applies the LT predicate on the "resource_component_id" field.
func ResourceComponentIDLTE ¶
func ResourceComponentIDLTE(v object.ID) predicate.ResourceComponentRelationship
ResourceComponentIDLTE applies the LTE predicate on the "resource_component_id" field.
func ResourceComponentIDNEQ ¶
func ResourceComponentIDNEQ(v object.ID) predicate.ResourceComponentRelationship
ResourceComponentIDNEQ applies the NEQ predicate on the "resource_component_id" field.
func ResourceComponentIDNotIn ¶
func ResourceComponentIDNotIn(vs ...object.ID) predicate.ResourceComponentRelationship
ResourceComponentIDNotIn applies the NotIn predicate on the "resource_component_id" field.
func Type ¶
func Type(v string) predicate.ResourceComponentRelationship
Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
func TypeContains ¶
func TypeContains(v string) predicate.ResourceComponentRelationship
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
func TypeContainsFold(v string) predicate.ResourceComponentRelationship
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEQ ¶
func TypeEQ(v string) predicate.ResourceComponentRelationship
TypeEQ applies the EQ predicate on the "type" field.
func TypeEqualFold ¶
func TypeEqualFold(v string) predicate.ResourceComponentRelationship
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeGT ¶
func TypeGT(v string) predicate.ResourceComponentRelationship
TypeGT applies the GT predicate on the "type" field.
func TypeGTE ¶
func TypeGTE(v string) predicate.ResourceComponentRelationship
TypeGTE applies the GTE predicate on the "type" field.
func TypeHasPrefix ¶
func TypeHasPrefix(v string) predicate.ResourceComponentRelationship
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
func TypeHasSuffix(v string) predicate.ResourceComponentRelationship
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...string) predicate.ResourceComponentRelationship
TypeIn applies the In predicate on the "type" field.
func TypeLT ¶
func TypeLT(v string) predicate.ResourceComponentRelationship
TypeLT applies the LT predicate on the "type" field.
func TypeLTE ¶
func TypeLTE(v string) predicate.ResourceComponentRelationship
TypeLTE applies the LTE predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v string) predicate.ResourceComponentRelationship
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...string) predicate.ResourceComponentRelationship
TypeNotIn applies the NotIn predicate on the "type" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func WithoutFields ¶
WithoutFields returns the fields ignored the given list.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the ResourceComponentRelationship queries.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByDependencyField ¶
func ByDependencyField(field string, opts ...sql.OrderTermOption) OrderOption
ByDependencyField orders the results by dependency field.
func ByDependencyID ¶
func ByDependencyID(opts ...sql.OrderTermOption) OrderOption
ByDependencyID orders the results by the dependency_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByResourceComponentField ¶
func ByResourceComponentField(field string, opts ...sql.OrderTermOption) OrderOption
ByResourceComponentField orders the results by resource_component field.
func ByResourceComponentID ¶
func ByResourceComponentID(opts ...sql.OrderTermOption) OrderOption
ByResourceComponentID orders the results by the resource_component_id field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.