profile

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const DefaultType = TypeWinget

TypeWinget is the default value of the Type enum.

Variables

View Source
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
)

Columns holds all SQL columns for profile fields.

View Source
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.

View Source
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 And

func And(predicates ...predicate.Profile) predicate.Profile

And groups predicates with the AND operator between them.

func ApplyToAll

func ApplyToAll(v bool) predicate.Profile

ApplyToAll applies equality check predicate on the "apply_to_all" field. It's identical to ApplyToAllEQ.

func ApplyToAllEQ

func ApplyToAllEQ(v bool) predicate.Profile

ApplyToAllEQ applies the EQ predicate on the "apply_to_all" field.

func ApplyToAllNEQ

func ApplyToAllNEQ(v bool) predicate.Profile

ApplyToAllNEQ applies the NEQ predicate on the "apply_to_all" field.

func HasIssues

func HasIssues() predicate.Profile

HasIssues applies the HasEdge predicate on the "issues" edge.

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 HasSite

func HasSite() predicate.Profile

HasSite applies the HasEdge predicate on the "site" edge.

func HasSiteWith

func HasSiteWith(preds ...predicate.Site) predicate.Profile

HasSiteWith applies the HasEdge predicate on the "site" edge with a given conditions (other predicates).

func HasTags

func HasTags() predicate.Profile

HasTags applies the HasEdge predicate on the "tags" edge.

func HasTagsWith

func HasTagsWith(preds ...predicate.Tag) predicate.Profile

HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).

func HasTasks

func HasTasks() predicate.Profile

HasTasks applies the HasEdge predicate on the "tasks" edge.

func HasTasksWith

func HasTasksWith(preds ...predicate.Task) predicate.Profile

HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Profile

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Profile

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Profile

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Profile

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Profile

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Profile

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Profile

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Profile

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Profile

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Profile

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Profile

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Profile

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Profile

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Profile

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Profile

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Profile

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Profile

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Profile

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Profile

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Profile

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Profile

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Profile

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Profile

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Profile) predicate.Profile

Or groups predicates with the OR operator between them.

func TypeEQ

func TypeEQ(v Type) predicate.Profile

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.Profile

TypeIn applies the In predicate on the "type" field.

func TypeIsNil

func TypeIsNil() predicate.Profile

TypeIsNil applies the IsNil predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.Profile

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.Profile

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeNotNil

func TypeNotNil() predicate.Profile

TypeNotNil applies the NotNil predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeWinget Type = "winget"
)

Type values.

func (Type) String

func (_type Type) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL