Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tag) predicate.Tag
- func CreatedAt(v time.Time) predicate.Tag
- func CreatedAtEQ(v time.Time) predicate.Tag
- func CreatedAtGT(v time.Time) predicate.Tag
- func CreatedAtGTE(v time.Time) predicate.Tag
- func CreatedAtIn(vs ...time.Time) predicate.Tag
- func CreatedAtLT(v time.Time) predicate.Tag
- func CreatedAtLTE(v time.Time) predicate.Tag
- func CreatedAtNEQ(v time.Time) predicate.Tag
- func CreatedAtNotIn(vs ...time.Time) predicate.Tag
- func HasArticle() predicate.Tag
- func HasArticleWith(preds ...predicate.Article) 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 TagName(v string) predicate.Tag
- func TagNameContains(v string) predicate.Tag
- func TagNameContainsFold(v string) predicate.Tag
- func TagNameEQ(v string) predicate.Tag
- func TagNameEqualFold(v string) predicate.Tag
- func TagNameGT(v string) predicate.Tag
- func TagNameGTE(v string) predicate.Tag
- func TagNameHasPrefix(v string) predicate.Tag
- func TagNameHasSuffix(v string) predicate.Tag
- func TagNameIn(vs ...string) predicate.Tag
- func TagNameLT(v string) predicate.Tag
- func TagNameLTE(v string) predicate.Tag
- func TagNameNEQ(v string) predicate.Tag
- func TagNameNotIn(vs ...string) predicate.Tag
- func ValidColumn(column string) bool
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" // FieldTagName holds the string denoting the tag_name field in the database. FieldTagName = "tag_name" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeArticle holds the string denoting the article edge name in mutations. EdgeArticle = "article" // Table holds the table name of the tag in the database. Table = "tags" // ArticleTable is the table that holds the article relation/edge. ArticleTable = "tags" // ArticleInverseTable is the table name for the Article entity. // It exists in this package in order to avoid circular dependency with the "article" package. ArticleInverseTable = "articles" // ArticleColumn is the table column denoting the article relation/edge. ArticleColumn = "article_tags" )
Variables ¶
var ( // TagNameValidator is a validator for the "tag_name" field. It is called by the builders before save. TagNameValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt time.Time )
var Columns = []string{ FieldID, FieldTagName, FieldCreatedAt, }
Columns holds all SQL columns for tag fields.
var ForeignKeys = []string{
"article_tags",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "tags" table and are not defined as standalone fields in the schema.
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 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 HasArticle ¶
HasArticle applies the HasEdge predicate on the "article" edge.
func HasArticleWith ¶
HasArticleWith applies the HasEdge predicate on the "article" edge with a given conditions (other predicates).
func TagName ¶
TagName applies equality check predicate on the "tag_name" field. It's identical to TagNameEQ.
func TagNameContains ¶
TagNameContains applies the Contains predicate on the "tag_name" field.
func TagNameContainsFold ¶
TagNameContainsFold applies the ContainsFold predicate on the "tag_name" field.
func TagNameEqualFold ¶
TagNameEqualFold applies the EqualFold predicate on the "tag_name" field.
func TagNameGTE ¶
TagNameGTE applies the GTE predicate on the "tag_name" field.
func TagNameHasPrefix ¶
TagNameHasPrefix applies the HasPrefix predicate on the "tag_name" field.
func TagNameHasSuffix ¶
TagNameHasSuffix applies the HasSuffix predicate on the "tag_name" field.
func TagNameLTE ¶
TagNameLTE applies the LTE predicate on the "tag_name" field.
func TagNameNEQ ¶
TagNameNEQ applies the NEQ predicate on the "tag_name" field.
func TagNameNotIn ¶
TagNameNotIn applies the NotIn predicate on the "tag_name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.