tag

package
v0.0.0-...-5ee6a2d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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"
	// 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

View Source
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
)

Columns holds all SQL columns for tag fields.

Functions

func Alias

func Alias(v string) predicate.Tag

Alias applies equality check predicate on the "alias" field. It's identical to AliasEQ.

func AliasContains

func AliasContains(v string) predicate.Tag

AliasContains applies the Contains predicate on the "alias" field.

func AliasContainsFold

func AliasContainsFold(v string) predicate.Tag

AliasContainsFold applies the ContainsFold predicate on the "alias" field.

func AliasEQ

func AliasEQ(v string) predicate.Tag

AliasEQ applies the EQ predicate on the "alias" field.

func AliasEqualFold

func AliasEqualFold(v string) predicate.Tag

AliasEqualFold applies the EqualFold predicate on the "alias" field.

func AliasGT

func AliasGT(v string) predicate.Tag

AliasGT applies the GT predicate on the "alias" field.

func AliasGTE

func AliasGTE(v string) predicate.Tag

AliasGTE applies the GTE predicate on the "alias" field.

func AliasHasPrefix

func AliasHasPrefix(v string) predicate.Tag

AliasHasPrefix applies the HasPrefix predicate on the "alias" field.

func AliasHasSuffix

func AliasHasSuffix(v string) predicate.Tag

AliasHasSuffix applies the HasSuffix predicate on the "alias" field.

func AliasIn

func AliasIn(vs ...string) predicate.Tag

AliasIn applies the In predicate on the "alias" field.

func AliasLT

func AliasLT(v string) predicate.Tag

AliasLT applies the LT predicate on the "alias" field.

func AliasLTE

func AliasLTE(v string) predicate.Tag

AliasLTE applies the LTE predicate on the "alias" field.

func AliasNEQ

func AliasNEQ(v string) predicate.Tag

AliasNEQ applies the NEQ predicate on the "alias" field.

func AliasNotIn

func AliasNotIn(vs ...string) predicate.Tag

AliasNotIn applies the NotIn predicate on the "alias" field.

func And

func And(predicates ...predicate.Tag) predicate.Tag

And groups predicates with the AND operator between them.

func Color

func Color(v string) predicate.Tag

Color applies equality check predicate on the "color" field. It's identical to ColorEQ.

func ColorContains

func ColorContains(v string) predicate.Tag

ColorContains applies the Contains predicate on the "color" field.

func ColorContainsFold

func ColorContainsFold(v string) predicate.Tag

ColorContainsFold applies the ContainsFold predicate on the "color" field.

func ColorEQ

func ColorEQ(v string) predicate.Tag

ColorEQ applies the EQ predicate on the "color" field.

func ColorEqualFold

func ColorEqualFold(v string) predicate.Tag

ColorEqualFold applies the EqualFold predicate on the "color" field.

func ColorGT

func ColorGT(v string) predicate.Tag

ColorGT applies the GT predicate on the "color" field.

func ColorGTE

func ColorGTE(v string) predicate.Tag

ColorGTE applies the GTE predicate on the "color" field.

func ColorHasPrefix

func ColorHasPrefix(v string) predicate.Tag

ColorHasPrefix applies the HasPrefix predicate on the "color" field.

func ColorHasSuffix

func ColorHasSuffix(v string) predicate.Tag

ColorHasSuffix applies the HasSuffix predicate on the "color" field.

func ColorIn

func ColorIn(vs ...string) predicate.Tag

ColorIn applies the In predicate on the "color" field.

func ColorLT

func ColorLT(v string) predicate.Tag

ColorLT applies the LT predicate on the "color" field.

func ColorLTE

func ColorLTE(v string) predicate.Tag

ColorLTE applies the LTE predicate on the "color" field.

func ColorNEQ

func ColorNEQ(v string) predicate.Tag

ColorNEQ applies the NEQ predicate on the "color" field.

func ColorNotIn

func ColorNotIn(vs ...string) predicate.Tag

ColorNotIn applies the NotIn predicate on the "color" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Tag

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Tag

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Tag

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Tag

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Tag

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Tag

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Tag

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Tag

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Tag

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DeleteAt

func DeleteAt(v time.Time) predicate.Tag

DeleteAt applies equality check predicate on the "delete_at" field. It's identical to DeleteAtEQ.

func DeleteAtEQ

func DeleteAtEQ(v time.Time) predicate.Tag

DeleteAtEQ applies the EQ predicate on the "delete_at" field.

func DeleteAtGT

func DeleteAtGT(v time.Time) predicate.Tag

DeleteAtGT applies the GT predicate on the "delete_at" field.

func DeleteAtGTE

func DeleteAtGTE(v time.Time) predicate.Tag

DeleteAtGTE applies the GTE predicate on the "delete_at" field.

func DeleteAtIn

func DeleteAtIn(vs ...time.Time) predicate.Tag

DeleteAtIn applies the In predicate on the "delete_at" field.

func DeleteAtIsNil

func DeleteAtIsNil() predicate.Tag

DeleteAtIsNil applies the IsNil predicate on the "delete_at" field.

func DeleteAtLT

func DeleteAtLT(v time.Time) predicate.Tag

DeleteAtLT applies the LT predicate on the "delete_at" field.

