Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tweet) predicate.Tweet
- func HasLikedUsers() predicate.Tweet
- func HasLikedUsersWith(preds ...predicate.User) predicate.Tweet
- func HasLikes() predicate.Tweet
- func HasLikesWith(preds ...predicate.TweetLike) predicate.Tweet
- func HasTags() predicate.Tweet
- func HasTagsWith(preds ...predicate.Tag) predicate.Tweet
- func HasTweetTags() predicate.Tweet
- func HasTweetTagsWith(preds ...predicate.TweetTag) predicate.Tweet
- func HasTweetUser() predicate.Tweet
- func HasTweetUserWith(preds ...predicate.UserTweet) predicate.Tweet
- func HasUser() predicate.Tweet
- func HasUserWith(preds ...predicate.User) predicate.Tweet
- func ID(id int) predicate.Tweet
- func IDEQ(id int) predicate.Tweet
- func IDGT(id int) predicate.Tweet
- func IDGTE(id int) predicate.Tweet
- func IDIn(ids ...int) predicate.Tweet
- func IDLT(id int) predicate.Tweet
- func IDLTE(id int) predicate.Tweet
- func IDNEQ(id int) predicate.Tweet
- func IDNotIn(ids ...int) predicate.Tweet
- func Not(p predicate.Tweet) predicate.Tweet
- func Or(predicates ...predicate.Tweet) predicate.Tweet
- func Text(v string) predicate.Tweet
- func TextContains(v string) predicate.Tweet
- func TextContainsFold(v string) predicate.Tweet
- func TextEQ(v string) predicate.Tweet
- func TextEqualFold(v string) predicate.Tweet
- func TextGT(v string) predicate.Tweet
- func TextGTE(v string) predicate.Tweet
- func TextHasPrefix(v string) predicate.Tweet
- func TextHasSuffix(v string) predicate.Tweet
- func TextIn(vs ...string) predicate.Tweet
- func TextLT(v string) predicate.Tweet
- func TextLTE(v string) predicate.Tweet
- func TextNEQ(v string) predicate.Tweet
- func TextNotIn(vs ...string) predicate.Tweet
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the tweet type in the database. Label = "tweet" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldText holds the string denoting the text field in the database. FieldText = "text" // EdgeLikedUsers holds the string denoting the liked_users edge name in mutations. EdgeLikedUsers = "liked_users" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeTags holds the string denoting the tags edge name in mutations. EdgeTags = "tags" // EdgeLikes holds the string denoting the likes edge name in mutations. EdgeLikes = "likes" // EdgeTweetUser holds the string denoting the tweet_user edge name in mutations. EdgeTweetUser = "tweet_user" // EdgeTweetTags holds the string denoting the tweet_tags edge name in mutations. EdgeTweetTags = "tweet_tags" // Table holds the table name of the tweet in the database. Table = "tweets" // LikedUsersTable is the table that holds the liked_users relation/edge. The primary key declared below. LikedUsersTable = "tweet_likes" // LikedUsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. LikedUsersInverseTable = "users" // UserTable is the table that holds the user relation/edge. The primary key declared below. 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" // TagsTable is the table that holds the tags relation/edge. The primary key declared below. TagsTable = "tweet_tags" // TagsInverseTable is the table name for the Tag entity. // It exists in this package in order to avoid circular dependency with the "tag" package. TagsInverseTable = "tags" // LikesTable is the table that holds the likes relation/edge. LikesTable = "tweet_likes" // LikesInverseTable is the table name for the TweetLike entity. // It exists in this package in order to avoid circular dependency with the "tweetlike" package. LikesInverseTable = "tweet_likes" // LikesColumn is the table column denoting the likes relation/edge. LikesColumn = "tweet_id" // TweetUserTable is the table that holds the tweet_user relation/edge. TweetUserTable = "user_tweets" // TweetUserInverseTable is the table name for the UserTweet entity. // It exists in this package in order to avoid circular dependency with the "usertweet" package. TweetUserInverseTable = "user_tweets" // TweetUserColumn is the table column denoting the tweet_user relation/edge. TweetUserColumn = "tweet_id" // TweetTagsTable is the table that holds the tweet_tags relation/edge. TweetTagsTable = "tweet_tags" // TweetTagsInverseTable is the table name for the TweetTag entity. // It exists in this package in order to avoid circular dependency with the "tweettag" package. TweetTagsInverseTable = "tweet_tags" // TweetTagsColumn is the table column denoting the tweet_tags relation/edge. TweetTagsColumn = "tweet_id" )
Variables ¶
var ( // LikedUsersPrimaryKey and LikedUsersColumn2 are the table columns denoting the // primary key for the liked_users relation (M2M). LikedUsersPrimaryKey = []string{"user_id", "tweet_id"} // UserPrimaryKey and UserColumn2 are the table columns denoting the // primary key for the user relation (M2M). UserPrimaryKey = []string{"user_id", "tweet_id"} // TagsPrimaryKey and TagsColumn2 are the table columns denoting the // primary key for the tags relation (M2M). TagsPrimaryKey = []string{"tag_id", "tweet_id"} )
var Columns = []string{ FieldID, FieldText, }
Columns holds all SQL columns for tweet fields.
Functions ¶
func HasLikedUsers ¶
HasLikedUsers applies the HasEdge predicate on the "liked_users" edge.
func HasLikedUsersWith ¶
HasLikedUsersWith applies the HasEdge predicate on the "liked_users" edge with a given conditions (other predicates).
func HasLikesWith ¶
HasLikesWith applies the HasEdge predicate on the "likes" edge with a given conditions (other predicates).
func HasTagsWith ¶
HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).
func HasTweetTags ¶
HasTweetTags applies the HasEdge predicate on the "tweet_tags" edge.
func HasTweetTagsWith ¶
HasTweetTagsWith applies the HasEdge predicate on the "tweet_tags" edge with a given conditions (other predicates).
func HasTweetUser ¶
HasTweetUser applies the HasEdge predicate on the "tweet_user" edge.
func HasTweetUserWith ¶
HasTweetUserWith applies the HasEdge predicate on the "tweet_user" 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 TextContains ¶
TextContains applies the Contains predicate on the "text" field.
func TextContainsFold ¶
TextContainsFold applies the ContainsFold predicate on the "text" field.
func TextEqualFold ¶
TextEqualFold applies the EqualFold predicate on the "text" field.
func TextHasPrefix ¶
TextHasPrefix applies the HasPrefix predicate on the "text" field.
func TextHasSuffix ¶
TextHasSuffix applies the HasSuffix predicate on the "text" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.