Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Narrative) predicate.Narrative
- func CreatedAt(v time.Time) predicate.Narrative
- func CreatedAtEQ(v time.Time) predicate.Narrative
- func CreatedAtGT(v time.Time) predicate.Narrative
- func CreatedAtGTE(v time.Time) predicate.Narrative
- func CreatedAtIn(vs ...time.Time) predicate.Narrative
- func CreatedAtIsNil() predicate.Narrative
- func CreatedAtLT(v time.Time) predicate.Narrative
- func CreatedAtLTE(v time.Time) predicate.Narrative
- func CreatedAtNEQ(v time.Time) predicate.Narrative
- func CreatedAtNotIn(vs ...time.Time) predicate.Narrative
- func CreatedAtNotNil() predicate.Narrative
- func CreatedBy(v string) predicate.Narrative
- func CreatedByContains(v string) predicate.Narrative
- func CreatedByContainsFold(v string) predicate.Narrative
- func CreatedByEQ(v string) predicate.Narrative
- func CreatedByEqualFold(v string) predicate.Narrative
- func CreatedByGT(v string) predicate.Narrative
- func CreatedByGTE(v string) predicate.Narrative
- func CreatedByHasPrefix(v string) predicate.Narrative
- func CreatedByHasSuffix(v string) predicate.Narrative
- func CreatedByIn(vs ...string) predicate.Narrative
- func CreatedByIsNil() predicate.Narrative
- func CreatedByLT(v string) predicate.Narrative
- func CreatedByLTE(v string) predicate.Narrative
- func CreatedByNEQ(v string) predicate.Narrative
- func CreatedByNotIn(vs ...string) predicate.Narrative
- func CreatedByNotNil() predicate.Narrative
- func DeletedAt(v time.Time) predicate.Narrative
- func DeletedAtEQ(v time.Time) predicate.Narrative
- func DeletedAtGT(v time.Time) predicate.Narrative
- func DeletedAtGTE(v time.Time) predicate.Narrative
- func DeletedAtIn(vs ...time.Time) predicate.Narrative
- func DeletedAtIsNil() predicate.Narrative
- func DeletedAtLT(v time.Time) predicate.Narrative
- func DeletedAtLTE(v time.Time) predicate.Narrative
- func DeletedAtNEQ(v time.Time) predicate.Narrative
- func DeletedAtNotIn(vs ...time.Time) predicate.Narrative
- func DeletedAtNotNil() predicate.Narrative
- func DeletedBy(v string) predicate.Narrative
- func DeletedByContains(v string) predicate.Narrative
- func DeletedByContainsFold(v string) predicate.Narrative
- func DeletedByEQ(v string) predicate.Narrative
- func DeletedByEqualFold(v string) predicate.Narrative
- func DeletedByGT(v string) predicate.Narrative
- func DeletedByGTE(v string) predicate.Narrative
- func DeletedByHasPrefix(v string) predicate.Narrative
- func DeletedByHasSuffix(v string) predicate.Narrative
- func DeletedByIn(vs ...string) predicate.Narrative
- func DeletedByIsNil() predicate.Narrative
- func DeletedByLT(v string) predicate.Narrative
- func DeletedByLTE(v string) predicate.Narrative
- func DeletedByNEQ(v string) predicate.Narrative
- func DeletedByNotIn(vs ...string) predicate.Narrative
- func DeletedByNotNil() predicate.Narrative
- func Description(v string) predicate.Narrative
- func DescriptionContains(v string) predicate.Narrative
- func DescriptionContainsFold(v string) predicate.Narrative
- func DescriptionEQ(v string) predicate.Narrative
- func DescriptionEqualFold(v string) predicate.Narrative
- func DescriptionGT(v string) predicate.Narrative
- func DescriptionGTE(v string) predicate.Narrative
- func DescriptionHasPrefix(v string) predicate.Narrative
- func DescriptionHasSuffix(v string) predicate.Narrative
- func DescriptionIn(vs ...string) predicate.Narrative
- func DescriptionIsNil() predicate.Narrative
- func DescriptionLT(v string) predicate.Narrative
- func DescriptionLTE(v string) predicate.Narrative
- func DescriptionNEQ(v string) predicate.Narrative
- func DescriptionNotIn(vs ...string) predicate.Narrative
- func DescriptionNotNil() predicate.Narrative
- func DetailsIsNil() predicate.Narrative
- func DetailsNotNil() predicate.Narrative
- func HasBlockedGroups() predicate.Narrative
- func HasBlockedGroupsWith(preds ...predicate.Group) predicate.Narrative
- func HasControl() predicate.Narrative
- func HasControlObjective() predicate.Narrative
- func HasControlObjectiveWith(preds ...predicate.ControlObjective) predicate.Narrative
- func HasControlWith(preds ...predicate.Control) predicate.Narrative
- func HasEditors() predicate.Narrative
- func HasEditorsWith(preds ...predicate.Group) predicate.Narrative
- func HasInternalPolicy() predicate.Narrative
- func HasInternalPolicyWith(preds ...predicate.InternalPolicy) predicate.Narrative
- func HasOwner() predicate.Narrative
- func HasOwnerWith(preds ...predicate.Organization) predicate.Narrative
- func HasProcedure() predicate.Narrative
- func HasProcedureWith(preds ...predicate.Procedure) predicate.Narrative
- func HasPrograms() predicate.Narrative
- func HasProgramsWith(preds ...predicate.Program) predicate.Narrative
- func HasViewers() predicate.Narrative
- func HasViewersWith(preds ...predicate.Group) predicate.Narrative
- func ID(id string) predicate.Narrative
- func IDContainsFold(id string) predicate.Narrative
- func IDEQ(id string) predicate.Narrative
- func IDEqualFold(id string) predicate.Narrative
- func IDGT(id string) predicate.Narrative
- func IDGTE(id string) predicate.Narrative
- func IDIn(ids ...string) predicate.Narrative
- func IDLT(id string) predicate.Narrative
- func IDLTE(id string) predicate.Narrative
- func IDNEQ(id string) predicate.Narrative
- func IDNotIn(ids ...string) predicate.Narrative
- func MappingID(v string) predicate.Narrative
- func MappingIDContains(v string) predicate.Narrative
- func MappingIDContainsFold(v string) predicate.Narrative
- func MappingIDEQ(v string) predicate.Narrative
- func MappingIDEqualFold(v string) predicate.Narrative
- func MappingIDGT(v string) predicate.Narrative
- func MappingIDGTE(v string) predicate.Narrative
- func MappingIDHasPrefix(v string) predicate.Narrative
- func MappingIDHasSuffix(v string) predicate.Narrative
- func MappingIDIn(vs ...string) predicate.Narrative
- func MappingIDLT(v string) predicate.Narrative
- func MappingIDLTE(v string) predicate.Narrative
- func MappingIDNEQ(v string) predicate.Narrative
- func MappingIDNotIn(vs ...string) predicate.Narrative
- func Name(v string) predicate.Narrative
- func NameContains(v string) predicate.Narrative
- func NameContainsFold(v string) predicate.Narrative
- func NameEQ(v string) predicate.Narrative
- func NameEqualFold(v string) predicate.Narrative
- func NameGT(v string) predicate.Narrative
- func NameGTE(v string) predicate.Narrative
- func NameHasPrefix(v string) predicate.Narrative
- func NameHasSuffix(v string) predicate.Narrative
- func NameIn(vs ...string) predicate.Narrative
- func NameLT(v string) predicate.Narrative
- func NameLTE(v string) predicate.Narrative
- func NameNEQ(v string) predicate.Narrative
- func NameNotIn(vs ...string) predicate.Narrative
- func Not(p predicate.Narrative) predicate.Narrative
- func Or(predicates ...predicate.Narrative) predicate.Narrative
- func OwnerID(v string) predicate.Narrative
- func OwnerIDContains(v string) predicate.Narrative
- func OwnerIDContainsFold(v string) predicate.Narrative
- func OwnerIDEQ(v string) predicate.Narrative
- func OwnerIDEqualFold(v string) predicate.Narrative
- func OwnerIDGT(v string) predicate.Narrative
- func OwnerIDGTE(v string) predicate.Narrative
- func OwnerIDHasPrefix(v string) predicate.Narrative
- func OwnerIDHasSuffix(v string) predicate.Narrative
- func OwnerIDIn(vs ...string) predicate.Narrative
- func OwnerIDLT(v string) predicate.Narrative
- func OwnerIDLTE(v string) predicate.Narrative
- func OwnerIDNEQ(v string) predicate.Narrative
- func OwnerIDNotIn(vs ...string) predicate.Narrative
- func Satisfies(v string) predicate.Narrative
- func SatisfiesContains(v string) predicate.Narrative
- func SatisfiesContainsFold(v string) predicate.Narrative
- func SatisfiesEQ(v string) predicate.Narrative
- func SatisfiesEqualFold(v string) predicate.Narrative
- func SatisfiesGT(v string) predicate.Narrative
- func SatisfiesGTE(v string) predicate.Narrative
- func SatisfiesHasPrefix(v string) predicate.Narrative
- func SatisfiesHasSuffix(v string) predicate.Narrative
- func SatisfiesIn(vs ...string) predicate.Narrative
- func SatisfiesIsNil() predicate.Narrative
- func SatisfiesLT(v string) predicate.Narrative
- func SatisfiesLTE(v string) predicate.Narrative
- func SatisfiesNEQ(v string) predicate.Narrative
- func SatisfiesNotIn(vs ...string) predicate.Narrative
- func SatisfiesNotNil() predicate.Narrative
- func TagsIsNil() predicate.Narrative
- func TagsNotNil() predicate.Narrative
- func UpdatedAt(v time.Time) predicate.Narrative
- func UpdatedAtEQ(v time.Time) predicate.Narrative
- func UpdatedAtGT(v time.Time) predicate.Narrative
- func UpdatedAtGTE(v time.Time) predicate.Narrative
- func UpdatedAtIn(vs ...time.Time) predicate.Narrative
- func UpdatedAtIsNil() predicate.Narrative
- func UpdatedAtLT(v time.Time) predicate.Narrative
- func UpdatedAtLTE(v time.Time) predicate.Narrative
- func UpdatedAtNEQ(v time.Time) predicate.Narrative
- func UpdatedAtNotIn(vs ...time.Time) predicate.Narrative
- func UpdatedAtNotNil() predicate.Narrative
- func UpdatedBy(v string) predicate.Narrative
- func UpdatedByContains(v string) predicate.Narrative
- func UpdatedByContainsFold(v string) predicate.Narrative
- func UpdatedByEQ(v string) predicate.Narrative
- func UpdatedByEqualFold(v string) predicate.Narrative
- func UpdatedByGT(v string) predicate.Narrative
- func UpdatedByGTE(v string) predicate.Narrative
- func UpdatedByHasPrefix(v string) predicate.Narrative
- func UpdatedByHasSuffix(v string) predicate.Narrative
- func UpdatedByIn(vs ...string) predicate.Narrative
- func UpdatedByIsNil() predicate.Narrative
- func UpdatedByLT(v string) predicate.Narrative
- func UpdatedByLTE(v string) predicate.Narrative
- func UpdatedByNEQ(v string) predicate.Narrative
- func UpdatedByNotIn(vs ...string) predicate.Narrative
- func UpdatedByNotNil() predicate.Narrative
- func ValidColumn(column string) bool
- type OrderOption
- func ByBlockedGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByBlockedGroupsCount(opts ...sql.OrderTermOption) OrderOption
- func ByControl(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByControlCount(opts ...sql.OrderTermOption) OrderOption
- func ByControlObjective(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByControlObjectiveCount(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 ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByEditors(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEditorsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInternalPolicy(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByInternalPolicyCount(opts ...sql.OrderTermOption) OrderOption
- func ByMappingID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func ByProcedure(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProcedureCount(opts ...sql.OrderTermOption) OrderOption
- func ByPrograms(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProgramsCount(opts ...sql.OrderTermOption) OrderOption
- func BySatisfies(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByViewers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByViewersCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the narrative type in the database. Label = "narrative" // 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" // FieldMappingID holds the string denoting the mapping_id field in the database. FieldMappingID = "mapping_id" // FieldTags holds the string denoting the tags field in the database. FieldTags = "tags" // FieldOwnerID holds the string denoting the owner_id field in the database. FieldOwnerID = "owner_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldSatisfies holds the string denoting the satisfies field in the database. FieldSatisfies = "satisfies" // FieldDetails holds the string denoting the details field in the database. FieldDetails = "details" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeBlockedGroups holds the string denoting the blocked_groups edge name in mutations. EdgeBlockedGroups = "blocked_groups" // EdgeEditors holds the string denoting the editors edge name in mutations. EdgeEditors = "editors" // EdgeViewers holds the string denoting the viewers edge name in mutations. EdgeViewers = "viewers" // EdgeInternalPolicy holds the string denoting the internal_policy edge name in mutations. EdgeInternalPolicy = "internal_policy" // EdgeControl holds the string denoting the control edge name in mutations. EdgeControl = "control" // EdgeProcedure holds the string denoting the procedure edge name in mutations. EdgeProcedure = "procedure" // EdgeControlObjective holds the string denoting the control_objective edge name in mutations. EdgeControlObjective = "control_objective" // EdgePrograms holds the string denoting the programs edge name in mutations. EdgePrograms = "programs" // Table holds the table name of the narrative in the database. Table = "narratives" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "narratives" // OwnerInverseTable is the table name for the Organization entity. // It exists in this package in order to avoid circular dependency with the "organization" package. OwnerInverseTable = "organizations" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "owner_id" // BlockedGroupsTable is the table that holds the blocked_groups relation/edge. The primary key declared below. BlockedGroupsTable = "narrative_blocked_groups" // BlockedGroupsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. BlockedGroupsInverseTable = "groups" // EditorsTable is the table that holds the editors relation/edge. The primary key declared below. EditorsTable = "narrative_editors" // EditorsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. EditorsInverseTable = "groups" // ViewersTable is the table that holds the viewers relation/edge. The primary key declared below. ViewersTable = "narrative_viewers" // ViewersInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. ViewersInverseTable = "groups" // InternalPolicyTable is the table that holds the internal_policy relation/edge. The primary key declared below. InternalPolicyTable = "internal_policy_narratives" // InternalPolicyInverseTable is the table name for the InternalPolicy entity. // It exists in this package in order to avoid circular dependency with the "internalpolicy" package. InternalPolicyInverseTable = "internal_policies" // ControlTable is the table that holds the control relation/edge. The primary key declared below. ControlTable = "control_narratives" // ControlInverseTable is the table name for the Control entity. // It exists in this package in order to avoid circular dependency with the "control" package. ControlInverseTable = "controls" // ProcedureTable is the table that holds the procedure relation/edge. The primary key declared below. ProcedureTable = "procedure_narratives" // ProcedureInverseTable is the table name for the Procedure entity. // It exists in this package in order to avoid circular dependency with the "procedure" package. ProcedureInverseTable = "procedures" // ControlObjectiveTable is the table that holds the control_objective relation/edge. The primary key declared below. ControlObjectiveTable = "control_objective_narratives" // ControlObjectiveInverseTable is the table name for the ControlObjective entity. // It exists in this package in order to avoid circular dependency with the "controlobjective" package. ControlObjectiveInverseTable = "control_objectives" // ProgramsTable is the table that holds the programs relation/edge. The primary key declared below. ProgramsTable = "program_narratives" // ProgramsInverseTable is the table name for the Program entity. // It exists in this package in order to avoid circular dependency with the "program" package. ProgramsInverseTable = "programs" )
Variables ¶
var ( // BlockedGroupsPrimaryKey and BlockedGroupsColumn2 are the table columns denoting the // primary key for the blocked_groups relation (M2M). BlockedGroupsPrimaryKey = []string{"narrative_id", "group_id"} // EditorsPrimaryKey and EditorsColumn2 are the table columns denoting the // primary key for the editors relation (M2M). EditorsPrimaryKey = []string{"narrative_id", "group_id"} // ViewersPrimaryKey and ViewersColumn2 are the table columns denoting the // primary key for the viewers relation (M2M). ViewersPrimaryKey = []string{"narrative_id", "group_id"} // InternalPolicyPrimaryKey and InternalPolicyColumn2 are the table columns denoting the // primary key for the internal_policy relation (M2M). InternalPolicyPrimaryKey = []string{"internal_policy_id", "narrative_id"} // ControlPrimaryKey and ControlColumn2 are the table columns denoting the // primary key for the control relation (M2M). ControlPrimaryKey = []string{"control_id", "narrative_id"} // ProcedurePrimaryKey and ProcedureColumn2 are the table columns denoting the // primary key for the procedure relation (M2M). ProcedurePrimaryKey = []string{"procedure_id", "narrative_id"} // ControlObjectivePrimaryKey and ControlObjectiveColumn2 are the table columns denoting the // primary key for the control_objective relation (M2M). ControlObjectivePrimaryKey = []string{"control_objective_id", "narrative_id"} // ProgramsPrimaryKey and ProgramsColumn2 are the table columns denoting the // primary key for the programs relation (M2M). ProgramsPrimaryKey = []string{"program_id", "narrative_id"} )
var ( Hooks [9]ent.Hook Interceptors [2]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 // DefaultMappingID holds the default value on creation for the "mapping_id" field. DefaultMappingID func() string // DefaultTags holds the default value on creation for the "tags" field. DefaultTags []string // OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save. OwnerIDValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // 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, FieldMappingID, FieldTags, FieldOwnerID, FieldName, FieldDescription, FieldSatisfies, FieldDetails, }
Columns holds all SQL columns for narrative fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedBy ¶
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByContains ¶
DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContainsFold ¶
DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByEQ ¶
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEqualFold ¶
DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByGT ¶
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByHasPrefix ¶
DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasSuffix ¶
DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByIn ¶
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶
DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func DetailsIsNil ¶
DetailsIsNil applies the IsNil predicate on the "details" field.
func DetailsNotNil ¶
DetailsNotNil applies the NotNil predicate on the "details" field.
func HasBlockedGroups ¶ added in v0.4.4
HasBlockedGroups applies the HasEdge predicate on the "blocked_groups" edge.
func HasBlockedGroupsWith ¶ added in v0.4.4
HasBlockedGroupsWith applies the HasEdge predicate on the "blocked_groups" edge with a given conditions (other predicates).
func HasControl ¶
HasControl applies the HasEdge predicate on the "control" edge.
func HasControlObjective ¶ added in v0.6.1
HasControlObjective applies the HasEdge predicate on the "control_objective" edge.
func HasControlObjectiveWith ¶ added in v0.6.1
func HasControlObjectiveWith(preds ...predicate.ControlObjective) predicate.Narrative
HasControlObjectiveWith applies the HasEdge predicate on the "control_objective" edge with a given conditions (other predicates).
func HasControlWith ¶
HasControlWith applies the HasEdge predicate on the "control" edge with a given conditions (other predicates).
func HasEditors ¶ added in v0.4.4
HasEditors applies the HasEdge predicate on the "editors" edge.
func HasEditorsWith ¶ added in v0.4.4
HasEditorsWith applies the HasEdge predicate on the "editors" edge with a given conditions (other predicates).
func HasInternalPolicy ¶ added in v0.6.1
HasInternalPolicy applies the HasEdge predicate on the "internal_policy" edge.
func HasInternalPolicyWith ¶ added in v0.6.1
func HasInternalPolicyWith(preds ...predicate.InternalPolicy) predicate.Narrative
HasInternalPolicyWith applies the HasEdge predicate on the "internal_policy" edge with a given conditions (other predicates).
func HasOwnerWith ¶ added in v0.4.4
func HasOwnerWith(preds ...predicate.Organization) predicate.Narrative
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasProcedure ¶
HasProcedure applies the HasEdge predicate on the "procedure" edge.
func HasProcedureWith ¶
HasProcedureWith applies the HasEdge predicate on the "procedure" edge with a given conditions (other predicates).
func HasPrograms ¶ added in v0.4.4
HasPrograms applies the HasEdge predicate on the "programs" edge.
func HasProgramsWith ¶ added in v0.4.4
HasProgramsWith applies the HasEdge predicate on the "programs" edge with a given conditions (other predicates).
func HasViewers ¶ added in v0.4.4
HasViewers applies the HasEdge predicate on the "viewers" edge.
func HasViewersWith ¶ added in v0.4.4
HasViewersWith applies the HasEdge predicate on the "viewers" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func MappingID ¶
MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.
func MappingIDContains ¶
MappingIDContains applies the Contains predicate on the "mapping_id" field.
func MappingIDContainsFold ¶
MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.
func MappingIDEQ ¶
MappingIDEQ applies the EQ predicate on the "mapping_id" field.
func MappingIDEqualFold ¶
MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.
func MappingIDGT ¶
MappingIDGT applies the GT predicate on the "mapping_id" field.
func MappingIDGTE ¶
MappingIDGTE applies the GTE predicate on the "mapping_id" field.
func MappingIDHasPrefix ¶
MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.
func MappingIDHasSuffix ¶
MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.
func MappingIDIn ¶
MappingIDIn applies the In predicate on the "mapping_id" field.
func MappingIDLT ¶
MappingIDLT applies the LT predicate on the "mapping_id" field.
func MappingIDLTE ¶
MappingIDLTE applies the LTE predicate on the "mapping_id" field.
func MappingIDNEQ ¶
MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.
func MappingIDNotIn ¶
MappingIDNotIn applies the NotIn predicate on the "mapping_id" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func OwnerID ¶ added in v0.4.4
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDContains ¶ added in v0.4.4
OwnerIDContains applies the Contains predicate on the "owner_id" field.
func OwnerIDContainsFold ¶ added in v0.4.4
OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.
func OwnerIDEqualFold ¶ added in v0.4.4
OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.
func OwnerIDGTE ¶ added in v0.4.4
OwnerIDGTE applies the GTE predicate on the "owner_id" field.
func OwnerIDHasPrefix ¶ added in v0.4.4
OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.
func OwnerIDHasSuffix ¶ added in v0.4.4
OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.
func OwnerIDLTE ¶ added in v0.4.4
OwnerIDLTE applies the LTE predicate on the "owner_id" field.
func OwnerIDNEQ ¶ added in v0.4.4
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶ added in v0.4.4
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func Satisfies ¶
Satisfies applies equality check predicate on the "satisfies" field. It's identical to SatisfiesEQ.
func SatisfiesContains ¶
SatisfiesContains applies the Contains predicate on the "satisfies" field.
func SatisfiesContainsFold ¶
SatisfiesContainsFold applies the ContainsFold predicate on the "satisfies" field.
func SatisfiesEQ ¶
SatisfiesEQ applies the EQ predicate on the "satisfies" field.
func SatisfiesEqualFold ¶
SatisfiesEqualFold applies the EqualFold predicate on the "satisfies" field.
func SatisfiesGT ¶
SatisfiesGT applies the GT predicate on the "satisfies" field.
func SatisfiesGTE ¶
SatisfiesGTE applies the GTE predicate on the "satisfies" field.
func SatisfiesHasPrefix ¶
SatisfiesHasPrefix applies the HasPrefix predicate on the "satisfies" field.
func SatisfiesHasSuffix ¶
SatisfiesHasSuffix applies the HasSuffix predicate on the "satisfies" field.
func SatisfiesIn ¶
SatisfiesIn applies the In predicate on the "satisfies" field.
func SatisfiesIsNil ¶
SatisfiesIsNil applies the IsNil predicate on the "satisfies" field.
func SatisfiesLT ¶
SatisfiesLT applies the LT predicate on the "satisfies" field.
func SatisfiesLTE ¶
SatisfiesLTE applies the LTE predicate on the "satisfies" field.
func SatisfiesNEQ ¶
SatisfiesNEQ applies the NEQ predicate on the "satisfies" field.
func SatisfiesNotIn ¶
SatisfiesNotIn applies the NotIn predicate on the "satisfies" field.
func SatisfiesNotNil ¶
SatisfiesNotNil applies the NotNil predicate on the "satisfies" field.
func TagsNotNil ¶
TagsNotNil applies the NotNil predicate on the "tags" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
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 Narrative queries.
func ByBlockedGroups ¶ added in v0.4.4
func ByBlockedGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByBlockedGroups orders the results by blocked_groups terms.
func ByBlockedGroupsCount ¶ added in v0.4.4
func ByBlockedGroupsCount(opts ...sql.OrderTermOption) OrderOption
ByBlockedGroupsCount orders the results by blocked_groups count.
func ByControl ¶
func ByControl(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByControl orders the results by control terms.
func ByControlCount ¶
func ByControlCount(opts ...sql.OrderTermOption) OrderOption
ByControlCount orders the results by control count.
func ByControlObjective ¶ added in v0.6.1
func ByControlObjective(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByControlObjective orders the results by control_objective terms.
func ByControlObjectiveCount ¶ added in v0.6.1
func ByControlObjectiveCount(opts ...sql.OrderTermOption) OrderOption
ByControlObjectiveCount orders the results by control_objective 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 ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByEditors ¶ added in v0.4.4
func ByEditors(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEditors orders the results by editors terms.
func ByEditorsCount ¶ added in v0.4.4
func ByEditorsCount(opts ...sql.OrderTermOption) OrderOption
ByEditorsCount orders the results by editors count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInternalPolicy ¶ added in v0.6.1
func ByInternalPolicy(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByInternalPolicy orders the results by internal_policy terms.
func ByInternalPolicyCount ¶ added in v0.6.1
func ByInternalPolicyCount(opts ...sql.OrderTermOption) OrderOption
ByInternalPolicyCount orders the results by internal_policy count.
func ByMappingID ¶
func ByMappingID(opts ...sql.OrderTermOption) OrderOption
ByMappingID orders the results by the mapping_id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOwnerField ¶ added in v0.4.4
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByOwnerID ¶ added in v0.4.4
func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
ByOwnerID orders the results by the owner_id field.
func ByProcedure ¶
func ByProcedure(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProcedure orders the results by procedure terms.
func ByProcedureCount ¶
func ByProcedureCount(opts ...sql.OrderTermOption) OrderOption
ByProcedureCount orders the results by procedure count.
func ByPrograms ¶ added in v0.4.4
func ByPrograms(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPrograms orders the results by programs terms.
func ByProgramsCount ¶ added in v0.4.4
func ByProgramsCount(opts ...sql.OrderTermOption) OrderOption
ByProgramsCount orders the results by programs count.
func BySatisfies ¶
func BySatisfies(opts ...sql.OrderTermOption) OrderOption
BySatisfies orders the results by the satisfies field.
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.
func ByViewers ¶ added in v0.4.4
func ByViewers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByViewers orders the results by viewers terms.
func ByViewersCount ¶ added in v0.4.4
func ByViewersCount(opts ...sql.OrderTermOption) OrderOption
ByViewersCount orders the results by viewers count.