Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.EnvironmentConnectorRelationship) predicate.EnvironmentConnectorRelationship
- func ConnectorID(v object.ID) predicate.EnvironmentConnectorRelationship
- func ConnectorIDContains(v object.ID) predicate.EnvironmentConnectorRelationship
- func ConnectorIDContainsFold(v object.ID) predicate.EnvironmentConnectorRelationship
- func ConnectorIDEQ(v object.ID) predicate.EnvironmentConnectorRelationship
- func ConnectorIDEqualFold(v object.ID) predicate.EnvironmentConnectorRelationship
- func ConnectorIDGT(v object.ID) predicate.EnvironmentConnectorRelationship
- func ConnectorIDGTE(v object.ID) predicate.EnvironmentConnectorRelationship
- func ConnectorIDHasPrefix(v object.ID) predicate.EnvironmentConnectorRelationship
- func ConnectorIDHasSuffix(v object.ID) predicate.EnvironmentConnectorRelationship
- func ConnectorIDIn(vs ...object.ID) predicate.EnvironmentConnectorRelationship
- func ConnectorIDLT(v object.ID) predicate.EnvironmentConnectorRelationship
- func ConnectorIDLTE(v object.ID) predicate.EnvironmentConnectorRelationship
- func ConnectorIDNEQ(v object.ID) predicate.EnvironmentConnectorRelationship
- func ConnectorIDNotIn(vs ...object.ID) predicate.EnvironmentConnectorRelationship
- func CreateTime(v time.Time) predicate.EnvironmentConnectorRelationship
- func CreateTimeEQ(v time.Time) predicate.EnvironmentConnectorRelationship
- func CreateTimeGT(v time.Time) predicate.EnvironmentConnectorRelationship
- func CreateTimeGTE(v time.Time) predicate.EnvironmentConnectorRelationship
- func CreateTimeIn(vs ...time.Time) predicate.EnvironmentConnectorRelationship
- func CreateTimeLT(v time.Time) predicate.EnvironmentConnectorRelationship
- func CreateTimeLTE(v time.Time) predicate.EnvironmentConnectorRelationship
- func CreateTimeNEQ(v time.Time) predicate.EnvironmentConnectorRelationship
- func CreateTimeNotIn(vs ...time.Time) predicate.EnvironmentConnectorRelationship
- func EnvironmentID(v object.ID) predicate.EnvironmentConnectorRelationship
- func EnvironmentIDContains(v object.ID) predicate.EnvironmentConnectorRelationship
- func EnvironmentIDContainsFold(v object.ID) predicate.EnvironmentConnectorRelationship
- func EnvironmentIDEQ(v object.ID) predicate.EnvironmentConnectorRelationship
- func EnvironmentIDEqualFold(v object.ID) predicate.EnvironmentConnectorRelationship
- func EnvironmentIDGT(v object.ID) predicate.EnvironmentConnectorRelationship
- func EnvironmentIDGTE(v object.ID) predicate.EnvironmentConnectorRelationship
- func EnvironmentIDHasPrefix(v object.ID) predicate.EnvironmentConnectorRelationship
- func EnvironmentIDHasSuffix(v object.ID) predicate.EnvironmentConnectorRelationship
- func EnvironmentIDIn(vs ...object.ID) predicate.EnvironmentConnectorRelationship
- func EnvironmentIDLT(v object.ID) predicate.EnvironmentConnectorRelationship
- func EnvironmentIDLTE(v object.ID) predicate.EnvironmentConnectorRelationship
- func EnvironmentIDNEQ(v object.ID) predicate.EnvironmentConnectorRelationship
- func EnvironmentIDNotIn(vs ...object.ID) predicate.EnvironmentConnectorRelationship
- func HasConnector() predicate.EnvironmentConnectorRelationship
- func HasConnectorWith(preds ...predicate.Connector) predicate.EnvironmentConnectorRelationship
- func HasEnvironment() predicate.EnvironmentConnectorRelationship
- func HasEnvironmentWith(preds ...predicate.Environment) predicate.EnvironmentConnectorRelationship
- func ID(id object.ID) predicate.EnvironmentConnectorRelationship
- func IDEQ(id object.ID) predicate.EnvironmentConnectorRelationship
- func IDGT(id object.ID) predicate.EnvironmentConnectorRelationship
- func IDGTE(id object.ID) predicate.EnvironmentConnectorRelationship
- func IDIn(ids ...object.ID) predicate.EnvironmentConnectorRelationship
- func IDLT(id object.ID) predicate.EnvironmentConnectorRelationship
- func IDLTE(id object.ID) predicate.EnvironmentConnectorRelationship
- func IDNEQ(id object.ID) predicate.EnvironmentConnectorRelationship
- func IDNotIn(ids ...object.ID) predicate.EnvironmentConnectorRelationship
- func Not(p predicate.EnvironmentConnectorRelationship) predicate.EnvironmentConnectorRelationship
- func Or(predicates ...predicate.EnvironmentConnectorRelationship) predicate.EnvironmentConnectorRelationship
- func ValidColumn(column string) bool
- func WithoutFields(ignores ...string) []string
- type OrderOption
- func ByConnectorField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByConnectorID(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByEnvironmentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByEnvironmentID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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"
var Columns = []string{ FieldID, FieldCreateTime, FieldEnvironmentID, FieldConnectorID, }
Columns holds all SQL columns for environmentconnectorrelationship fields.
Functions ¶
func And ¶
func And(predicates ...predicate.EnvironmentConnectorRelationship) predicate.EnvironmentConnectorRelationship
And groups predicates with the AND operator between them.
func ConnectorID ¶
func ConnectorID(v object.ID) predicate.EnvironmentConnectorRelationship
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 ¶
func ConnectorIDEQ(v object.ID) predicate.EnvironmentConnectorRelationship
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 ¶
func ConnectorIDGT(v object.ID) predicate.EnvironmentConnectorRelationship
ConnectorIDGT applies the GT predicate on the "connector_id" field.
func ConnectorIDGTE ¶
func ConnectorIDGTE(v object.ID) predicate.EnvironmentConnectorRelationship
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 ¶
func ConnectorIDIn(vs ...object.ID) predicate.EnvironmentConnectorRelationship
ConnectorIDIn applies the In predicate on the "connector_id" field.
func ConnectorIDLT ¶
func ConnectorIDLT(v object.ID) predicate.EnvironmentConnectorRelationship
ConnectorIDLT applies the LT predicate on the "connector_id" field.
func ConnectorIDLTE ¶
func ConnectorIDLTE(v object.ID) predicate.EnvironmentConnectorRelationship
ConnectorIDLTE applies the LTE predicate on the "connector_id" field.
func ConnectorIDNEQ ¶
func ConnectorIDNEQ(v object.ID) predicate.EnvironmentConnectorRelationship
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 ¶
func CreateTime(v time.Time) predicate.EnvironmentConnectorRelationship
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.EnvironmentConnectorRelationship
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.EnvironmentConnectorRelationship
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.EnvironmentConnectorRelationship
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.EnvironmentConnectorRelationship
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.EnvironmentConnectorRelationship
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.EnvironmentConnectorRelationship
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.EnvironmentConnectorRelationship
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 ¶
func EnvironmentID(v object.ID) predicate.EnvironmentConnectorRelationship
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 ¶
func EnvironmentIDEQ(v object.ID) predicate.EnvironmentConnectorRelationship
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 ¶
func EnvironmentIDGT(v object.ID) predicate.EnvironmentConnectorRelationship
EnvironmentIDGT applies the GT predicate on the "environment_id" field.
func EnvironmentIDGTE ¶
func EnvironmentIDGTE(v object.ID) predicate.EnvironmentConnectorRelationship
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 ¶
func EnvironmentIDLT(v object.ID) predicate.EnvironmentConnectorRelationship
EnvironmentIDLT applies the LT predicate on the "environment_id" field.
func EnvironmentIDLTE ¶
func EnvironmentIDLTE(v object.ID) predicate.EnvironmentConnectorRelationship
EnvironmentIDLTE applies the LTE predicate on the "environment_id" field.
func EnvironmentIDNEQ ¶
func EnvironmentIDNEQ(v object.ID) predicate.EnvironmentConnectorRelationship
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 ¶
func HasConnector() predicate.EnvironmentConnectorRelationship
HasConnector applies the HasEdge predicate on the "connector" edge.
func HasConnectorWith ¶
func HasConnectorWith(preds ...predicate.Connector) predicate.EnvironmentConnectorRelationship
HasConnectorWith applies the HasEdge predicate on the "connector" edge with a given conditions (other predicates).
func HasEnvironment ¶
func HasEnvironment() predicate.EnvironmentConnectorRelationship
HasEnvironment applies the HasEdge predicate on the "environment" edge.
func HasEnvironmentWith ¶
func HasEnvironmentWith(preds ...predicate.Environment) predicate.EnvironmentConnectorRelationship
HasEnvironmentWith applies the HasEdge predicate on the "environment" edge with a given conditions (other predicates).
func ID ¶
func ID(id object.ID) predicate.EnvironmentConnectorRelationship
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id object.ID) predicate.EnvironmentConnectorRelationship
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id object.ID) predicate.EnvironmentConnectorRelationship
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id object.ID) predicate.EnvironmentConnectorRelationship
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...object.ID) predicate.EnvironmentConnectorRelationship
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id object.ID) predicate.EnvironmentConnectorRelationship
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id object.ID) predicate.EnvironmentConnectorRelationship
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id object.ID) predicate.EnvironmentConnectorRelationship
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...object.ID) predicate.EnvironmentConnectorRelationship
IDNotIn applies the NotIn predicate on the ID field.
func Or ¶
func Or(predicates ...predicate.EnvironmentConnectorRelationship) predicate.EnvironmentConnectorRelationship
Or groups predicates with the OR operator between them.
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 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.