Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tag) predicate.Tag
- func HasResources() predicate.Tag
- func HasResourcesWith(preds ...predicate.Resources) predicate.Tag
- func ID(id string) predicate.Tag
- func IDEQ(id string) predicate.Tag
- func IDGT(id string) predicate.Tag
- func IDGTE(id string) predicate.Tag
- func IDIn(ids ...string) predicate.Tag
- func IDLT(id string) predicate.Tag
- func IDLTE(id string) predicate.Tag
- func IDNEQ(id string) predicate.Tag
- func IDNotIn(ids ...string) 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
Constants ¶
View Source
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" // EdgeResources holds the string denoting the resources edge name in mutations. EdgeResources = "resources" // Table holds the table name of the tag in the database. Table = "tags" // ResourcesTable is the table that holds the resources relation/edge. The primary key declared below. ResourcesTable = "tag_resources" // ResourcesInverseTable is the table name for the Resources entity. // It exists in this package in order to avoid circular dependency with the "resources" package. ResourcesInverseTable = "resources" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldTag, }
Columns holds all SQL columns for tag fields.
View Source
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
View Source
var ( // ResourcesPrimaryKey and ResourcesColumn2 are the table columns denoting the // primary key for the resources relation (M2M). ResourcesPrimaryKey = []string{"tag_id", "resources_id"} )
Functions ¶
func HasResources ¶
HasResources applies the HasEdge predicate on the "resources" edge.
func HasResourcesWith ¶
HasResourcesWith applies the HasEdge predicate on the "resources" 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 ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.