Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tag) predicate.Tag
- func Color(v string) predicate.Tag
- func ColorContains(v string) predicate.Tag
- func ColorContainsFold(v string) predicate.Tag
- func ColorEQ(v string) predicate.Tag
- func ColorEqualFold(v string) predicate.Tag
- func ColorGT(v string) predicate.Tag
- func ColorGTE(v string) predicate.Tag
- func ColorHasPrefix(v string) predicate.Tag
- func ColorHasSuffix(v string) predicate.Tag
- func ColorIn(vs ...string) predicate.Tag
- func ColorLT(v string) predicate.Tag
- func ColorLTE(v string) predicate.Tag
- func ColorNEQ(v string) predicate.Tag
- func ColorNotIn(vs ...string) predicate.Tag
- func Description(v string) predicate.Tag
- func DescriptionContains(v string) predicate.Tag
- func DescriptionContainsFold(v string) predicate.Tag
- func DescriptionEQ(v string) predicate.Tag
- func DescriptionEqualFold(v string) predicate.Tag
- func DescriptionGT(v string) predicate.Tag
- func DescriptionGTE(v string) predicate.Tag
- func DescriptionHasPrefix(v string) predicate.Tag
- func DescriptionHasSuffix(v string) predicate.Tag
- func DescriptionIn(vs ...string) predicate.Tag
- func DescriptionIsNil() predicate.Tag
- func DescriptionLT(v string) predicate.Tag
- func DescriptionLTE(v string) predicate.Tag
- func DescriptionNEQ(v string) predicate.Tag
- func DescriptionNotIn(vs ...string) predicate.Tag
- func DescriptionNotNil() predicate.Tag
- func HasChildren() predicate.Tag
- func HasChildrenWith(preds ...predicate.Tag) predicate.Tag
- func HasOwner() predicate.Tag
- func HasOwnerWith(preds ...predicate.Agent) predicate.Tag
- func HasParent() predicate.Tag
- func HasParentWith(preds ...predicate.Tag) predicate.Tag
- func HasProfile() predicate.Tag
- func HasProfileWith(preds ...predicate.Profile) predicate.Tag
- func HasTenant() predicate.Tag
- func HasTenantWith(preds ...predicate.Tenant) predicate.Tag
- func ID(id int) predicate.Tag
- func IDEQ(id int) predicate.Tag
- func IDGT(id int) predicate.Tag
- func IDGTE(id int) predicate.Tag
- func IDIn(ids ...int) predicate.Tag
- func IDLT(id int) predicate.Tag
- func IDLTE(id int) predicate.Tag
- func IDNEQ(id int) predicate.Tag
- func IDNotIn(ids ...int) predicate.Tag
- func Not(p predicate.Tag) predicate.Tag
- func Or(predicates ...predicate.Tag) predicate.Tag
- func Tag(v string) predicate.Tag
- func TagContains(v string) predicate.Tag
- func TagContainsFold(v string) predicate.Tag
- func TagEQ(v string) predicate.Tag
- func TagEqualFold(v string) predicate.Tag
- func TagGT(v string) predicate.Tag
- func TagGTE(v string) predicate.Tag
- func TagHasPrefix(v string) predicate.Tag
- func TagHasSuffix(v string) predicate.Tag
- func TagIn(vs ...string) predicate.Tag
- func TagLT(v string) predicate.Tag
- func TagLTE(v string) predicate.Tag
- func TagNEQ(v string) predicate.Tag
- func TagNotIn(vs ...string) predicate.Tag
- func ValidColumn(column string) bool
- type OrderOption
- func ByChildren(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByChildrenCount(opts ...sql.OrderTermOption) OrderOption
- func ByColor(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOwner(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOwnerCount(opts ...sql.OrderTermOption) OrderOption
- func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProfile(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProfileCount(opts ...sql.OrderTermOption) OrderOption
- func ByTag(opts ...sql.OrderTermOption) OrderOption
- func ByTenantField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the tag type in the database. Label = "tag" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTag holds the string denoting the tag field in the database. FieldTag = "tag" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldColor holds the string denoting the color field in the database. FieldColor = "color" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeParent holds the string denoting the parent edge name in mutations. EdgeParent = "parent" // EdgeChildren holds the string denoting the children edge name in mutations. EdgeChildren = "children" // EdgeProfile holds the string denoting the profile edge name in mutations. EdgeProfile = "profile" // EdgeTenant holds the string denoting the tenant edge name in mutations. EdgeTenant = "tenant" // AgentFieldID holds the string denoting the ID field of the Agent. AgentFieldID = "oid" // Table holds the table name of the tag in the database. Table = "tags" // OwnerTable is the table that holds the owner relation/edge. The primary key declared below. OwnerTable = "agent_tags" // OwnerInverseTable is the table name for the Agent entity. // It exists in this package in order to avoid circular dependency with the "agent" package. OwnerInverseTable = "agents" // ParentTable is the table that holds the parent relation/edge. ParentTable = "tags" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "tag_children" // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "tags" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "tag_children" // ProfileTable is the table that holds the profile relation/edge. The primary key declared below. ProfileTable = "profile_tags" // ProfileInverseTable is the table name for the Profile entity. // It exists in this package in order to avoid circular dependency with the "profile" package. ProfileInverseTable = "profiles" // TenantTable is the table that holds the tenant relation/edge. TenantTable = "tags" // TenantInverseTable is the table name for the Tenant entity. // It exists in this package in order to avoid circular dependency with the "tenant" package. TenantInverseTable = "tenants" // TenantColumn is the table column denoting the tenant relation/edge. TenantColumn = "tenant_tags" )
Variables ¶
var ( // OwnerPrimaryKey and OwnerColumn2 are the table columns denoting the // primary key for the owner relation (M2M). OwnerPrimaryKey = []string{"agent_id", "tag_id"} // ProfilePrimaryKey and ProfileColumn2 are the table columns denoting the // primary key for the profile relation (M2M). ProfilePrimaryKey = []string{"profile_id", "tag_id"} )
var Columns = []string{ FieldID, FieldTag, FieldDescription, FieldColor, }
Columns holds all SQL columns for tag fields.
var ForeignKeys = []string{
"tag_children",
"task_tags",
"tenant_tags",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "tags" table and are not defined as standalone fields in the schema.
var ( // TagValidator is a validator for the "tag" field. It is called by the builders before save. TagValidator func(string) error )
Functions ¶
func Color ¶
Color applies equality check predicate on the "color" field. It's identical to ColorEQ.
func ColorContains ¶
ColorContains applies the Contains predicate on the "color" field.
func ColorContainsFold ¶
ColorContainsFold applies the ContainsFold predicate on the "color" field.
func ColorEqualFold ¶
ColorEqualFold applies the EqualFold predicate on the "color" field.
func ColorHasPrefix ¶
ColorHasPrefix applies the HasPrefix predicate on the "color" field.
func ColorHasSuffix ¶
ColorHasSuffix applies the HasSuffix predicate on the "color" field.
func ColorNotIn ¶
ColorNotIn applies the NotIn predicate on the "color" 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 HasChildren ¶
HasChildren applies the HasEdge predicate on the "children" edge.
func HasChildrenWith ¶
HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasParentWith ¶
HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
func HasProfile ¶
HasProfile applies the HasEdge predicate on the "profile" edge.
func HasProfileWith ¶
HasProfileWith applies the HasEdge predicate on the "profile" edge with a given conditions (other predicates).
func HasTenantWith ¶
HasTenantWith applies the HasEdge predicate on the "tenant" edge with a given conditions (other predicates).
func TagContains ¶
TagContains applies the Contains predicate on the "tag" field.
func TagContainsFold ¶
TagContainsFold applies the ContainsFold predicate on the "tag" field.
func TagEqualFold ¶
TagEqualFold applies the EqualFold predicate on the "tag" field.
func TagHasPrefix ¶
TagHasPrefix applies the HasPrefix predicate on the "tag" field.
func TagHasSuffix ¶
TagHasSuffix applies the HasSuffix predicate on the "tag" 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 Tag queries.
func ByChildren ¶
func ByChildren(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByChildren orders the results by children terms.
func ByChildrenCount ¶
func ByChildrenCount(opts ...sql.OrderTermOption) OrderOption
ByChildrenCount orders the results by children count.
func ByColor ¶
func ByColor(opts ...sql.OrderTermOption) OrderOption
ByColor orders the results by the color field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOwner ¶
func ByOwner(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByOwner orders the results by owner terms.
func ByOwnerCount ¶
func ByOwnerCount(opts ...sql.OrderTermOption) OrderOption
ByOwnerCount orders the results by owner count.
func ByParentField ¶
func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption
ByParentField orders the results by parent field.
func ByProfile ¶
func ByProfile(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProfile orders the results by profile terms.
func ByProfileCount ¶
func ByProfileCount(opts ...sql.OrderTermOption) OrderOption
ByProfileCount orders the results by profile count.
func ByTag ¶
func ByTag(opts ...sql.OrderTermOption) OrderOption
ByTag orders the results by the tag field.
func ByTenantField ¶
func ByTenantField(field string, opts ...sql.OrderTermOption) OrderOption
ByTenantField orders the results by tenant field.