environmentconnectorrelationship

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 environmentconnectorrelationship type in the database.
	Label = "environment_connector_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"
	// FieldEnvironmentID holds the string denoting the environment_id field in the database.
	FieldEnvironmentID = "environment_id"
	// FieldConnectorID holds the string denoting the connector_id field in the database.
	FieldConnectorID = "connector_id"
	// EdgeEnvironment holds the string denoting the environment edge name in mutations.
	EdgeEnvironment = "environment"
	// EdgeConnector holds the string denoting the connector edge name in mutations.
	EdgeConnector = "connector"
	// Table holds the table name of the environmentconnectorrelationship in the database.
	Table = "environment_connector_relationships"
	// EnvironmentTable is the table that holds the environment relation/edge.
	EnvironmentTable = "environment_connector_relationships"
	// EnvironmentInverseTable is the table name for the Environment entity.
	// It exists in this package in order to avoid circular dependency with the "environment" package.
	EnvironmentInverseTable = "environments"
	// EnvironmentColumn is the table column denoting the environment relation/edge.
	EnvironmentColumn = "environment_id"
	// ConnectorTable is the table that holds the connector relation/edge.
	ConnectorTable = "environment_connector_relationships"
	// ConnectorInverseTable is the table name for the Connector entity.
	// It exists in this package in order to avoid circular dependency with the "connector" package.
	ConnectorInverseTable = "connectors"
	// ConnectorColumn is the table column denoting the connector relation/edge.
	ConnectorColumn = "connector_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
	// EnvironmentIDValidator is a validator for the "environment_id" field. It is called by the builders before save.
	EnvironmentIDValidator func(string) error
	// ConnectorIDValidator is a validator for the "connector_id" field. It is called by the builders before save.
	ConnectorIDValidator 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 environmentconnectorrelationship fields.

Functions

func And

And groups predicates with the AND operator between them.

func ConnectorID

ConnectorID applies equality check predicate on the "connector_id" field. It's identical to ConnectorIDEQ.

func ConnectorIDContains

func ConnectorIDContains(v object.ID) predicate.EnvironmentConnectorRelationship

ConnectorIDContains applies the Contains predicate on the "connector_id" field.

func ConnectorIDContainsFold

func ConnectorIDContainsFold(v object.ID) predicate.EnvironmentConnectorRelationship

ConnectorIDContainsFold applies the ContainsFold predicate on the "connector_id" field.

func ConnectorIDEQ

ConnectorIDEQ applies the EQ predicate on the "connector_id" field.

func ConnectorIDEqualFold

func ConnectorIDEqualFold(v object.ID) predicate.EnvironmentConnectorRelationship

ConnectorIDEqualFold applies the EqualFold predicate on the "connector_id" field.

func ConnectorIDGT

ConnectorIDGT applies the GT predicate on the "connector_id" field.

func ConnectorIDGTE

ConnectorIDGTE applies the GTE predicate on the "connector_id" field.

func ConnectorIDHasPrefix

func ConnectorIDHasPrefix(v object.ID) predicate.EnvironmentConnectorRelationship

ConnectorIDHasPrefix applies the HasPrefix predicate on the "connector_id" field.

func ConnectorIDHasSuffix

func ConnectorIDHasSuffix(v object.ID) predicate.EnvironmentConnectorRelationship

ConnectorIDHasSuffix applies the HasSuffix predicate on the "connector_id" field.

func ConnectorIDIn

ConnectorIDIn applies the In predicate on the "connector_id" field.

func ConnectorIDLT

ConnectorIDLT applies the LT predicate on the "connector_id" field.

func ConnectorIDLTE

ConnectorIDLTE applies the LTE predicate on the "connector_id" field.

func ConnectorIDNEQ

ConnectorIDNEQ applies the NEQ predicate on the "connector_id" field.

func ConnectorIDNotIn

func ConnectorIDNotIn(vs ...object.ID) predicate.EnvironmentConnectorRelationship

ConnectorIDNotIn applies the NotIn predicate on the "connector_id" field.

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

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

func EnvironmentID

EnvironmentID applies equality check predicate on the "environment_id" field. It's identical to EnvironmentIDEQ.

func EnvironmentIDContains

func EnvironmentIDContains(v object.ID) predicate.EnvironmentConnectorRelationship

EnvironmentIDContains applies the Contains predicate on the "environment_id" field.

func EnvironmentIDContainsFold

func EnvironmentIDContainsFold(v object.ID) predicate.EnvironmentConnectorRelationship

EnvironmentIDContainsFold applies the ContainsFold predicate on the "environment_id" field.

func EnvironmentIDEQ

EnvironmentIDEQ applies the EQ predicate on the "environment_id" field.

func EnvironmentIDEqualFold

func EnvironmentIDEqualFold(v object.ID) predicate.EnvironmentConnectorRelationship

EnvironmentIDEqualFold applies the EqualFold predicate on the "environment_id" field.

func EnvironmentIDGT

EnvironmentIDGT applies the GT predicate on the "environment_id" field.

func EnvironmentIDGTE

EnvironmentIDGTE applies the GTE predicate on the "environment_id" field.

func EnvironmentIDHasPrefix

func EnvironmentIDHasPrefix(v object.ID) predicate.EnvironmentConnectorRelationship

EnvironmentIDHasPrefix applies the HasPrefix predicate on the "environment_id" field.

func EnvironmentIDHasSuffix

func EnvironmentIDHasSuffix(v object.ID) predicate.EnvironmentConnectorRelationship

EnvironmentIDHasSuffix applies the HasSuffix predicate on the "environment_id" field.

func EnvironmentIDIn

func EnvironmentIDIn(vs ...object.ID) predicate.EnvironmentConnectorRelationship

EnvironmentIDIn applies the In predicate on the "environment_id" field.

func EnvironmentIDLT

EnvironmentIDLT applies the LT predicate on the "environment_id" field.

func EnvironmentIDLTE

EnvironmentIDLTE applies the LTE predicate on the "environment_id" field.

func EnvironmentIDNEQ

EnvironmentIDNEQ applies the NEQ predicate on the "environment_id" field.

func EnvironmentIDNotIn

func EnvironmentIDNotIn(vs ...object.ID) predicate.EnvironmentConnectorRelationship

EnvironmentIDNotIn applies the NotIn predicate on the "environment_id" field.

func HasConnector

HasConnector applies the HasEdge predicate on the "connector" edge.

func HasConnectorWith

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

func HasEnvironment

HasEnvironment applies the HasEdge predicate on the "environment" edge.

func HasEnvironmentWith

HasEnvironmentWith applies the HasEdge predicate on the "environment" 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 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 EnvironmentConnectorRelationship queries.

func ByConnectorField

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

ByConnectorField orders the results by connector field.

func ByConnectorID

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

ByConnectorID orders the results by the connector_id field.

func ByCreateTime

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

ByCreateTime orders the results by the create_time field.

func ByEnvironmentField

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

ByEnvironmentField orders the results by environment field.

func ByEnvironmentID

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

ByEnvironmentID orders the results by the environment_id field.

func ByID

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

ByID orders the results by the id field.

Jump to

Keyboard shortcuts

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