Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Like) predicate.Like
- func HasTweet() predicate.Like
- func HasTweetWith(preds ...predicate.Tweet) predicate.Like
- func HasUser() predicate.Like
- func HasUserWith(preds ...predicate.User) predicate.Like
- func LikedAt(v time.Time) predicate.Like
- func LikedAtEQ(v time.Time) predicate.Like
- func LikedAtGT(v time.Time) predicate.Like
- func LikedAtGTE(v time.Time) predicate.Like
- func LikedAtIn(vs ...time.Time) predicate.Like
- func LikedAtLT(v time.Time) predicate.Like
- func LikedAtLTE(v time.Time) predicate.Like
- func LikedAtNEQ(v time.Time) predicate.Like
- func LikedAtNotIn(vs ...time.Time) predicate.Like
- func Not(p predicate.Like) predicate.Like
- func Or(predicates ...predicate.Like) predicate.Like
- func TweetID(v int) predicate.Like
- func TweetIDEQ(v int) predicate.Like
- func TweetIDIn(vs ...int) predicate.Like
- func TweetIDNEQ(v int) predicate.Like
- func TweetIDNotIn(vs ...int) predicate.Like
- func UserID(v int) predicate.Like
- func UserIDEQ(v int) predicate.Like
- func UserIDIn(vs ...int) predicate.Like
- func UserIDNEQ(v int) predicate.Like
- func UserIDNotIn(vs ...int) predicate.Like
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the like type in the database. Label = "like" // 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" // FieldLikedAt holds the string denoting the liked_at field in the database. FieldLikedAt = "liked_at" // 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" // UserFieldID holds the string denoting the ID field of the User. UserFieldID = "id" // TweetFieldID holds the string denoting the ID field of the Tweet. TweetFieldID = "id" // Table holds the table name of the like in the database. Table = "likes" // UserTable is the table that holds the user relation/edge. UserTable = "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" // TweetTable is the table that holds the tweet relation/edge. TweetTable = "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" )
Variables ¶
var Columns = []string{ FieldUserID, FieldTweetID, FieldLikedAt, }
Columns holds all SQL columns for like fields.
var ( // DefaultLikedAt holds the default value on creation for the "liked_at" field. DefaultLikedAt func() time.Time )
Functions ¶
func HasTweetWith ¶
HasTweetWith applies the HasEdge predicate on the "tweet" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func LikedAt ¶
LikedAt applies equality check predicate on the "liked_at" field. It's identical to LikedAtEQ.
func LikedAtGTE ¶
LikedAtGTE applies the GTE predicate on the "liked_at" field.
func LikedAtLTE ¶
LikedAtLTE applies the LTE predicate on the "liked_at" field.
func LikedAtNEQ ¶
LikedAtNEQ applies the NEQ predicate on the "liked_at" field.
func LikedAtNotIn ¶
LikedAtNotIn applies the NotIn predicate on the "liked_at" field.
func TweetID ¶
TweetID applies equality check predicate on the "tweet_id" field. It's identical to TweetIDEQ.
func TweetIDNEQ ¶
TweetIDNEQ applies the NEQ predicate on the "tweet_id" field.
func TweetIDNotIn ¶
TweetIDNotIn applies the NotIn predicate on the "tweet_id" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.