serviceresourcerelationship

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the serviceresourcerelationship type in the database.
	Label = "service_resource_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"
	// FieldServiceResourceID holds the string denoting the service_resource_id field in the database.
	FieldServiceResourceID = "service_resource_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"
	// EdgeServiceResource holds the string denoting the serviceresource edge name in mutations.
	EdgeServiceResource = "serviceResource"
	// EdgeDependency holds the string denoting the dependency edge name in mutations.
	EdgeDependency = "dependency"
	// Table holds the table name of the serviceresourcerelationship in the database.
	Table = "service_resource_relationships"
	// ServiceResourceTable is the table that holds the serviceResource relation/edge.
	ServiceResourceTable = "service_resource_relationships"
	// ServiceResourceInverseTable is the table name for the ServiceResource entity.
	// It exists in this package in order to avoid circular dependency with the "serviceresource" package.
	ServiceResourceInverseTable = "service_resources"
	// ServiceResourceColumn is the table column denoting the serviceResource relation/edge.
	ServiceResourceColumn = "service_resource_id"
	// DependencyTable is the table that holds the dependency relation/edge.
	DependencyTable = "service_resource_relationships"
	// DependencyInverseTable is the table name for the ServiceResource entity.
	// It exists in this package in order to avoid circular dependency with the "serviceresource" package.
	DependencyInverseTable = "service_resources"
	// 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
	// ServiceResourceIDValidator is a validator for the "service_resource_id" field. It is called by the builders before save.
	ServiceResourceIDValidator 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 serviceresourcerelationship 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

func CreateTimeIn(vs ...time.Time) predicate.ServiceResourceRelationship

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.ServiceResourceRelationship

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.ServiceResourceRelationship

DependencyIDContains applies the Contains predicate on the "dependency_id" field.

func DependencyIDContainsFold

func DependencyIDContainsFold(v object.ID) predicate.ServiceResourceRelationship

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.ServiceResourceRelationship

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.ServiceResourceRelationship

DependencyIDHasPrefix applies the HasPrefix predicate on the "dependency_id" field.

func DependencyIDHasSuffix

func DependencyIDHasSuffix(v object.ID) predicate.ServiceResourceRelationship

DependencyIDHasSuffix applies the HasSuffix predicate on the "dependency_id" field.

func DependencyIDIn

func DependencyIDIn(vs ...object.ID) predicate.ServiceResourceRelationship

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.ServiceResourceRelationship

DependencyIDNotIn applies the NotIn predicate on the "dependency_id" field.

func HasDependency

func HasDependency() predicate.ServiceResourceRelationship

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 HasServiceResource

func HasServiceResource() predicate.ServiceResourceRelationship

HasServiceResource applies the HasEdge predicate on the "serviceResource" edge.

func HasServiceResourceWith

func HasServiceResourceWith(preds ...predicate.ServiceResource) predicate.ServiceResourceRelationship

HasServiceResourceWith applies the HasEdge predicate on the "serviceResource" 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 ServiceResourceID

func ServiceResourceID(v object.ID) predicate.ServiceResourceRelationship

ServiceResourceID applies equality check predicate on the "service_resource_id" field. It's identical to ServiceResourceIDEQ.

func ServiceResourceIDContains

func ServiceResourceIDContains(v object.ID) predicate.ServiceResourceRelationship

ServiceResourceIDContains applies the Contains predicate on the "service_resource_id" field.

func ServiceResourceIDContainsFold

func ServiceResourceIDContainsFold(v object.ID) predicate.ServiceResourceRelationship

ServiceResourceIDContainsFold applies the ContainsFold predicate on the "service_resource_id" field.

func ServiceResourceIDEQ

func ServiceResourceIDEQ(v object.ID) predicate.ServiceResourceRelationship

ServiceResourceIDEQ applies the EQ predicate on the "service_resource_id" field.

func ServiceResourceIDEqualFold

func ServiceResourceIDEqualFold(v object.ID) predicate.ServiceResourceRelationship

ServiceResourceIDEqualFold applies the EqualFold predicate on the "service_resource_id" field.

func ServiceResourceIDGT

func ServiceResourceIDGT(v object.ID) predicate.ServiceResourceRelationship

ServiceResourceIDGT applies the GT predicate on the "service_resource_id" field.

func ServiceResourceIDGTE

func ServiceResourceIDGTE(v object.ID) predicate.ServiceResourceRelationship

ServiceResourceIDGTE applies the GTE predicate on the "service_resource_id" field.

func ServiceResourceIDHasPrefix

func ServiceResourceIDHasPrefix(v object.ID) predicate.ServiceResourceRelationship

ServiceResourceIDHasPrefix applies the HasPrefix predicate on the "service_resource_id" field.

func ServiceResourceIDHasSuffix

func ServiceResourceIDHasSuffix(v object.ID) predicate.ServiceResourceRelationship

ServiceResourceIDHasSuffix applies the HasSuffix predicate on the "service_resource_id" field.

func ServiceResourceIDIn

func ServiceResourceIDIn(vs ...object.ID) predicate.ServiceResourceRelationship

ServiceResourceIDIn applies the In predicate on the "service_resource_id" field.

func ServiceResourceIDLT

func ServiceResourceIDLT(v object.ID) predicate.ServiceResourceRelationship

ServiceResourceIDLT applies the LT predicate on the "service_resource_id" field.

func ServiceResourceIDLTE

func ServiceResourceIDLTE(v object.ID) predicate.ServiceResourceRelationship

ServiceResourceIDLTE applies the LTE predicate on the "service_resource_id" field.

func ServiceResourceIDNEQ

func ServiceResourceIDNEQ(v object.ID) predicate.ServiceResourceRelationship

ServiceResourceIDNEQ applies the NEQ predicate on the "service_resource_id" field.

func ServiceResourceIDNotIn

func ServiceResourceIDNotIn(vs ...object.ID) predicate.ServiceResourceRelationship

ServiceResourceIDNotIn applies the NotIn predicate on the "service_resource_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

func TypeContainsFold(v string) predicate.ServiceResourceRelationship

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 ServiceResourceRelationship 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 ByServiceResourceField

func ByServiceResourceField(field string, opts ...sql.OrderTermOption) OrderOption

ByServiceResourceField orders the results by serviceResource field.

func ByServiceResourceID

func ByServiceResourceID(opts ...sql.OrderTermOption) OrderOption

ByServiceResourceID orders the results by the service_resource_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