resourcecomponentrelationship

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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"

Columns holds all SQL columns for resourcecomponentrelationship fields.

Functions

func And

And groups predicates with the AND operator between them.

func CreateTime

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

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

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

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

DependencyIDGT applies the GT predicate on the "dependency_id" field.

func DependencyIDGTE

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

DependencyIDLT applies the LT predicate on the "dependency_id" field.

func DependencyIDLTE

DependencyIDLTE applies the LTE predicate on the "dependency_id" field.

func DependencyIDNEQ

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

HasDependency applies the HasEdge predicate on the "dependency" edge.

func HasDependencyWith

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

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

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

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

TypeIn applies the In predicate on the "type" field.

func TypeLT

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

TypeNotIn applies the NotIn predicate on the "type" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func WithoutFields

func WithoutFields(ignores ...string) []string

WithoutFields returns the fields ignored the given list.

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL