Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ServiceRelationship) predicate.ServiceRelationship
- func CreateTime(v time.Time) predicate.ServiceRelationship
- func CreateTimeEQ(v time.Time) predicate.ServiceRelationship
- func CreateTimeGT(v time.Time) predicate.ServiceRelationship
- func CreateTimeGTE(v time.Time) predicate.ServiceRelationship
- func CreateTimeIn(vs ...time.Time) predicate.ServiceRelationship
- func CreateTimeLT(v time.Time) predicate.ServiceRelationship
- func CreateTimeLTE(v time.Time) predicate.ServiceRelationship
- func CreateTimeNEQ(v time.Time) predicate.ServiceRelationship
- func CreateTimeNotIn(vs ...time.Time) predicate.ServiceRelationship
- func DependencyID(v object.ID) predicate.ServiceRelationship
- func DependencyIDContains(v object.ID) predicate.ServiceRelationship
- func DependencyIDContainsFold(v object.ID) predicate.ServiceRelationship
- func DependencyIDEQ(v object.ID) predicate.ServiceRelationship
- func DependencyIDEqualFold(v object.ID) predicate.ServiceRelationship
- func DependencyIDGT(v object.ID) predicate.ServiceRelationship
- func DependencyIDGTE(v object.ID) predicate.ServiceRelationship
- func DependencyIDHasPrefix(v object.ID) predicate.ServiceRelationship
- func DependencyIDHasSuffix(v object.ID) predicate.ServiceRelationship
- func DependencyIDIn(vs ...object.ID) predicate.ServiceRelationship
- func DependencyIDLT(v object.ID) predicate.ServiceRelationship
- func DependencyIDLTE(v object.ID) predicate.ServiceRelationship
- func DependencyIDNEQ(v object.ID) predicate.ServiceRelationship
- func DependencyIDNotIn(vs ...object.ID) predicate.ServiceRelationship
- func HasDependency() predicate.ServiceRelationship
- func HasDependencyWith(preds ...predicate.Service) predicate.ServiceRelationship
- func HasService() predicate.ServiceRelationship
- func HasServiceWith(preds ...predicate.Service) predicate.ServiceRelationship
- func ID(id object.ID) predicate.ServiceRelationship
- func IDEQ(id object.ID) predicate.ServiceRelationship
- func IDGT(id object.ID) predicate.ServiceRelationship
- func IDGTE(id object.ID) predicate.ServiceRelationship
- func IDIn(ids ...object.ID) predicate.ServiceRelationship
- func IDLT(id object.ID) predicate.ServiceRelationship
- func IDLTE(id object.ID) predicate.ServiceRelationship
- func IDNEQ(id object.ID) predicate.ServiceRelationship
- func IDNotIn(ids ...object.ID) predicate.ServiceRelationship
- func Not(p predicate.ServiceRelationship) predicate.ServiceRelationship
- func Or(predicates ...predicate.ServiceRelationship) predicate.ServiceRelationship
- func ServiceID(v object.ID) predicate.ServiceRelationship
- func ServiceIDContains(v object.ID) predicate.ServiceRelationship
- func ServiceIDContainsFold(v object.ID) predicate.ServiceRelationship
- func ServiceIDEQ(v object.ID) predicate.ServiceRelationship
- func ServiceIDEqualFold(v object.ID) predicate.ServiceRelationship
- func ServiceIDGT(v object.ID) predicate.ServiceRelationship
- func ServiceIDGTE(v object.ID) predicate.ServiceRelationship
- func ServiceIDHasPrefix(v object.ID) predicate.ServiceRelationship
- func ServiceIDHasSuffix(v object.ID) predicate.ServiceRelationship
- func ServiceIDIn(vs ...object.ID) predicate.ServiceRelationship
- func ServiceIDLT(v object.ID) predicate.ServiceRelationship
- func ServiceIDLTE(v object.ID) predicate.ServiceRelationship
- func ServiceIDNEQ(v object.ID) predicate.ServiceRelationship
- func ServiceIDNotIn(vs ...object.ID) predicate.ServiceRelationship
- func Type(v string) predicate.ServiceRelationship
- func TypeContains(v string) predicate.ServiceRelationship
- func TypeContainsFold(v string) predicate.ServiceRelationship
- func TypeEQ(v string) predicate.ServiceRelationship
- func TypeEqualFold(v string) predicate.ServiceRelationship
- func TypeGT(v string) predicate.ServiceRelationship
- func TypeGTE(v string) predicate.ServiceRelationship
- func TypeHasPrefix(v string) predicate.ServiceRelationship
- func TypeHasSuffix(v string) predicate.ServiceRelationship
- func TypeIn(vs ...string) predicate.ServiceRelationship
- func TypeLT(v string) predicate.ServiceRelationship
- func TypeLTE(v string) predicate.ServiceRelationship
- func TypeNEQ(v string) predicate.ServiceRelationship
- func TypeNotIn(vs ...string) predicate.ServiceRelationship
- 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 ByServiceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByServiceID(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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"
var Columns = []string{ FieldID, FieldCreateTime, FieldServiceID, FieldDependencyID, FieldPath, FieldType, }
Columns holds all SQL columns for servicerelationship fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ServiceRelationship) predicate.ServiceRelationship
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 ¶
func ID(id object.ID) predicate.ServiceRelationship
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id object.ID) predicate.ServiceRelationship
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id object.ID) predicate.ServiceRelationship
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id object.ID) predicate.ServiceRelationship
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...object.ID) predicate.ServiceRelationship
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id object.ID) predicate.ServiceRelationship
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id object.ID) predicate.ServiceRelationship
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id object.ID) predicate.ServiceRelationship
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 ¶
func Not(p predicate.ServiceRelationship) predicate.ServiceRelationship
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ServiceRelationship) predicate.ServiceRelationship
Or groups predicates with the OR operator between them.
func ServiceID ¶
func ServiceID(v object.ID) predicate.ServiceRelationship
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 ¶
func Type(v string) predicate.ServiceRelationship
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 ¶
func TypeEQ(v string) predicate.ServiceRelationship
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 ¶
func TypeGT(v string) predicate.ServiceRelationship
TypeGT applies the GT predicate on the "type" field.
func TypeGTE ¶
func TypeGTE(v string) predicate.ServiceRelationship
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 ¶
func TypeLT(v string) predicate.ServiceRelationship
TypeLT applies the LT predicate on the "type" field.
func TypeLTE ¶
func TypeLTE(v string) predicate.ServiceRelationship
TypeLTE applies the LTE predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v string) predicate.ServiceRelationship
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 ¶
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 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.