Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.MappedControl) predicate.MappedControl
- func CreatedAt(v time.Time) predicate.MappedControl
- func CreatedAtEQ(v time.Time) predicate.MappedControl
- func CreatedAtGT(v time.Time) predicate.MappedControl
- func CreatedAtGTE(v time.Time) predicate.MappedControl
- func CreatedAtIn(vs ...time.Time) predicate.MappedControl
- func CreatedAtIsNil() predicate.MappedControl
- func CreatedAtLT(v time.Time) predicate.MappedControl
- func CreatedAtLTE(v time.Time) predicate.MappedControl
- func CreatedAtNEQ(v time.Time) predicate.MappedControl
- func CreatedAtNotIn(vs ...time.Time) predicate.MappedControl
- func CreatedAtNotNil() predicate.MappedControl
- func CreatedBy(v string) predicate.MappedControl
- func CreatedByContains(v string) predicate.MappedControl
- func CreatedByContainsFold(v string) predicate.MappedControl
- func CreatedByEQ(v string) predicate.MappedControl
- func CreatedByEqualFold(v string) predicate.MappedControl
- func CreatedByGT(v string) predicate.MappedControl
- func CreatedByGTE(v string) predicate.MappedControl
- func CreatedByHasPrefix(v string) predicate.MappedControl
- func CreatedByHasSuffix(v string) predicate.MappedControl
- func CreatedByIn(vs ...string) predicate.MappedControl
- func CreatedByIsNil() predicate.MappedControl
- func CreatedByLT(v string) predicate.MappedControl
- func CreatedByLTE(v string) predicate.MappedControl
- func CreatedByNEQ(v string) predicate.MappedControl
- func CreatedByNotIn(vs ...string) predicate.MappedControl
- func CreatedByNotNil() predicate.MappedControl
- func DeletedAt(v time.Time) predicate.MappedControl
- func DeletedAtEQ(v time.Time) predicate.MappedControl
- func DeletedAtGT(v time.Time) predicate.MappedControl
- func DeletedAtGTE(v time.Time) predicate.MappedControl
- func DeletedAtIn(vs ...time.Time) predicate.MappedControl
- func DeletedAtIsNil() predicate.MappedControl
- func DeletedAtLT(v time.Time) predicate.MappedControl
- func DeletedAtLTE(v time.Time) predicate.MappedControl
- func DeletedAtNEQ(v time.Time) predicate.MappedControl
- func DeletedAtNotIn(vs ...time.Time) predicate.MappedControl
- func DeletedAtNotNil() predicate.MappedControl
- func DeletedBy(v string) predicate.MappedControl
- func DeletedByContains(v string) predicate.MappedControl
- func DeletedByContainsFold(v string) predicate.MappedControl
- func DeletedByEQ(v string) predicate.MappedControl
- func DeletedByEqualFold(v string) predicate.MappedControl
- func DeletedByGT(v string) predicate.MappedControl
- func DeletedByGTE(v string) predicate.MappedControl
- func DeletedByHasPrefix(v string) predicate.MappedControl
- func DeletedByHasSuffix(v string) predicate.MappedControl
- func DeletedByIn(vs ...string) predicate.MappedControl
- func DeletedByIsNil() predicate.MappedControl
- func DeletedByLT(v string) predicate.MappedControl
- func DeletedByLTE(v string) predicate.MappedControl
- func DeletedByNEQ(v string) predicate.MappedControl
- func DeletedByNotIn(vs ...string) predicate.MappedControl
- func DeletedByNotNil() predicate.MappedControl
- func HasControls() predicate.MappedControl
- func HasControlsWith(preds ...predicate.Control) predicate.MappedControl
- func HasSubcontrols() predicate.MappedControl
- func HasSubcontrolsWith(preds ...predicate.Subcontrol) predicate.MappedControl
- func ID(id string) predicate.MappedControl
- func IDContainsFold(id string) predicate.MappedControl
- func IDEQ(id string) predicate.MappedControl
- func IDEqualFold(id string) predicate.MappedControl
- func IDGT(id string) predicate.MappedControl
- func IDGTE(id string) predicate.MappedControl
- func IDIn(ids ...string) predicate.MappedControl
- func IDLT(id string) predicate.MappedControl
- func IDLTE(id string) predicate.MappedControl
- func IDNEQ(id string) predicate.MappedControl
- func IDNotIn(ids ...string) predicate.MappedControl
- func MappingType(v string) predicate.MappedControl
- func MappingTypeContains(v string) predicate.MappedControl
- func MappingTypeContainsFold(v string) predicate.MappedControl
- func MappingTypeEQ(v string) predicate.MappedControl
- func MappingTypeEqualFold(v string) predicate.MappedControl
- func MappingTypeGT(v string) predicate.MappedControl
- func MappingTypeGTE(v string) predicate.MappedControl
- func MappingTypeHasPrefix(v string) predicate.MappedControl
- func MappingTypeHasSuffix(v string) predicate.MappedControl
- func MappingTypeIn(vs ...string) predicate.MappedControl
- func MappingTypeIsNil() predicate.MappedControl
- func MappingTypeLT(v string) predicate.MappedControl
- func MappingTypeLTE(v string) predicate.MappedControl
- func MappingTypeNEQ(v string) predicate.MappedControl
- func MappingTypeNotIn(vs ...string) predicate.MappedControl
- func MappingTypeNotNil() predicate.MappedControl
- func Not(p predicate.MappedControl) predicate.MappedControl
- func Or(predicates ...predicate.MappedControl) predicate.MappedControl
- func Relation(v string) predicate.MappedControl
- func RelationContains(v string) predicate.MappedControl
- func RelationContainsFold(v string) predicate.MappedControl
- func RelationEQ(v string) predicate.MappedControl
- func RelationEqualFold(v string) predicate.MappedControl
- func RelationGT(v string) predicate.MappedControl
- func RelationGTE(v string) predicate.MappedControl
- func RelationHasPrefix(v string) predicate.MappedControl
- func RelationHasSuffix(v string) predicate.MappedControl
- func RelationIn(vs ...string) predicate.MappedControl
- func RelationIsNil() predicate.MappedControl
- func RelationLT(v string) predicate.MappedControl
- func RelationLTE(v string) predicate.MappedControl
- func RelationNEQ(v string) predicate.MappedControl
- func RelationNotIn(vs ...string) predicate.MappedControl
- func RelationNotNil() predicate.MappedControl
- func TagsIsNil() predicate.MappedControl
- func TagsNotNil() predicate.MappedControl
- func UpdatedAt(v time.Time) predicate.MappedControl
- func UpdatedAtEQ(v time.Time) predicate.MappedControl
- func UpdatedAtGT(v time.Time) predicate.MappedControl
- func UpdatedAtGTE(v time.Time) predicate.MappedControl
- func UpdatedAtIn(vs ...time.Time) predicate.MappedControl
- func UpdatedAtIsNil() predicate.MappedControl
- func UpdatedAtLT(v time.Time) predicate.MappedControl
- func UpdatedAtLTE(v time.Time) predicate.MappedControl
- func UpdatedAtNEQ(v time.Time) predicate.MappedControl
- func UpdatedAtNotIn(vs ...time.Time) predicate.MappedControl
- func UpdatedAtNotNil() predicate.MappedControl
- func UpdatedBy(v string) predicate.MappedControl
- func UpdatedByContains(v string) predicate.MappedControl
- func UpdatedByContainsFold(v string) predicate.MappedControl
- func UpdatedByEQ(v string) predicate.MappedControl
- func UpdatedByEqualFold(v string) predicate.MappedControl
- func UpdatedByGT(v string) predicate.MappedControl
- func UpdatedByGTE(v string) predicate.MappedControl
- func UpdatedByHasPrefix(v string) predicate.MappedControl
- func UpdatedByHasSuffix(v string) predicate.MappedControl
- func UpdatedByIn(vs ...string) predicate.MappedControl
- func UpdatedByIsNil() predicate.MappedControl
- func UpdatedByLT(v string) predicate.MappedControl
- func UpdatedByLTE(v string) predicate.MappedControl
- func UpdatedByNEQ(v string) predicate.MappedControl
- func UpdatedByNotIn(vs ...string) predicate.MappedControl
- func UpdatedByNotNil() predicate.MappedControl
- func ValidColumn(column string) bool
- type OrderOption
- func ByControls(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByControlsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMappingType(opts ...sql.OrderTermOption) OrderOption
- func ByRelation(opts ...sql.OrderTermOption) OrderOption
- func BySubcontrols(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySubcontrolsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the mappedcontrol type in the database. Label = "mapped_control" // 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" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldDeletedBy holds the string denoting the deleted_by field in the database. FieldDeletedBy = "deleted_by" // FieldTags holds the string denoting the tags field in the database. FieldTags = "tags" // FieldMappingType holds the string denoting the mapping_type field in the database. FieldMappingType = "mapping_type" // FieldRelation holds the string denoting the relation field in the database. FieldRelation = "relation" // EdgeControls holds the string denoting the controls edge name in mutations. EdgeControls = "controls" // EdgeSubcontrols holds the string denoting the subcontrols edge name in mutations. EdgeSubcontrols = "subcontrols" // Table holds the table name of the mappedcontrol in the database. Table = "mapped_controls" // ControlsTable is the table that holds the controls relation/edge. The primary key declared below. ControlsTable = "mapped_control_controls" // ControlsInverseTable is the table name for the Control entity. // It exists in this package in order to avoid circular dependency with the "control" package. ControlsInverseTable = "controls" // SubcontrolsTable is the table that holds the subcontrols relation/edge. The primary key declared below. SubcontrolsTable = "mapped_control_subcontrols" // SubcontrolsInverseTable is the table name for the Subcontrol entity. // It exists in this package in order to avoid circular dependency with the "subcontrol" package. SubcontrolsInverseTable = "subcontrols" )
Variables ¶
var ( // ControlsPrimaryKey and ControlsColumn2 are the table columns denoting the // primary key for the controls relation (M2M). ControlsPrimaryKey = []string{"mapped_control_id", "control_id"} // SubcontrolsPrimaryKey and SubcontrolsColumn2 are the table columns denoting the // primary key for the subcontrols relation (M2M). SubcontrolsPrimaryKey = []string{"mapped_control_id", "subcontrol_id"} )
var ( Hooks [3]ent.Hook Interceptors [1]ent.Interceptor Policy ent.Policy // 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 // DefaultTags holds the default value on creation for the "tags" field. DefaultTags []string // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
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/theopenlane/core/internal/ent/generated/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldDeletedAt, FieldDeletedBy, FieldTags, FieldMappingType, FieldRelation, }
Columns holds all SQL columns for mappedcontrol fields.
Functions ¶
func And ¶
func And(predicates ...predicate.MappedControl) predicate.MappedControl
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.MappedControl
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.MappedControl
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.MappedControl
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.MappedControl
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.MappedControl
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
func CreatedAtIsNil() predicate.MappedControl
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.MappedControl
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.MappedControl
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.MappedControl
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.MappedControl
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
func CreatedAtNotNil() predicate.MappedControl
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedBy ¶
func CreatedBy(v string) predicate.MappedControl
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
func CreatedByContains(v string) predicate.MappedControl
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
func CreatedByContainsFold(v string) predicate.MappedControl
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
func CreatedByEQ(v string) predicate.MappedControl
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
func CreatedByEqualFold(v string) predicate.MappedControl
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
func CreatedByGT(v string) predicate.MappedControl
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
func CreatedByGTE(v string) predicate.MappedControl
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
func CreatedByHasPrefix(v string) predicate.MappedControl
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
func CreatedByHasSuffix(v string) predicate.MappedControl
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
func CreatedByIn(vs ...string) predicate.MappedControl
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
func CreatedByIsNil() predicate.MappedControl
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
func CreatedByLT(v string) predicate.MappedControl
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
func CreatedByLTE(v string) predicate.MappedControl
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
func CreatedByNEQ(v string) predicate.MappedControl
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
func CreatedByNotIn(vs ...string) predicate.MappedControl
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
func CreatedByNotNil() predicate.MappedControl
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.MappedControl
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.MappedControl
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.MappedControl
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.MappedControl
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.MappedControl
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.MappedControl
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.MappedControl
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.MappedControl
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.MappedControl
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.MappedControl
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.MappedControl
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedBy ¶
func DeletedBy(v string) predicate.MappedControl
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByContains ¶
func DeletedByContains(v string) predicate.MappedControl
DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContainsFold ¶
func DeletedByContainsFold(v string) predicate.MappedControl
DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByEQ ¶
func DeletedByEQ(v string) predicate.MappedControl
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEqualFold ¶
func DeletedByEqualFold(v string) predicate.MappedControl
DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByGT ¶
func DeletedByGT(v string) predicate.MappedControl
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶
func DeletedByGTE(v string) predicate.MappedControl
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByHasPrefix ¶
func DeletedByHasPrefix(v string) predicate.MappedControl
DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasSuffix ¶
func DeletedByHasSuffix(v string) predicate.MappedControl
DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByIn ¶
func DeletedByIn(vs ...string) predicate.MappedControl
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶
func DeletedByIsNil() predicate.MappedControl
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶
func DeletedByLT(v string) predicate.MappedControl
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶
func DeletedByLTE(v string) predicate.MappedControl
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶
func DeletedByNEQ(v string) predicate.MappedControl
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶
func DeletedByNotIn(vs ...string) predicate.MappedControl
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶
func DeletedByNotNil() predicate.MappedControl
DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func HasControls ¶
func HasControls() predicate.MappedControl
HasControls applies the HasEdge predicate on the "controls" edge.
func HasControlsWith ¶
func HasControlsWith(preds ...predicate.Control) predicate.MappedControl
HasControlsWith applies the HasEdge predicate on the "controls" edge with a given conditions (other predicates).
func HasSubcontrols ¶
func HasSubcontrols() predicate.MappedControl
HasSubcontrols applies the HasEdge predicate on the "subcontrols" edge.
func HasSubcontrolsWith ¶
func HasSubcontrolsWith(preds ...predicate.Subcontrol) predicate.MappedControl
HasSubcontrolsWith applies the HasEdge predicate on the "subcontrols" edge with a given conditions (other predicates).
func IDContainsFold ¶
func IDContainsFold(id string) predicate.MappedControl
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.MappedControl
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.MappedControl
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.MappedControl
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.MappedControl
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.MappedControl
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.MappedControl
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.MappedControl
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.MappedControl
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.MappedControl
IDNotIn applies the NotIn predicate on the ID field.
func MappingType ¶
func MappingType(v string) predicate.MappedControl
MappingType applies equality check predicate on the "mapping_type" field. It's identical to MappingTypeEQ.
func MappingTypeContains ¶
func MappingTypeContains(v string) predicate.MappedControl
MappingTypeContains applies the Contains predicate on the "mapping_type" field.
func MappingTypeContainsFold ¶
func MappingTypeContainsFold(v string) predicate.MappedControl
MappingTypeContainsFold applies the ContainsFold predicate on the "mapping_type" field.
func MappingTypeEQ ¶
func MappingTypeEQ(v string) predicate.MappedControl
MappingTypeEQ applies the EQ predicate on the "mapping_type" field.
func MappingTypeEqualFold ¶
func MappingTypeEqualFold(v string) predicate.MappedControl
MappingTypeEqualFold applies the EqualFold predicate on the "mapping_type" field.
func MappingTypeGT ¶
func MappingTypeGT(v string) predicate.MappedControl
MappingTypeGT applies the GT predicate on the "mapping_type" field.
func MappingTypeGTE ¶
func MappingTypeGTE(v string) predicate.MappedControl
MappingTypeGTE applies the GTE predicate on the "mapping_type" field.
func MappingTypeHasPrefix ¶
func MappingTypeHasPrefix(v string) predicate.MappedControl
MappingTypeHasPrefix applies the HasPrefix predicate on the "mapping_type" field.
func MappingTypeHasSuffix ¶
func MappingTypeHasSuffix(v string) predicate.MappedControl
MappingTypeHasSuffix applies the HasSuffix predicate on the "mapping_type" field.
func MappingTypeIn ¶
func MappingTypeIn(vs ...string) predicate.MappedControl
MappingTypeIn applies the In predicate on the "mapping_type" field.
func MappingTypeIsNil ¶
func MappingTypeIsNil() predicate.MappedControl
MappingTypeIsNil applies the IsNil predicate on the "mapping_type" field.
func MappingTypeLT ¶
func MappingTypeLT(v string) predicate.MappedControl
MappingTypeLT applies the LT predicate on the "mapping_type" field.
func MappingTypeLTE ¶
func MappingTypeLTE(v string) predicate.MappedControl
MappingTypeLTE applies the LTE predicate on the "mapping_type" field.
func MappingTypeNEQ ¶
func MappingTypeNEQ(v string) predicate.MappedControl
MappingTypeNEQ applies the NEQ predicate on the "mapping_type" field.
func MappingTypeNotIn ¶
func MappingTypeNotIn(vs ...string) predicate.MappedControl
MappingTypeNotIn applies the NotIn predicate on the "mapping_type" field.
func MappingTypeNotNil ¶
func MappingTypeNotNil() predicate.MappedControl
MappingTypeNotNil applies the NotNil predicate on the "mapping_type" field.
func Not ¶
func Not(p predicate.MappedControl) predicate.MappedControl
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.MappedControl) predicate.MappedControl
Or groups predicates with the OR operator between them.
func Relation ¶
func Relation(v string) predicate.MappedControl
Relation applies equality check predicate on the "relation" field. It's identical to RelationEQ.
func RelationContains ¶
func RelationContains(v string) predicate.MappedControl
RelationContains applies the Contains predicate on the "relation" field.
func RelationContainsFold ¶
func RelationContainsFold(v string) predicate.MappedControl
RelationContainsFold applies the ContainsFold predicate on the "relation" field.
func RelationEQ ¶
func RelationEQ(v string) predicate.MappedControl
RelationEQ applies the EQ predicate on the "relation" field.
func RelationEqualFold ¶
func RelationEqualFold(v string) predicate.MappedControl
RelationEqualFold applies the EqualFold predicate on the "relation" field.
func RelationGT ¶
func RelationGT(v string) predicate.MappedControl
RelationGT applies the GT predicate on the "relation" field.
func RelationGTE ¶
func RelationGTE(v string) predicate.MappedControl
RelationGTE applies the GTE predicate on the "relation" field.
func RelationHasPrefix ¶
func RelationHasPrefix(v string) predicate.MappedControl
RelationHasPrefix applies the HasPrefix predicate on the "relation" field.
func RelationHasSuffix ¶
func RelationHasSuffix(v string) predicate.MappedControl
RelationHasSuffix applies the HasSuffix predicate on the "relation" field.
func RelationIn ¶
func RelationIn(vs ...string) predicate.MappedControl
RelationIn applies the In predicate on the "relation" field.
func RelationIsNil ¶
func RelationIsNil() predicate.MappedControl
RelationIsNil applies the IsNil predicate on the "relation" field.
func RelationLT ¶
func RelationLT(v string) predicate.MappedControl
RelationLT applies the LT predicate on the "relation" field.
func RelationLTE ¶
func RelationLTE(v string) predicate.MappedControl
RelationLTE applies the LTE predicate on the "relation" field.
func RelationNEQ ¶
func RelationNEQ(v string) predicate.MappedControl
RelationNEQ applies the NEQ predicate on the "relation" field.
func RelationNotIn ¶
func RelationNotIn(vs ...string) predicate.MappedControl
RelationNotIn applies the NotIn predicate on the "relation" field.
func RelationNotNil ¶
func RelationNotNil() predicate.MappedControl
RelationNotNil applies the NotNil predicate on the "relation" field.
func TagsIsNil ¶
func TagsIsNil() predicate.MappedControl
TagsIsNil applies the IsNil predicate on the "tags" field.
func TagsNotNil ¶
func TagsNotNil() predicate.MappedControl
TagsNotNil applies the NotNil predicate on the "tags" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.MappedControl
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.MappedControl
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.MappedControl
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.MappedControl
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.MappedControl
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
func UpdatedAtIsNil() predicate.MappedControl
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.MappedControl
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.MappedControl
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.MappedControl
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.MappedControl
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
func UpdatedAtNotNil() predicate.MappedControl
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
func UpdatedBy(v string) predicate.MappedControl
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
func UpdatedByContains(v string) predicate.MappedControl
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
func UpdatedByContainsFold(v string) predicate.MappedControl
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
func UpdatedByEQ(v string) predicate.MappedControl
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
func UpdatedByEqualFold(v string) predicate.MappedControl
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
func UpdatedByGT(v string) predicate.MappedControl
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
func UpdatedByGTE(v string) predicate.MappedControl
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
func UpdatedByHasPrefix(v string) predicate.MappedControl
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
func UpdatedByHasSuffix(v string) predicate.MappedControl
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
func UpdatedByIn(vs ...string) predicate.MappedControl
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
func UpdatedByIsNil() predicate.MappedControl
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
func UpdatedByLT(v string) predicate.MappedControl
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
func UpdatedByLTE(v string) predicate.MappedControl
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
func UpdatedByNEQ(v string) predicate.MappedControl
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
func UpdatedByNotIn(vs ...string) predicate.MappedControl
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
func UpdatedByNotNil() predicate.MappedControl
UpdatedByNotNil applies the NotNil predicate on the "updated_by" 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 MappedControl queries.
func ByControls ¶
func ByControls(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByControls orders the results by controls terms.
func ByControlsCount ¶
func ByControlsCount(opts ...sql.OrderTermOption) OrderOption
ByControlsCount orders the results by controls count.
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 ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDeletedBy ¶
func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
ByDeletedBy orders the results by the deleted_by field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMappingType ¶
func ByMappingType(opts ...sql.OrderTermOption) OrderOption
ByMappingType orders the results by the mapping_type field.
func ByRelation ¶
func ByRelation(opts ...sql.OrderTermOption) OrderOption
ByRelation orders the results by the relation field.
func BySubcontrols ¶
func BySubcontrols(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySubcontrols orders the results by subcontrols terms.
func BySubcontrolsCount ¶
func BySubcontrolsCount(opts ...sql.OrderTermOption) OrderOption
BySubcontrolsCount orders the results by subcontrols count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedBy ¶
func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
ByUpdatedBy orders the results by the updated_by field.