Documentation
¶
Index ¶
- Constants
- Variables
- func Alias(v string) predicate.Tag
- func AliasContains(v string) predicate.Tag
- func AliasContainsFold(v string) predicate.Tag
- func AliasEQ(v string) predicate.Tag
- func AliasEqualFold(v string) predicate.Tag
- func AliasGT(v string) predicate.Tag
- func AliasGTE(v string) predicate.Tag
- func AliasHasPrefix(v string) predicate.Tag
- func AliasHasSuffix(v string) predicate.Tag
- func AliasIn(vs ...string) predicate.Tag
- func AliasLT(v string) predicate.Tag
- func AliasLTE(v string) predicate.Tag
- func AliasNEQ(v string) predicate.Tag
- func AliasNotIn(vs ...string) predicate.Tag
- 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 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 DeleteAt(v time.Time) predicate.Tag
- func DeleteAtEQ(v time.Time) predicate.Tag
- func DeleteAtGT(v time.Time) predicate.Tag
- func DeleteAtGTE(v time.Time) predicate.Tag
- func DeleteAtIn(vs ...time.Time) predicate.Tag
- func DeleteAtIsNil() predicate.Tag
- func DeleteAtLT(v time.Time) predicate.Tag
- func DeleteAtLTE(v time.Time) predicate.Tag
- func DeleteAtNEQ(v time.Time) predicate.Tag
- func DeleteAtNotIn(vs ...time.Time) predicate.Tag
- func DeleteAtNotNil() predicate.Tag
- func ID(id uint64) predicate.Tag
- func IDEQ(id uint64) predicate.Tag
- func IDGT(id uint64) predicate.Tag
- func IDGTE(id uint64) predicate.Tag
- func IDIn(ids ...uint64) predicate.Tag
- func IDLT(id uint64) predicate.Tag
- func IDLTE(id uint64) predicate.Tag
- func IDNEQ(id uint64) predicate.Tag
- func IDNotIn(ids ...uint64) predicate.Tag
- func ImageUrl(v string) predicate.Tag
- func ImageUrlContains(v string) predicate.Tag
- func ImageUrlContainsFold(v string) predicate.Tag
- func ImageUrlEQ(v string) predicate.Tag
- func ImageUrlEqualFold(v string) predicate.Tag
- func ImageUrlGT(v string) predicate.Tag
- func ImageUrlGTE(v string) predicate.Tag
- func ImageUrlHasPrefix(v string) predicate.Tag
- func ImageUrlHasSuffix(v string) predicate.Tag
- func ImageUrlIn(vs ...string) predicate.Tag
- func ImageUrlLT(v string) predicate.Tag
- func ImageUrlLTE(v string) predicate.Tag
- func ImageUrlNEQ(v string) predicate.Tag
- func ImageUrlNotIn(vs ...string) predicate.Tag
- func Key(v string) predicate.Tag
- func KeyContains(v string) predicate.Tag
- func KeyContainsFold(v string) predicate.Tag
- func KeyEQ(v string) predicate.Tag
- func KeyEqualFold(v string) predicate.Tag
- func KeyGT(v string) predicate.Tag
- func KeyGTE(v string) predicate.Tag
- func KeyHasPrefix(v string) predicate.Tag
- func KeyHasSuffix(v string) predicate.Tag
- func KeyIn(vs ...string) predicate.Tag
- func KeyLT(v string) predicate.Tag
- func KeyLTE(v string) predicate.Tag
- func KeyNEQ(v string) predicate.Tag
- func KeyNotIn(vs ...string) predicate.Tag
- func Not(p predicate.Tag) predicate.Tag
- func Or(predicates ...predicate.Tag) 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 ByAlias(opts ...sql.OrderTermOption) OrderOption
- func ByColor(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeleteAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByImageUrl(opts ...sql.OrderTermOption) OrderOption
- func ByKey(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" // 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" // FieldDeleteAt holds the string denoting the delete_at field in the database. FieldDeleteAt = "delete_at" // FieldKey holds the string denoting the key field in the database. FieldKey = "key" // FieldAlias holds the string denoting the alias field in the database. FieldAlias = "alias" // FieldColor holds the string denoting the color field in the database. FieldColor = "color" // FieldImageUrl holds the string denoting the imageurl field in the database. FieldImageUrl = "image_url" // Table holds the table name of the tag in the database. Table = "tags" )
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 // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // KeyValidator is a validator for the "key" field. It is called by the builders before save. KeyValidator func(string) error // AliasValidator is a validator for the "alias" field. It is called by the builders before save. AliasValidator func(string) error // ColorValidator is a validator for the "color" field. It is called by the builders before save. ColorValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeleteAt, FieldKey, FieldAlias, FieldColor, FieldImageUrl, }
Columns holds all SQL columns for tag fields.
Functions ¶
func Alias ¶
Alias applies equality check predicate on the "alias" field. It's identical to AliasEQ.
func AliasContains ¶
AliasContains applies the Contains predicate on the "alias" field.
func AliasContainsFold ¶
AliasContainsFold applies the ContainsFold predicate on the "alias" field.
func AliasEqualFold ¶
AliasEqualFold applies the EqualFold predicate on the "alias" field.
func AliasHasPrefix ¶
AliasHasPrefix applies the HasPrefix predicate on the "alias" field.
func AliasHasSuffix ¶
AliasHasSuffix applies the HasSuffix predicate on the "alias" field.
func AliasNotIn ¶
AliasNotIn applies the NotIn predicate on the "alias" field.
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 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 DeleteAt ¶
DeleteAt applies equality check predicate on the "delete_at" field. It's identical to DeleteAtEQ.
func DeleteAtEQ ¶
DeleteAtEQ applies the EQ predicate on the "delete_at" field.
func DeleteAtGT ¶
DeleteAtGT applies the GT predicate on the "delete_at" field.
func DeleteAtGTE ¶
DeleteAtGTE applies the GTE predicate on the "delete_at" field.
func DeleteAtIn ¶
DeleteAtIn applies the In predicate on the "delete_at" field.
func DeleteAtIsNil ¶
DeleteAtIsNil applies the IsNil predicate on the "delete_at" field.
func DeleteAtLT ¶
DeleteAtLT applies the LT predicate on the "delete_at" field.
func DeleteAtLTE ¶
DeleteAtLTE applies the LTE predicate on the "delete_at" field.
func DeleteAtNEQ ¶
DeleteAtNEQ applies the NEQ predicate on the "delete_at" field.
func DeleteAtNotIn ¶
DeleteAtNotIn applies the NotIn predicate on the "delete_at" field.
func DeleteAtNotNil ¶
DeleteAtNotNil applies the NotNil predicate on the "delete_at" field.
func ImageUrl ¶
ImageUrl applies equality check predicate on the "imageUrl" field. It's identical to ImageUrlEQ.
func ImageUrlContains ¶
ImageUrlContains applies the Contains predicate on the "imageUrl" field.
func ImageUrlContainsFold ¶
ImageUrlContainsFold applies the ContainsFold predicate on the "imageUrl" field.
func ImageUrlEQ ¶
ImageUrlEQ applies the EQ predicate on the "imageUrl" field.
func ImageUrlEqualFold ¶
ImageUrlEqualFold applies the EqualFold predicate on the "imageUrl" field.
func ImageUrlGT ¶
ImageUrlGT applies the GT predicate on the "imageUrl" field.
func ImageUrlGTE ¶
ImageUrlGTE applies the GTE predicate on the "imageUrl" field.
func ImageUrlHasPrefix ¶
ImageUrlHasPrefix applies the HasPrefix predicate on the "imageUrl" field.
func ImageUrlHasSuffix ¶
ImageUrlHasSuffix applies the HasSuffix predicate on the "imageUrl" field.
func ImageUrlIn ¶
ImageUrlIn applies the In predicate on the "imageUrl" field.
func ImageUrlLT ¶
ImageUrlLT applies the LT predicate on the "imageUrl" field.
func ImageUrlLTE ¶
ImageUrlLTE applies the LTE predicate on the "imageUrl" field.
func ImageUrlNEQ ¶
ImageUrlNEQ applies the NEQ predicate on the "imageUrl" field.
func ImageUrlNotIn ¶
ImageUrlNotIn applies the NotIn predicate on the "imageUrl" field.
func KeyContains ¶
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEqualFold ¶
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyHasPrefix ¶
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
KeyHasSuffix applies the HasSuffix predicate on the "key" 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 ByAlias ¶
func ByAlias(opts ...sql.OrderTermOption) OrderOption
ByAlias orders the results by the alias field.
func ByColor ¶
func ByColor(opts ...sql.OrderTermOption) OrderOption
ByColor orders the results by the color field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeleteAt ¶
func ByDeleteAt(opts ...sql.OrderTermOption) OrderOption
ByDeleteAt orders the results by the delete_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByImageUrl ¶
func ByImageUrl(opts ...sql.OrderTermOption) OrderOption
ByImageUrl orders the results by the imageUrl field.
func ByKey ¶
func ByKey(opts ...sql.OrderTermOption) OrderOption
ByKey orders the results by the key field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.