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 HasBanners() predicate.Tag
- func HasBannersWith(preds ...predicate.Banner) 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 UpdatedAt(v time.Time) predicate.Tag
- func UpdatedAtEQ(v time.Time) predicate.Tag
- func UpdatedAtGT(v time.Time) predicate.Tag
- func UpdatedAtGTE(v time.Time) predicate.Tag
- func UpdatedAtIn(vs ...time.Time) predicate.Tag
- func UpdatedAtLT(v time.Time) predicate.Tag
- func UpdatedAtLTE(v time.Time) predicate.Tag
- func UpdatedAtNEQ(v time.Time) predicate.Tag
- func UpdatedAtNotIn(vs ...time.Time) predicate.Tag
- func ValidColumn(column string) bool
- type OrderOption
- func ByBanners(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByBannersCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByTagName(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(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" // 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" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // EdgeBanners holds the string denoting the banners edge name in mutations. EdgeBanners = "banners" // Table holds the table name of the tag in the database. Table = "tags" // BannersTable is the table that holds the banners relation/edge. The primary key declared below. BannersTable = "banner_tags" // BannersInverseTable is the table name for the Banner entity. // It exists in this package in order to avoid circular dependency with the "banner" package. BannersInverseTable = "banners" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time )
var ( // BannersPrimaryKey and BannersColumn2 are the table columns denoting the // primary key for the banners relation (M2M). BannersPrimaryKey = []string{"banner_id", "tag_id"} )
var Columns = []string{ FieldID, FieldTagName, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for tag fields.
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 HasBanners ¶
HasBanners applies the HasEdge predicate on the "banners" edge.
func HasBannersWith ¶
HasBannersWith applies the HasEdge predicate on the "banners" 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 UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 ByBanners ¶
func ByBanners(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByBanners orders the results by banners terms.
func ByBannersCount ¶
func ByBannersCount(opts ...sql.OrderTermOption) OrderOption
ByBannersCount orders the results by banners count.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByTagName ¶
func ByTagName(opts ...sql.OrderTermOption) OrderOption
ByTagName orders the results by the tag_name field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.