articletag

package
v0.0.0-...-6f95374 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the articletag type in the database.
	Label = "article_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"
	// FieldArticleID holds the string denoting the article_id field in the database.
	FieldArticleID = "article_id"
	// EdgeArticle holds the string denoting the article edge name in mutations.
	EdgeArticle = "article"
	// Table holds the table name of the articletag in the database.
	Table = "article_tags"
	// ArticleTable is the table that holds the article relation/edge.
	ArticleTable = "article_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_id"
)

Variables

Columns holds all SQL columns for articletag fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Functions

func And

func And(predicates ...predicate.ArticleTag) predicate.ArticleTag

And groups predicates with the AND operator between them.

func ArticleID

func ArticleID(v uuid.UUID) predicate.ArticleTag

ArticleID applies equality check predicate on the "article_id" field. It's identical to ArticleIDEQ.

func ArticleIDEQ

func ArticleIDEQ(v uuid.UUID) predicate.ArticleTag

ArticleIDEQ applies the EQ predicate on the "article_id" field.

func ArticleIDIn

func ArticleIDIn(vs ...uuid.UUID) predicate.ArticleTag

ArticleIDIn applies the In predicate on the "article_id" field.

func ArticleIDNEQ

func ArticleIDNEQ(v uuid.UUID) predicate.ArticleTag

ArticleIDNEQ applies the NEQ predicate on the "article_id" field.

func ArticleIDNotIn

func ArticleIDNotIn(vs ...uuid.UUID) predicate.ArticleTag

ArticleIDNotIn applies the NotIn predicate on the "article_id" field.

func HasArticle

func HasArticle() predicate.ArticleTag

HasArticle applies the HasEdge predicate on the "article" edge.

func HasArticleWith

func HasArticleWith(preds ...predicate.Article) predicate.ArticleTag

HasArticleWith applies the HasEdge predicate on the "article" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.ArticleTag

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.ArticleTag

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.ArticleTag

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.ArticleTag

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.ArticleTag

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.ArticleTag

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.ArticleTag

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.ArticleTag

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.ArticleTag) predicate.ArticleTag

Or groups predicates with the OR operator between them.

func Tag

Tag applies equality check predicate on the "tag" field. It's identical to TagEQ.

func TagContains

func TagContains(v string) predicate.ArticleTag

TagContains applies the Contains predicate on the "tag" field.

func TagContainsFold

func TagContainsFold(v string) predicate.ArticleTag

TagContainsFold applies the ContainsFold predicate on the "tag" field.

func TagEQ

func TagEQ(v string) predicate.ArticleTag

TagEQ applies the EQ predicate on the "tag" field.

func TagEqualFold

func TagEqualFold(v string) predicate.ArticleTag

TagEqualFold applies the EqualFold predicate on the "tag" field.

func TagGT

func TagGT(v string) predicate.ArticleTag

TagGT applies the GT predicate on the "tag" field.

func TagGTE

func TagGTE(v string) predicate.ArticleTag

TagGTE applies the GTE predicate on the "tag" field.

func TagHasPrefix

func TagHasPrefix(v string) predicate.ArticleTag

TagHasPrefix applies the HasPrefix predicate on the "tag" field.

func TagHasSuffix

func TagHasSuffix(v string) predicate.ArticleTag

TagHasSuffix applies the HasSuffix predicate on the "tag" field.

func TagIn

func TagIn(vs ...string) predicate.ArticleTag

TagIn applies the In predicate on the "tag" field.

func TagLT

func TagLT(v string) predicate.ArticleTag

TagLT applies the LT predicate on the "tag" field.

func TagLTE

func TagLTE(v string) predicate.ArticleTag

TagLTE applies the LTE predicate on the "tag" field.

func TagNEQ

func TagNEQ(v string) predicate.ArticleTag

TagNEQ applies the NEQ predicate on the "tag" field.

func TagNotIn

func TagNotIn(vs ...string) predicate.ArticleTag

TagNotIn applies the NotIn predicate on the "tag" 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 ArticleTag queries.

func ByArticleField

func ByArticleField(field string, opts ...sql.OrderTermOption) OrderOption

ByArticleField orders the results by article field.

func ByArticleID

func ByArticleID(opts ...sql.OrderTermOption) OrderOption

ByArticleID orders the results by the article_id field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByTag

func ByTag(opts ...sql.OrderTermOption) OrderOption

ByTag orders the results by the tag field.

Jump to

Keyboard shortcuts

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