servicerelationship

package
v0.3.1-rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the servicerelationship type in the database.
	Label = "service_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"
	// FieldServiceID holds the string denoting the service_id field in the database.
	FieldServiceID = "service_id"
	// FieldDependencyID holds the string denoting the dependency_id field in the database.
	FieldDependencyID = "dependency_id"
	// FieldPath holds the string denoting the path field in the database.
	FieldPath = "path"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// EdgeService holds the string denoting the service edge name in mutations.
	EdgeService = "service"
	// EdgeDependency holds the string denoting the dependency edge name in mutations.
	EdgeDependency = "dependency"
	// Table holds the table name of the servicerelationship in the database.
	Table = "service_relationships"
	// ServiceTable is the table that holds the service relation/edge.
	ServiceTable = "service_relationships"
	// ServiceInverseTable is the table name for the Service entity.
	// It exists in this package in order to avoid circular dependency with the "service" package.
	ServiceInverseTable = "services"
	// ServiceColumn is the table column denoting the service relation/edge.
	ServiceColumn = "service_id"
	// DependencyTable is the table that holds the dependency relation/edge.
	DependencyTable = "service_relationships"
	// DependencyInverseTable is the table name for the Service entity.
	// It exists in this package in order to avoid circular dependency with the "service" package.
	DependencyInverseTable = "services"
	// 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
	// ServiceIDValidator is a validator for the "service_id" field. It is called by the builders before save.
	ServiceIDValidator func(string) error
	// DependencyIDValidator is a validator for the "dependency_id" field. It is called by the builders before save.
	DependencyIDValidator func(string) error
	// DefaultPath holds the default value on creation for the "path" field.
	DefaultPath []object.ID
	// 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 servicerelationship fields.

Functions

func And

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.ServiceRelationship

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.ServiceRelationship

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.ServiceRelationship

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.ServiceRelationship

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

func CreateTimeIn

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

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.ServiceRelationship

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.ServiceRelationship

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.ServiceRelationship

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.ServiceRelationship

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func DependencyID

func DependencyID(v object.ID) predicate.ServiceRelationship

DependencyID applies equality check predicate on the "dependency_id" field. It's identical to DependencyIDEQ.

func DependencyIDContains

func DependencyIDContains(v object.ID) predicate.ServiceRelationship

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

func DependencyIDContainsFold

func DependencyIDContainsFold(v object.ID) predicate.ServiceRelationship

DependencyIDContainsFold applies the ContainsFold predicate on the "dependency_id" field.

func DependencyIDEQ

func DependencyIDEQ(v object.ID) predicate.ServiceRelationship

DependencyIDEQ applies the EQ predicate on the "dependency_id" field.

func DependencyIDEqualFold

func DependencyIDEqualFold(v object.ID) predicate.ServiceRelationship

DependencyIDEqualFold applies the EqualFold predicate on the "dependency_id" field.

func DependencyIDGT

func DependencyIDGT(v object.ID) predicate.ServiceRelationship

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

func DependencyIDGTE

func DependencyIDGTE(v object.ID) predicate.ServiceRelationship

DependencyIDGTE applies the GTE predicate on the "dependency_id" field.

func DependencyIDHasPrefix

func DependencyIDHasPrefix(v object.ID) predicate.ServiceRelationship

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

func DependencyIDHasSuffix

func DependencyIDHasSuffix(v object.ID) predicate.ServiceRelationship

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

func DependencyIDIn

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

DependencyIDIn applies the In predicate on the "dependency_id" field.

func DependencyIDLT

func DependencyIDLT(v object.ID) predicate.ServiceRelationship

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

func DependencyIDLTE

func DependencyIDLTE(v object.ID) predicate.ServiceRelationship

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

func DependencyIDNEQ

func DependencyIDNEQ(v object.ID) predicate.ServiceRelationship

DependencyIDNEQ applies the NEQ predicate on the "dependency_id" field.

func DependencyIDNotIn

