tweetlike

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 tweetlike type in the database.
	Label = "tweet_like"
	// FieldLikedAt holds the string denoting the liked_at field in the database.
	FieldLikedAt = "liked_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"
	// EdgeTweet holds the string denoting the tweet edge name in mutations.
	EdgeTweet = "tweet"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// TweetFieldID holds the string denoting the ID field of the Tweet.
	TweetFieldID = "id"
	// UserFieldID holds the string denoting the ID field of the User.
	UserFieldID = "id"
	// Table holds the table name of the tweetlike in the database.
	Table = "tweet_likes"
	// TweetTable is the table that holds the tweet relation/edge.
	TweetTable = "tweet_likes"
	// 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"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "tweet_likes"
	// 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"
)

Variables

View Source
var (
	Hooks  [1]ent.Hook
	Policy ent.Policy
	// DefaultLikedAt holds the default value on creation for the "liked_at" field.
	DefaultLikedAt func() time.Time
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "entgo.io/ent/entc/integration/edgeschema/ent/runtime"

Columns holds all SQL columns for tweetlike fields.

Functions

func And

func And(predicates ...predicate.TweetLike) predicate.TweetLike

And groups predicates with the AND operator between them.

func HasTweet

func HasTweet() predicate.TweetLike

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

func HasTweetWith

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

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

func HasUser

func HasUser() predicate.TweetLike

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

func HasUserWith

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

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

func LikedAt

func LikedAt(v time.Time) predicate.TweetLike

LikedAt applies equality check predicate on the "liked_at" field. It's identical to LikedAtEQ.

func LikedAtEQ

func LikedAtEQ(v time.Time) predicate.TweetLike

LikedAtEQ applies the EQ predicate on the "liked_at" field.

func LikedAtGT

func LikedAtGT(v time.Time) predicate.TweetLike

LikedAtGT applies the GT predicate on the "liked_at" field.

func LikedAtGTE

func LikedAtGTE(v time.Time) predicate.TweetLike

LikedAtGTE applies the GTE predicate on the "liked_at" field.

func LikedAtIn

func LikedAtIn(vs ...time.Time) predicate.TweetLike

LikedAtIn applies the In predicate on the "liked_at" field.

func LikedAtLT

func LikedAtLT(v time.Time) predicate.TweetLike

LikedAtLT applies the LT predicate on the "liked_at" field.

func LikedAtLTE

func LikedAtLTE(v time.Time) predicate.TweetLike

LikedAtLTE applies the LTE predicate on the "liked_at" field.

func LikedAtNEQ

func LikedAtNEQ(v time.Time) predicate.TweetLike

LikedAtNEQ applies the NEQ predicate on the "liked_at" field.

func LikedAtNotIn

func LikedAtNotIn(vs ...time.Time) predicate.TweetLike

LikedAtNotIn applies the NotIn predicate on the "liked_at" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.TweetLike) predicate.TweetLike

Or groups predicates with the OR operator between them.

func TweetID

func TweetID(v int) predicate.TweetLike

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

func TweetIDEQ

func TweetIDEQ(v int) predicate.TweetLike

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

func TweetIDIn

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

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

func TweetIDNEQ

func TweetIDNEQ(v int) predicate.TweetLike

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

func TweetIDNotIn

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

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

func UserID

func UserID(v int) predicate.TweetLike

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

func UserIDEQ

func UserIDEQ(v int) predicate.TweetLike

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

func UserIDIn

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

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

func UserIDNEQ

func UserIDNEQ(v int) predicate.TweetLike

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

func UserIDNotIn

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

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