Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Profile) predicate.Profile
- func ApplyToAll(v bool) predicate.Profile
- func ApplyToAllEQ(v bool) predicate.Profile
- func ApplyToAllNEQ(v bool) predicate.Profile
- func HasIssues() predicate.Profile
- func HasIssuesWith(preds ...predicate.ProfileIssue) predicate.Profile
- func HasSite() predicate.Profile
- func HasSiteWith(preds ...predicate.Site) predicate.Profile
- func HasTags() predicate.Profile
- func HasTagsWith(preds ...predicate.Tag) predicate.Profile
- func HasTasks() predicate.Profile
- func HasTasksWith(preds ...predicate.Task) predicate.Profile
- func ID(id int) predicate.Profile
- func IDEQ(id int) predicate.Profile
- func IDGT(id int) predicate.Profile
- func IDGTE(id int) predicate.Profile
- func IDIn(ids ...int) predicate.Profile
- func IDLT(id int) predicate.Profile
- func IDLTE(id int) predicate.Profile
- func IDNEQ(id int) predicate.Profile
- func IDNotIn(ids ...int) predicate.Profile
- func Name(v string) predicate.Profile
- func NameContains(v string) predicate.Profile
- func NameContainsFold(v string) predicate.Profile
- func NameEQ(v string) predicate.Profile
- func NameEqualFold(v string) predicate.Profile
- func NameGT(v string) predicate.Profile
- func NameGTE(v string) predicate.Profile
- func NameHasPrefix(v string) predicate.Profile
- func NameHasSuffix(v string) predicate.Profile
- func NameIn(vs ...string) predicate.Profile
- func NameLT(v string) predicate.Profile
- func NameLTE(v string) predicate.Profile
- func NameNEQ(v string) predicate.Profile
- func NameNotIn(vs ...string) predicate.Profile
- func Not(p predicate.Profile) predicate.Profile
- func Or(predicates ...predicate.Profile) predicate.Profile
- func TypeEQ(v Type) predicate.Profile
- func TypeIn(vs ...Type) predicate.Profile
- func TypeIsNil() predicate.Profile
- func TypeNEQ(v Type) predicate.Profile
- func TypeNotIn(vs ...Type) predicate.Profile
- func TypeNotNil() predicate.Profile
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type OrderOption
- func ByApplyToAll(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIssues(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByIssuesCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func BySiteField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTagsCount(opts ...sql.OrderTermOption) OrderOption
- func ByTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTasksCount(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- type Type
Constants ¶
const ( // Label holds the string label denoting the profile type in the database. Label = "profile" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldApplyToAll holds the string denoting the apply_to_all field in the database. FieldApplyToAll = "apply_to_all" // FieldType holds the string denoting the type field in the database. FieldType = "type" // EdgeTags holds the string denoting the tags edge name in mutations. EdgeTags = "tags" // EdgeTasks holds the string denoting the tasks edge name in mutations. EdgeTasks = "tasks" // EdgeIssues holds the string denoting the issues edge name in mutations. EdgeIssues = "issues" // EdgeSite holds the string denoting the site edge name in mutations. EdgeSite = "site" // Table holds the table name of the profile in the database. Table = "profiles" // TagsTable is the table that holds the tags relation/edge. The primary key declared below. TagsTable = "profile_tags" // TagsInverseTable is the table name for the Tag entity. // It exists in this package in order to avoid circular dependency with the "tag" package. TagsInverseTable = "tags" // TasksTable is the table that holds the tasks relation/edge. TasksTable = "tasks" // TasksInverseTable is the table name for the Task entity. // It exists in this package in order to avoid circular dependency with the "task" package. TasksInverseTable = "tasks" // TasksColumn is the table column denoting the tasks relation/edge. TasksColumn = "profile_tasks" // IssuesTable is the table that holds the issues relation/edge. IssuesTable = "profile_issues" // IssuesInverseTable is the table name for the ProfileIssue entity. // It exists in this package in order to avoid circular dependency with the "profileissue" package. IssuesInverseTable = "profile_issues" // IssuesColumn is the table column denoting the issues relation/edge. IssuesColumn = "profile_issues" // SiteTable is the table that holds the site relation/edge. SiteTable = "profiles" // SiteInverseTable is the table name for the Site entity. // It exists in this package in order to avoid circular dependency with the "site" package. SiteInverseTable = "sites" // SiteColumn is the table column denoting the site relation/edge. SiteColumn = "site_profiles" )
const DefaultType = TypeWinget
TypeWinget is the default value of the Type enum.
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultApplyToAll holds the default value on creation for the "apply_to_all" field. DefaultApplyToAll bool )
var Columns = []string{ FieldID, FieldName, FieldApplyToAll, FieldType, }
Columns holds all SQL columns for profile fields.
var ForeignKeys = []string{
"site_profiles",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "profiles" table and are not defined as standalone fields in the schema.
var ( // TagsPrimaryKey and TagsColumn2 are the table columns denoting the // primary key for the tags relation (M2M). TagsPrimaryKey = []string{"profile_id", "tag_id"} )
Functions ¶
func ApplyToAll ¶
ApplyToAll applies equality check predicate on the "apply_to_all" field. It's identical to ApplyToAllEQ.
func ApplyToAllEQ ¶
ApplyToAllEQ applies the EQ predicate on the "apply_to_all" field.
func ApplyToAllNEQ ¶
ApplyToAllNEQ applies the NEQ predicate on the "apply_to_all" field.
func HasIssuesWith ¶
func HasIssuesWith(preds ...predicate.ProfileIssue) predicate.Profile
HasIssuesWith applies the HasEdge predicate on the "issues" edge with a given conditions (other predicates).
func HasSiteWith ¶
HasSiteWith applies the HasEdge predicate on the "site" edge with a given conditions (other predicates).
func HasTagsWith ¶
HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).
func HasTasksWith ¶
HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).
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 TypeNotNil ¶
TypeNotNil applies the NotNil predicate on the "type" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
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 Profile queries.
func ByApplyToAll ¶
func ByApplyToAll(opts ...sql.OrderTermOption) OrderOption
ByApplyToAll orders the results by the apply_to_all field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIssues ¶
func ByIssues(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByIssues orders the results by issues terms.
func ByIssuesCount ¶
func ByIssuesCount(opts ...sql.OrderTermOption) OrderOption
ByIssuesCount orders the results by issues count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func BySiteField ¶
func BySiteField(field string, opts ...sql.OrderTermOption) OrderOption
BySiteField orders the results by site field.
func ByTags ¶
func ByTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTags orders the results by tags terms.
func ByTagsCount ¶
func ByTagsCount(opts ...sql.OrderTermOption) OrderOption
ByTagsCount orders the results by tags count.
func ByTasks ¶
func ByTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTasks orders the results by tasks terms.
func ByTasksCount ¶
func ByTasksCount(opts ...sql.OrderTermOption) OrderOption
ByTasksCount orders the results by tasks count.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.