func DependencyIDNotIn(vs ...object.ID) predicate.ServiceRelationship

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

func HasDependency

func HasDependency() predicate.ServiceRelationship

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

func HasDependencyWith

func HasDependencyWith(preds ...predicate.Service) predicate.ServiceRelationship

HasDependencyWith applies the HasEdge predicate on the "dependency" edge with a given conditions (other predicates).

func HasService

func HasService() predicate.ServiceRelationship

HasService applies the HasEdge predicate on the "service" edge.

func HasServiceWith

func HasServiceWith(preds ...predicate.Service) predicate.ServiceRelationship

HasServiceWith applies the HasEdge predicate on the "service" 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

func IDNotIn(ids ...object.ID) predicate.ServiceRelationship

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 ServiceID

ServiceID applies equality check predicate on the "service_id" field. It's identical to ServiceIDEQ.

func ServiceIDContains

func ServiceIDContains(v object.ID) predicate.ServiceRelationship

ServiceIDContains applies the Contains predicate on the "service_id" field.

func ServiceIDContainsFold

func ServiceIDContainsFold(v object.ID) predicate.ServiceRelationship

ServiceIDContainsFold applies the ContainsFold predicate on the "service_id" field.

func ServiceIDEQ

func ServiceIDEQ(v object.ID) predicate.ServiceRelationship

ServiceIDEQ applies the EQ predicate on the "service_id" field.

func ServiceIDEqualFold

func ServiceIDEqualFold(v object.ID) predicate.ServiceRelationship

ServiceIDEqualFold applies the EqualFold predicate on the "service_id" field.

func ServiceIDGT

func ServiceIDGT(v object.ID) predicate.ServiceRelationship

ServiceIDGT applies the GT predicate on the "service_id" field.

func ServiceIDGTE

func ServiceIDGTE(v object.ID) predicate.ServiceRelationship

ServiceIDGTE applies the GTE predicate on the "service_id" field.

func ServiceIDHasPrefix

func ServiceIDHasPrefix(v object.ID) predicate.ServiceRelationship

ServiceIDHasPrefix applies the HasPrefix predicate on the "service_id" field.

func ServiceIDHasSuffix

func ServiceIDHasSuffix(v object.ID) predicate.ServiceRelationship

ServiceIDHasSuffix applies the HasSuffix predicate on the "service_id" field.

func ServiceIDIn

func ServiceIDIn(vs ...object.ID) predicate.ServiceRelationship

ServiceIDIn applies the In predicate on the "service_id" field.

func ServiceIDLT

func ServiceIDLT(v object.ID) predicate.ServiceRelationship

ServiceIDLT applies the LT predicate on the "service_id" field.

func ServiceIDLTE

func ServiceIDLTE(v object.ID) predicate.ServiceRelationship

ServiceIDLTE applies the LTE predicate on the "service_id" field.

func ServiceIDNEQ

func ServiceIDNEQ(v object.ID) predicate.ServiceRelationship

ServiceIDNEQ applies the NEQ predicate on the "service_id" field.

func ServiceIDNotIn

func ServiceIDNotIn(vs ...object.ID) predicate.ServiceRelationship

ServiceIDNotIn applies the NotIn predicate on the "service_id" field.

func Type

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

func TypeContains

func TypeContains(v string) predicate.ServiceRelationship

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

func TypeContainsFold

func TypeContainsFold(v string) predicate.ServiceRelationship

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

func TypeEQ

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

func TypeEqualFold

func TypeEqualFold(v string) predicate.ServiceRelationship

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

func TypeHasPrefix(v string) predicate.ServiceRelationship

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

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.ServiceRelationship

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

func TypeIn

func TypeIn(vs ...string) predicate.ServiceRelationship

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

func TypeNotIn(vs ...string) predicate.ServiceRelationship

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 ServiceRelationship 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 ByServiceField

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

ByServiceField orders the results by service field.

func ByServiceID

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

ByServiceID orders the results by the service_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