tweettag

package
v0.11.10 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the tweettag type in the database.
	Label = "tweet_tag"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldAddedAt holds the string denoting the added_at field in the database.
	FieldAddedAt = "added_at"
	// FieldTagID holds the string denoting the tag_id field in the database.
	FieldTagID = "tag_id"
	// FieldTweetID holds the string denoting the tweet_id field in the database.
	FieldTweetID = "tweet_id"
	// EdgeTag holds the string denoting the tag edge name in mutations.
	EdgeTag = "tag"
	// EdgeTweet holds the string denoting the tweet edge name in mutations.
	EdgeTweet = "tweet"
	// Table holds the table name of the tweettag in the database.
	Table = "tweet_tags"
	// TagTable is the table that holds the tag relation/edge.
	TagTable = "tweet_tags"
	// TagInverseTable is the table name for the Tag entity.
	// It exists in this package in order to avoid circular dependency with the "tag" package.
	TagInverseTable = "tags"
	// TagColumn is the table column denoting the tag relation/edge.
	TagColumn = "tag_id"
	// TweetTable is the table that holds the tweet relation/edge.
	TweetTable = "tweet_tags"
	// TweetInverseTable is the table name for the Tweet entity.
	// It exists in this package in order to avoid circular dependency with the "tweet" package.
	TweetInverseTable = "tweets"
	// TweetColumn is the table column denoting the tweet relation/edge.
	TweetColumn = "tweet_id"
)

Variables

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

Columns holds all SQL columns for tweettag fields.

Functions

func AddedAt

func AddedAt(v time.Time) predicate.TweetTag

AddedAt applies equality check predicate on the "added_at" field. It's identical to AddedAtEQ.

func AddedAtEQ

func AddedAtEQ(v time.Time) predicate.TweetTag

AddedAtEQ applies the EQ predicate on the "added_at" field.

func AddedAtGT

func AddedAtGT(v time.Time) predicate.TweetTag

AddedAtGT applies the GT predicate on the "added_at" field.

func AddedAtGTE

func AddedAtGTE(v time.Time) predicate.TweetTag

AddedAtGTE applies the GTE predicate on the "added_at" field.

func AddedAtIn

func AddedAtIn(vs ...time.Time) predicate.TweetTag

AddedAtIn applies the In predicate on the "added_at" field.

func AddedAtLT

func AddedAtLT(v time.Time) predicate.TweetTag

AddedAtLT applies the LT predicate on the "added_at" field.

func AddedAtLTE

func AddedAtLTE(v time.Time) predicate.TweetTag

AddedAtLTE applies the LTE predicate on the "added_at" field.

func AddedAtNEQ

func AddedAtNEQ(v time.Time) predicate.TweetTag

AddedAtNEQ applies the NEQ predicate on the "added_at" field.

func AddedAtNotIn

func AddedAtNotIn(vs ...time.Time) predicate.TweetTag

AddedAtNotIn applies the NotIn predicate on the "added_at" field.

func And

func And(predicates ...predicate.TweetTag) predicate.TweetTag

And groups predicates with the AND operator between them.

func HasTag

func HasTag() predicate.TweetTag

HasTag applies the HasEdge predicate on the "tag" edge.

func HasTagWith

func HasTagWith(preds ...predicate.Tag) predicate.TweetTag

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

func HasTweet

func HasTweet() predicate.TweetTag

HasTweet applies the HasEdge predicate on the "tweet" edge.

func HasTweetWith

func HasTweetWith(preds ...predicate.Tweet) predicate.TweetTag

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

func ID

func ID(id uuid.UUID) predicate.TweetTag

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.TweetTag

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.TweetTag

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.TweetTag

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.TweetTag

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.TweetTag

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.TweetTag

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.TweetTag) predicate.TweetTag

Or groups predicates with the OR operator between them.

func TagID

func TagID(v int) predicate.TweetTag

TagID applies equality check predicate on the "tag_id" field. It's identical to TagIDEQ.

func TagIDEQ

func TagIDEQ(v int) predicate.TweetTag

TagIDEQ applies the EQ predicate on the "tag_id" field.

func TagIDIn

func TagIDIn(vs ...int) predicate.TweetTag

TagIDIn applies the In predicate on the "tag_id" field.

func TagIDNEQ

func TagIDNEQ(v int) predicate.TweetTag

TagIDNEQ applies the NEQ predicate on the "tag_id" field.

func TagIDNotIn

func TagIDNotIn(vs ...int) predicate.TweetTag

TagIDNotIn applies the NotIn predicate on the "tag_id" field.

func TweetID

func TweetID(v int) predicate.TweetTag

TweetID applies equality check predicate on the "tweet_id" field. It's identical to TweetIDEQ.

func TweetIDEQ

func TweetIDEQ(v int) predicate.TweetTag

TweetIDEQ applies the EQ predicate on the "tweet_id" field.

func TweetIDIn

func TweetIDIn(vs ...int) predicate.TweetTag

TweetIDIn applies the In predicate on the "tweet_id" field.

func TweetIDNEQ

func TweetIDNEQ(v int) predicate.TweetTag

TweetIDNEQ applies the NEQ predicate on the "tweet_id" field.

func TweetIDNotIn

func TweetIDNotIn(vs ...int) predicate.TweetTag

TweetIDNotIn applies the NotIn predicate on the "tweet_id" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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