Documentation
¶
Index ¶
- Constants
- Variables
- func Active(v bool) predicate.ManagerRelationship
- func ActiveEQ(v bool) predicate.ManagerRelationship
- func ActiveNEQ(v bool) predicate.ManagerRelationship
- func And(predicates ...predicate.ManagerRelationship) predicate.ManagerRelationship
- func CreatedAt(v time.Time) predicate.ManagerRelationship
- func CreatedAtEQ(v time.Time) predicate.ManagerRelationship
- func CreatedAtGT(v time.Time) predicate.ManagerRelationship
- func CreatedAtGTE(v time.Time) predicate.ManagerRelationship
- func CreatedAtIn(vs ...time.Time) predicate.ManagerRelationship
- func CreatedAtLT(v time.Time) predicate.ManagerRelationship
- func CreatedAtLTE(v time.Time) predicate.ManagerRelationship
- func CreatedAtNEQ(v time.Time) predicate.ManagerRelationship
- func CreatedAtNotIn(vs ...time.Time) predicate.ManagerRelationship
- func CreatedBy(v uuid.UUID) predicate.ManagerRelationship
- func CreatedByEQ(v uuid.UUID) predicate.ManagerRelationship
- func CreatedByGT(v uuid.UUID) predicate.ManagerRelationship
- func CreatedByGTE(v uuid.UUID) predicate.ManagerRelationship
- func CreatedByIn(vs ...uuid.UUID) predicate.ManagerRelationship
- func CreatedByIsNil() predicate.ManagerRelationship
- func CreatedByLT(v uuid.UUID) predicate.ManagerRelationship
- func CreatedByLTE(v uuid.UUID) predicate.ManagerRelationship
- func CreatedByNEQ(v uuid.UUID) predicate.ManagerRelationship
- func CreatedByNotIn(vs ...uuid.UUID) predicate.ManagerRelationship
- func CreatedByNotNil() predicate.ManagerRelationship
- func HasManaged() predicate.ManagerRelationship
- func HasManagedWith(preds ...predicate.Principal) predicate.ManagerRelationship
- func HasManager() predicate.ManagerRelationship
- func HasManagerWith(preds ...predicate.Principal) predicate.ManagerRelationship
- func ID(id uuid.UUID) predicate.ManagerRelationship
- func IDEQ(id uuid.UUID) predicate.ManagerRelationship
- func IDGT(id uuid.UUID) predicate.ManagerRelationship
- func IDGTE(id uuid.UUID) predicate.ManagerRelationship
- func IDIn(ids ...uuid.UUID) predicate.ManagerRelationship
- func IDLT(id uuid.UUID) predicate.ManagerRelationship
- func IDLTE(id uuid.UUID) predicate.ManagerRelationship
- func IDNEQ(id uuid.UUID) predicate.ManagerRelationship
- func IDNotIn(ids ...uuid.UUID) predicate.ManagerRelationship
- func ManagedPrincipalID(v uuid.UUID) predicate.ManagerRelationship
- func ManagedPrincipalIDEQ(v uuid.UUID) predicate.ManagerRelationship
- func ManagedPrincipalIDIn(vs ...uuid.UUID) predicate.ManagerRelationship
- func ManagedPrincipalIDNEQ(v uuid.UUID) predicate.ManagerRelationship
- func ManagedPrincipalIDNotIn(vs ...uuid.UUID) predicate.ManagerRelationship
- func ManagerPrincipalID(v uuid.UUID) predicate.ManagerRelationship
- func ManagerPrincipalIDEQ(v uuid.UUID) predicate.ManagerRelationship
- func ManagerPrincipalIDIn(vs ...uuid.UUID) predicate.ManagerRelationship
- func ManagerPrincipalIDNEQ(v uuid.UUID) predicate.ManagerRelationship
- func ManagerPrincipalIDNotIn(vs ...uuid.UUID) predicate.ManagerRelationship
- func Not(p predicate.ManagerRelationship) predicate.ManagerRelationship
- func Or(predicates ...predicate.ManagerRelationship) predicate.ManagerRelationship
- func Role(v string) predicate.ManagerRelationship
- func RoleContains(v string) predicate.ManagerRelationship
- func RoleContainsFold(v string) predicate.ManagerRelationship
- func RoleEQ(v string) predicate.ManagerRelationship
- func RoleEqualFold(v string) predicate.ManagerRelationship
- func RoleGT(v string) predicate.ManagerRelationship
- func RoleGTE(v string) predicate.ManagerRelationship
- func RoleHasPrefix(v string) predicate.ManagerRelationship
- func RoleHasSuffix(v string) predicate.ManagerRelationship
- func RoleIn(vs ...string) predicate.ManagerRelationship
- func RoleLT(v string) predicate.ManagerRelationship
- func RoleLTE(v string) predicate.ManagerRelationship
- func RoleNEQ(v string) predicate.ManagerRelationship
- func RoleNotIn(vs ...string) predicate.ManagerRelationship
- func UpdatedAt(v time.Time) predicate.ManagerRelationship
- func UpdatedAtEQ(v time.Time) predicate.ManagerRelationship
- func UpdatedAtGT(v time.Time) predicate.ManagerRelationship
- func UpdatedAtGTE(v time.Time) predicate.ManagerRelationship
- func UpdatedAtIn(vs ...time.Time) predicate.ManagerRelationship
- func UpdatedAtLT(v time.Time) predicate.ManagerRelationship
- func UpdatedAtLTE(v time.Time) predicate.ManagerRelationship
- func UpdatedAtNEQ(v time.Time) predicate.ManagerRelationship
- func UpdatedAtNotIn(vs ...time.Time) predicate.ManagerRelationship
- func ValidColumn(column string) bool
- type OrderOption
- func ByActive(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByManagedField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByManagedPrincipalID(opts ...sql.OrderTermOption) OrderOption
- func ByManagerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByManagerPrincipalID(opts ...sql.OrderTermOption) OrderOption
- func ByRole(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the managerrelationship type in the database. Label = "manager_relationship" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldManagedPrincipalID holds the string denoting the managed_principal_id field in the database. FieldManagedPrincipalID = "managed_principal_id" // FieldManagerPrincipalID holds the string denoting the manager_principal_id field in the database. FieldManagerPrincipalID = "manager_principal_id" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // FieldActive holds the string denoting the active field in the database. FieldActive = "active" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // EdgeManaged holds the string denoting the managed edge name in mutations. EdgeManaged = "managed" // EdgeManager holds the string denoting the manager edge name in mutations. EdgeManager = "manager" // Table holds the table name of the managerrelationship in the database. Table = "sf_manager_relationships" // ManagedTable is the table that holds the managed relation/edge. ManagedTable = "sf_manager_relationships" // ManagedInverseTable is the table name for the Principal entity. // It exists in this package in order to avoid circular dependency with the "principal" package. ManagedInverseTable = "sf_principals" // ManagedColumn is the table column denoting the managed relation/edge. ManagedColumn = "managed_principal_id" // ManagerTable is the table that holds the manager relation/edge. ManagerTable = "sf_manager_relationships" // ManagerInverseTable is the table name for the Principal entity. // It exists in this package in order to avoid circular dependency with the "principal" package. ManagerInverseTable = "sf_principals" // ManagerColumn is the table column denoting the manager relation/edge. ManagerColumn = "manager_principal_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // RoleValidator is a validator for the "role" field. It is called by the builders before save. RoleValidator func(string) error // DefaultActive holds the default value on creation for the "active" field. DefaultActive bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldManagedPrincipalID, FieldManagerPrincipalID, FieldRole, FieldActive, FieldCreatedBy, }
Columns holds all SQL columns for managerrelationship fields.
Functions ¶
func Active ¶
func Active(v bool) predicate.ManagerRelationship
Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
func ActiveEQ ¶
func ActiveEQ(v bool) predicate.ManagerRelationship
ActiveEQ applies the EQ predicate on the "active" field.
func ActiveNEQ ¶
func ActiveNEQ(v bool) predicate.ManagerRelationship
ActiveNEQ applies the NEQ predicate on the "active" field.
func And ¶
func And(predicates ...predicate.ManagerRelationship) predicate.ManagerRelationship
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.ManagerRelationship
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.ManagerRelationship
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.ManagerRelationship
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.ManagerRelationship
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.ManagerRelationship
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.ManagerRelationship
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.ManagerRelationship
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.ManagerRelationship
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.ManagerRelationship
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
func CreatedBy(v uuid.UUID) predicate.ManagerRelationship
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
func CreatedByEQ(v uuid.UUID) predicate.ManagerRelationship
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
func CreatedByGT(v uuid.UUID) predicate.ManagerRelationship
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
func CreatedByGTE(v uuid.UUID) predicate.ManagerRelationship
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
func CreatedByIn(vs ...uuid.UUID) predicate.ManagerRelationship
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
func CreatedByIsNil() predicate.ManagerRelationship
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
func CreatedByLT(v uuid.UUID) predicate.ManagerRelationship
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
func CreatedByLTE(v uuid.UUID) predicate.ManagerRelationship
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
func CreatedByNEQ(v uuid.UUID) predicate.ManagerRelationship
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
func CreatedByNotIn(vs ...uuid.UUID) predicate.ManagerRelationship
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
func CreatedByNotNil() predicate.ManagerRelationship
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func HasManaged ¶
func HasManaged() predicate.ManagerRelationship
HasManaged applies the HasEdge predicate on the "managed" edge.
func HasManagedWith ¶
func HasManagedWith(preds ...predicate.Principal) predicate.ManagerRelationship
HasManagedWith applies the HasEdge predicate on the "managed" edge with a given conditions (other predicates).
func HasManager ¶
func HasManager() predicate.ManagerRelationship
HasManager applies the HasEdge predicate on the "manager" edge.
func HasManagerWith ¶
func HasManagerWith(preds ...predicate.Principal) predicate.ManagerRelationship
HasManagerWith applies the HasEdge predicate on the "manager" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.ManagerRelationship
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.ManagerRelationship
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.ManagerRelationship
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.ManagerRelationship
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.ManagerRelationship
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.ManagerRelationship
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.ManagerRelationship
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.ManagerRelationship
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.ManagerRelationship
IDNotIn applies the NotIn predicate on the ID field.
func ManagedPrincipalID ¶
func ManagedPrincipalID(v uuid.UUID) predicate.ManagerRelationship
ManagedPrincipalID applies equality check predicate on the "managed_principal_id" field. It's identical to ManagedPrincipalIDEQ.
func ManagedPrincipalIDEQ ¶
func ManagedPrincipalIDEQ(v uuid.UUID) predicate.ManagerRelationship
ManagedPrincipalIDEQ applies the EQ predicate on the "managed_principal_id" field.
func ManagedPrincipalIDIn ¶
func ManagedPrincipalIDIn(vs ...uuid.UUID) predicate.ManagerRelationship
ManagedPrincipalIDIn applies the In predicate on the "managed_principal_id" field.
func ManagedPrincipalIDNEQ ¶
func ManagedPrincipalIDNEQ(v uuid.UUID) predicate.ManagerRelationship
ManagedPrincipalIDNEQ applies the NEQ predicate on the "managed_principal_id" field.
func ManagedPrincipalIDNotIn ¶
func ManagedPrincipalIDNotIn(vs ...uuid.UUID) predicate.ManagerRelationship
ManagedPrincipalIDNotIn applies the NotIn predicate on the "managed_principal_id" field.
func ManagerPrincipalID ¶
func ManagerPrincipalID(v uuid.UUID) predicate.ManagerRelationship
ManagerPrincipalID applies equality check predicate on the "manager_principal_id" field. It's identical to ManagerPrincipalIDEQ.
func ManagerPrincipalIDEQ ¶
func ManagerPrincipalIDEQ(v uuid.UUID) predicate.ManagerRelationship
ManagerPrincipalIDEQ applies the EQ predicate on the "manager_principal_id" field.
func ManagerPrincipalIDIn ¶
func ManagerPrincipalIDIn(vs ...uuid.UUID) predicate.ManagerRelationship
ManagerPrincipalIDIn applies the In predicate on the "manager_principal_id" field.
func ManagerPrincipalIDNEQ ¶
func ManagerPrincipalIDNEQ(v uuid.UUID) predicate.ManagerRelationship
ManagerPrincipalIDNEQ applies the NEQ predicate on the "manager_principal_id" field.
func ManagerPrincipalIDNotIn ¶
func ManagerPrincipalIDNotIn(vs ...uuid.UUID) predicate.ManagerRelationship
ManagerPrincipalIDNotIn applies the NotIn predicate on the "manager_principal_id" field.
func Not ¶
func Not(p predicate.ManagerRelationship) predicate.ManagerRelationship
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ManagerRelationship) predicate.ManagerRelationship
Or groups predicates with the OR operator between them.
func Role ¶
func Role(v string) predicate.ManagerRelationship
Role applies equality check predicate on the "role" field. It's identical to RoleEQ.
func RoleContains ¶
func RoleContains(v string) predicate.ManagerRelationship
RoleContains applies the Contains predicate on the "role" field.
func RoleContainsFold ¶
func RoleContainsFold(v string) predicate.ManagerRelationship
RoleContainsFold applies the ContainsFold predicate on the "role" field.
func RoleEQ ¶
func RoleEQ(v string) predicate.ManagerRelationship
RoleEQ applies the EQ predicate on the "role" field.
func RoleEqualFold ¶
func RoleEqualFold(v string) predicate.ManagerRelationship
RoleEqualFold applies the EqualFold predicate on the "role" field.
func RoleGT ¶
func RoleGT(v string) predicate.ManagerRelationship
RoleGT applies the GT predicate on the "role" field.
func RoleGTE ¶
func RoleGTE(v string) predicate.ManagerRelationship
RoleGTE applies the GTE predicate on the "role" field.
func RoleHasPrefix ¶
func RoleHasPrefix(v string) predicate.ManagerRelationship
RoleHasPrefix applies the HasPrefix predicate on the "role" field.
func RoleHasSuffix ¶
func RoleHasSuffix(v string) predicate.ManagerRelationship
RoleHasSuffix applies the HasSuffix predicate on the "role" field.
func RoleIn ¶
func RoleIn(vs ...string) predicate.ManagerRelationship
RoleIn applies the In predicate on the "role" field.
func RoleLT ¶
func RoleLT(v string) predicate.ManagerRelationship
RoleLT applies the LT predicate on the "role" field.
func RoleLTE ¶
func RoleLTE(v string) predicate.ManagerRelationship
RoleLTE applies the LTE predicate on the "role" field.
func RoleNEQ ¶
func RoleNEQ(v string) predicate.ManagerRelationship
RoleNEQ applies the NEQ predicate on the "role" field.
func RoleNotIn ¶
func RoleNotIn(vs ...string) predicate.ManagerRelationship
RoleNotIn applies the NotIn predicate on the "role" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.ManagerRelationship
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.ManagerRelationship
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.ManagerRelationship
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.ManagerRelationship
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.ManagerRelationship
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.ManagerRelationship
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.ManagerRelationship
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.ManagerRelationship
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.ManagerRelationship
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the ManagerRelationship queries.
func ByActive ¶
func ByActive(opts ...sql.OrderTermOption) OrderOption
ByActive orders the results by the active field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedBy ¶
func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
ByCreatedBy orders the results by the created_by field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByManagedField ¶
func ByManagedField(field string, opts ...sql.OrderTermOption) OrderOption
ByManagedField orders the results by managed field.
func ByManagedPrincipalID ¶
func ByManagedPrincipalID(opts ...sql.OrderTermOption) OrderOption
ByManagedPrincipalID orders the results by the managed_principal_id field.
func ByManagerField ¶
func ByManagerField(field string, opts ...sql.OrderTermOption) OrderOption
ByManagerField orders the results by manager field.
func ByManagerPrincipalID ¶
func ByManagerPrincipalID(opts ...sql.OrderTermOption) OrderOption
ByManagerPrincipalID orders the results by the manager_principal_id field.
func ByRole ¶
func ByRole(opts ...sql.OrderTermOption) OrderOption
ByRole orders the results by the role field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.