Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ServiceResourceRelationship) predicate.ServiceResourceRelationship
- func CreateTime(v time.Time) predicate.ServiceResourceRelationship
- func CreateTimeEQ(v time.Time) predicate.ServiceResourceRelationship
- func CreateTimeGT(v time.Time) predicate.ServiceResourceRelationship
- func CreateTimeGTE(v time.Time) predicate.ServiceResourceRelationship
- func CreateTimeIn(vs ...time.Time) predicate.ServiceResourceRelationship
- func CreateTimeLT(v time.Time) predicate.ServiceResourceRelationship
- func CreateTimeLTE(v time.Time) predicate.ServiceResourceRelationship
- func CreateTimeNEQ(v time.Time) predicate.ServiceResourceRelationship
- func CreateTimeNotIn(vs ...time.Time) predicate.ServiceResourceRelationship
- func DependencyID(v object.ID) predicate.ServiceResourceRelationship
- func DependencyIDContains(v object.ID) predicate.ServiceResourceRelationship
- func DependencyIDContainsFold(v object.ID) predicate.ServiceResourceRelationship
- func DependencyIDEQ(v object.ID) predicate.ServiceResourceRelationship
- func DependencyIDEqualFold(v object.ID) predicate.ServiceResourceRelationship
- func DependencyIDGT(v object.ID) predicate.ServiceResourceRelationship
- func DependencyIDGTE(v object.ID) predicate.ServiceResourceRelationship
- func DependencyIDHasPrefix(v object.ID) predicate.ServiceResourceRelationship
- func DependencyIDHasSuffix(v object.ID) predicate.ServiceResourceRelationship
- func DependencyIDIn(vs ...object.ID) predicate.ServiceResourceRelationship
- func DependencyIDLT(v object.ID) predicate.ServiceResourceRelationship
- func DependencyIDLTE(v object.ID) predicate.ServiceResourceRelationship
- func DependencyIDNEQ(v object.ID) predicate.ServiceResourceRelationship
- func DependencyIDNotIn(vs ...object.ID) predicate.ServiceResourceRelationship
- func HasDependency() predicate.ServiceResourceRelationship
- func HasDependencyWith(preds ...predicate.ServiceResource) predicate.ServiceResourceRelationship
- func HasServiceResource() predicate.ServiceResourceRelationship
- func HasServiceResourceWith(preds ...predicate.ServiceResource) predicate.ServiceResourceRelationship
- func ID(id object.ID) predicate.ServiceResourceRelationship
- func IDEQ(id object.ID) predicate.ServiceResourceRelationship
- func IDGT(id object.ID) predicate.ServiceResourceRelationship
- func IDGTE(id object.ID) predicate.ServiceResourceRelationship
- func IDIn(ids ...object.ID) predicate.ServiceResourceRelationship
- func IDLT(id object.ID) predicate.ServiceResourceRelationship
- func IDLTE(id object.ID) predicate.ServiceResourceRelationship
- func IDNEQ(id object.ID) predicate.ServiceResourceRelationship
- func IDNotIn(ids ...object.ID) predicate.ServiceResourceRelationship
- func Not(p predicate.ServiceResourceRelationship) predicate.ServiceResourceRelationship
- func Or(predicates ...predicate.ServiceResourceRelationship) predicate.ServiceResourceRelationship
- func ServiceResourceID(v object.ID) predicate.ServiceResourceRelationship
- func ServiceResourceIDContains(v object.ID) predicate.ServiceResourceRelationship
- func ServiceResourceIDContainsFold(v object.ID) predicate.ServiceResourceRelationship
- func ServiceResourceIDEQ(v object.ID) predicate.ServiceResourceRelationship
- func ServiceResourceIDEqualFold(v object.ID) predicate.ServiceResourceRelationship
- func ServiceResourceIDGT(v object.ID) predicate.ServiceResourceRelationship
- func ServiceResourceIDGTE(v object.ID) predicate.ServiceResourceRelationship
- func ServiceResourceIDHasPrefix(v object.ID) predicate.ServiceResourceRelationship
- func ServiceResourceIDHasSuffix(v object.ID) predicate.ServiceResourceRelationship
- func ServiceResourceIDIn(vs ...object.ID) predicate.ServiceResourceRelationship
- func ServiceResourceIDLT(v object.ID) predicate.ServiceResourceRelationship
- func ServiceResourceIDLTE(v object.ID) predicate.ServiceResourceRelationship
- func ServiceResourceIDNEQ(v object.ID) predicate.ServiceResourceRelationship
- func ServiceResourceIDNotIn(vs ...object.ID) predicate.ServiceResourceRelationship
- func Type(v string) predicate.ServiceResourceRelationship
- func TypeContains(v string) predicate.ServiceResourceRelationship
- func TypeContainsFold(v string) predicate.ServiceResourceRelationship
- func TypeEQ(v string) predicate.ServiceResourceRelationship
- func TypeEqualFold(v string) predicate.ServiceResourceRelationship
- func TypeGT(v string) predicate.ServiceResourceRelationship
- func TypeGTE(v string) predicate.ServiceResourceRelationship
- func TypeHasPrefix(v string) predicate.ServiceResourceRelationship
- func TypeHasSuffix(v string) predicate.ServiceResourceRelationship
- func TypeIn(vs ...string) predicate.ServiceResourceRelationship
- func TypeLT(v string) predicate.ServiceResourceRelationship
- func TypeLTE(v string) predicate.ServiceResourceRelationship
- func TypeNEQ(v string) predicate.ServiceResourceRelationship
- func TypeNotIn(vs ...string) predicate.ServiceResourceRelationship
- func ValidColumn(column string) bool
- func WithoutFields(ignores ...string) []string
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDependencyField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByDependencyID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByServiceResourceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByServiceResourceID(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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"
var Columns = []string{ FieldID, FieldCreateTime, FieldServiceResourceID, FieldDependencyID, FieldType, }
Columns holds all SQL columns for serviceresourcerelationship fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ServiceResourceRelationship) predicate.ServiceResourceRelationship
And groups predicates with the AND operator between them.
func CreateTime ¶
func CreateTime(v time.Time) predicate.ServiceResourceRelationship
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.ServiceResourceRelationship
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.ServiceResourceRelationship
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.ServiceResourceRelationship
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 ¶
func CreateTimeLT(v time.Time) predicate.ServiceResourceRelationship
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.ServiceResourceRelationship
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.ServiceResourceRelationship
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 ¶
func DependencyID(v object.ID) predicate.ServiceResourceRelationship
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 ¶
func DependencyIDEQ(v object.ID) predicate.ServiceResourceRelationship
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 ¶
func DependencyIDGT(v object.ID) predicate.ServiceResourceRelationship
DependencyIDGT applies the GT predicate on the "dependency_id" field.
func DependencyIDGTE ¶
func DependencyIDGTE(v object.ID) predicate.ServiceResourceRelationship
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 ¶
func DependencyIDLT(v object.ID) predicate.ServiceResourceRelationship
DependencyIDLT applies the LT predicate on the "dependency_id" field.
func DependencyIDLTE ¶
func DependencyIDLTE(v object.ID) predicate.ServiceResourceRelationship
DependencyIDLTE applies the LTE predicate on the "dependency_id" field.
func DependencyIDNEQ ¶
func DependencyIDNEQ(v object.ID) predicate.ServiceResourceRelationship
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 ¶
func HasDependencyWith(preds ...predicate.ServiceResource) predicate.ServiceResourceRelationship
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 ¶
func ID(id object.ID) predicate.ServiceResourceRelationship
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id object.ID) predicate.ServiceResourceRelationship
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id object.ID) predicate.ServiceResourceRelationship
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id object.ID) predicate.ServiceResourceRelationship
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...object.ID) predicate.ServiceResourceRelationship
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id object.ID) predicate.ServiceResourceRelationship
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id object.ID) predicate.ServiceResourceRelationship
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id object.ID) predicate.ServiceResourceRelationship
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...object.ID) predicate.ServiceResourceRelationship
IDNotIn applies the NotIn predicate on the ID field.
func Or ¶
func Or(predicates ...predicate.ServiceResourceRelationship) predicate.ServiceResourceRelationship
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 ¶
func Type(v string) predicate.ServiceResourceRelationship
Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
func TypeContains ¶
func TypeContains(v string) predicate.ServiceResourceRelationship
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 ¶
func TypeEQ(v string) predicate.ServiceResourceRelationship
TypeEQ applies the EQ predicate on the "type" field.
func TypeEqualFold ¶
func TypeEqualFold(v string) predicate.ServiceResourceRelationship
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeGT ¶
func TypeGT(v string) predicate.ServiceResourceRelationship
TypeGT applies the GT predicate on the "type" field.
func TypeGTE ¶
func TypeGTE(v string) predicate.ServiceResourceRelationship
TypeGTE applies the GTE predicate on the "type" field.
func TypeHasPrefix ¶
func TypeHasPrefix(v string) predicate.ServiceResourceRelationship
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
func TypeHasSuffix(v string) predicate.ServiceResourceRelationship
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...string) predicate.ServiceResourceRelationship
TypeIn applies the In predicate on the "type" field.
func TypeLT ¶
func TypeLT(v string) predicate.ServiceResourceRelationship
TypeLT applies the LT predicate on the "type" field.
func TypeLTE ¶
func TypeLTE(v string) predicate.ServiceResourceRelationship
TypeLTE applies the LTE predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v string) predicate.ServiceResourceRelationship
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...string) predicate.ServiceResourceRelationship
TypeNotIn applies the NotIn predicate on the "type" field.
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 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.