usertweet

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the usertweet type in the database.
	Label = "user_tweet"
	// 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"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldTweetID holds the string denoting the tweet_id field in the database.
	FieldTweetID = "tweet_id"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeTweet holds the string denoting the tweet edge name in mutations.
	EdgeTweet = "tweet"
	// Table holds the table name of the usertweet in the database.
	Table = "user_tweets"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "user_tweets"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_id"
	// TweetTable is the table that holds the tweet relation/edge.
	TweetTable = "user_tweets"
	// 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

Columns holds all SQL columns for usertweet fields.

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Functions

func And

func And(predicates ...predicate.UserTweet) predicate.UserTweet

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.UserTweet

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.UserTweet

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.UserTweet

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.UserTweet

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.UserTweet

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.UserTweet

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.UserTweet

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

func CreatedAtNotIn

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

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

func HasTweet

func HasTweet() predicate.UserTweet

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

func HasTweetWith

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

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

func HasUser

func HasUser() predicate.UserTweet

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.UserTweet

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

func ID

func ID(id int) predicate.UserTweet

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.UserTweet

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.UserTweet

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.UserTweet

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.UserTweet

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.UserTweet

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.UserTweet

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.UserTweet

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.UserTweet

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

Or groups predicates with the OR operator between them.

func TweetID

func TweetID(v int) predicate.UserTweet

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

func TweetIDEQ

func TweetIDEQ(v int) predicate.UserTweet

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

func TweetIDIn

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

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

func TweetIDNEQ

func TweetIDNEQ(v int) predicate.UserTweet

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

func TweetIDNotIn

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

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

func UserID

func UserID(v int) predicate.UserTweet

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v int) predicate.UserTweet

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...int) predicate.UserTweet

UserIDIn applies the In predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v int) predicate.UserTweet

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...int) predicate.UserTweet

UserIDNotIn applies the NotIn predicate on the "user_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