func DeleteAtLTE

func DeleteAtLTE(v time.Time) predicate.Tag

DeleteAtLTE applies the LTE predicate on the "delete_at" field.

func DeleteAtNEQ

func DeleteAtNEQ(v time.Time) predicate.Tag

DeleteAtNEQ applies the NEQ predicate on the "delete_at" field.

func DeleteAtNotIn

func DeleteAtNotIn(vs ...time.Time) predicate.Tag

DeleteAtNotIn applies the NotIn predicate on the "delete_at" field.

func DeleteAtNotNil

func DeleteAtNotNil() predicate.Tag

DeleteAtNotNil applies the NotNil predicate on the "delete_at" field.

func ID

func ID(id uint64) predicate.Tag

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.Tag

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.Tag

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.Tag

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint64) predicate.Tag

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.Tag

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.Tag

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.Tag

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) predicate.Tag

IDNotIn applies the NotIn predicate on the ID field.

func ImageUrl

func ImageUrl(v string) predicate.Tag

ImageUrl applies equality check predicate on the "imageUrl" field. It's identical to ImageUrlEQ.

func ImageUrlContains

func ImageUrlContains(v string) predicate.Tag

ImageUrlContains applies the Contains predicate on the "imageUrl" field.

func ImageUrlContainsFold

func ImageUrlContainsFold(v string) predicate.Tag

ImageUrlContainsFold applies the ContainsFold predicate on the "imageUrl" field.

func ImageUrlEQ

func ImageUrlEQ(v string) predicate.Tag

ImageUrlEQ applies the EQ predicate on the "imageUrl" field.

func ImageUrlEqualFold

func ImageUrlEqualFold(v string) predicate.Tag

ImageUrlEqualFold applies the EqualFold predicate on the "imageUrl" field.

func ImageUrlGT

func ImageUrlGT(v string) predicate.Tag

ImageUrlGT applies the GT predicate on the "imageUrl" field.

func ImageUrlGTE

func ImageUrlGTE(v string) predicate.Tag

ImageUrlGTE applies the GTE predicate on the "imageUrl" field.

func ImageUrlHasPrefix

func ImageUrlHasPrefix(v string) predicate.Tag

ImageUrlHasPrefix applies the HasPrefix predicate on the "imageUrl" field.

func ImageUrlHasSuffix

func ImageUrlHasSuffix(v string) predicate.Tag

ImageUrlHasSuffix applies the HasSuffix predicate on the "imageUrl" field.

func ImageUrlIn

func ImageUrlIn(vs ...string) predicate.Tag

ImageUrlIn applies the In predicate on the "imageUrl" field.

func ImageUrlLT

func ImageUrlLT(v string) predicate.Tag

ImageUrlLT applies the LT predicate on the "imageUrl" field.

func ImageUrlLTE

func ImageUrlLTE(v string) predicate.Tag

ImageUrlLTE applies the LTE predicate on the "imageUrl" field.

func ImageUrlNEQ

func ImageUrlNEQ(v string) predicate.Tag

ImageUrlNEQ applies the NEQ predicate on the "imageUrl" field.

func ImageUrlNotIn

func ImageUrlNotIn(vs ...string) predicate.Tag

ImageUrlNotIn applies the NotIn predicate on the "imageUrl" field.

func Key

func Key(v string) predicate.Tag

Key applies equality check predicate on the "key" field. It's identical to KeyEQ.

func KeyContains

func KeyContains(v string) predicate.Tag

KeyContains applies the Contains predicate on the "key" field.

func KeyContainsFold

func KeyContainsFold(v string) predicate.Tag

KeyContainsFold applies the ContainsFold predicate on the "key" field.

func KeyEQ

func KeyEQ(v string) predicate.Tag

KeyEQ applies the EQ predicate on the "key" field.

func KeyEqualFold

func KeyEqualFold(v string) predicate.Tag

KeyEqualFold applies the EqualFold predicate on the "key" field.

func KeyGT

func KeyGT(v string) predicate.Tag

KeyGT applies the GT predicate on the "key" field.

func KeyGTE

func KeyGTE(v string) predicate.Tag

KeyGTE applies the GTE predicate on the "key" field.

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.Tag

KeyHasPrefix applies the HasPrefix predicate on the "key" field.

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.Tag

KeyHasSuffix applies the HasSuffix predicate on the "key" field.

func KeyIn

func KeyIn(vs ...string) predicate.Tag

KeyIn applies the In predicate on the "key" field.

func KeyLT

func KeyLT(v string) predicate.Tag

KeyLT applies the LT predicate on the "key" field.

func KeyLTE

func KeyLTE(v string) predicate.Tag

KeyLTE applies the LTE predicate on the "key" field.

func KeyNEQ

func KeyNEQ(v string) predicate.Tag

KeyNEQ applies the NEQ predicate on the "key" field.

func KeyNotIn

func KeyNotIn(vs ...string) predicate.Tag

KeyNotIn applies the NotIn predicate on the "key" field.

func Not

func Not(p predicate.Tag) predicate.Tag

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Tag) predicate.Tag

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Tag

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Tag

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Tag

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Tag

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Tag

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Tag

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Tag

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Tag

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Tag

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL