Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserTweet) predicate.UserTweet
- func CreatedAt(v time.Time) predicate.UserTweet
- func CreatedAtEQ(v time.Time) predicate.UserTweet
- func CreatedAtGT(v time.Time) predicate.UserTweet
- func CreatedAtGTE(v time.Time) predicate.UserTweet
- func CreatedAtIn(vs ...time.Time) predicate.UserTweet
- func CreatedAtLT(v time.Time) predicate.UserTweet
- func CreatedAtLTE(v time.Time) predicate.UserTweet
- func CreatedAtNEQ(v time.Time) predicate.UserTweet
- func CreatedAtNotIn(vs ...time.Time) predicate.UserTweet
- func HasTweet() predicate.UserTweet
- func HasTweetWith(preds ...predicate.Tweet) predicate.UserTweet
- func HasUser() predicate.UserTweet
- func HasUserWith(preds ...predicate.User) predicate.UserTweet
- func ID(id int) predicate.UserTweet
- func IDEQ(id int) predicate.UserTweet
- func IDGT(id int) predicate.UserTweet
- func IDGTE(id int) predicate.UserTweet
- func IDIn(ids ...int) predicate.UserTweet
- func IDLT(id int) predicate.UserTweet
- func IDLTE(id int) predicate.UserTweet
- func IDNEQ(id int) predicate.UserTweet
- func IDNotIn(ids ...int) predicate.UserTweet
- func Not(p predicate.UserTweet) predicate.UserTweet
- func Or(predicates ...predicate.UserTweet) predicate.UserTweet
- func TweetID(v int) predicate.UserTweet
- func TweetIDEQ(v int) predicate.UserTweet
- func TweetIDIn(vs ...int) predicate.UserTweet
- func TweetIDNEQ(v int) predicate.UserTweet
- func TweetIDNotIn(vs ...int) predicate.UserTweet
- func UserID(v int) predicate.UserTweet
- func UserIDEQ(v int) predicate.UserTweet
- func UserIDIn(vs ...int) predicate.UserTweet
- func UserIDNEQ(v int) predicate.UserTweet
- func UserIDNotIn(vs ...int) predicate.UserTweet
- func ValidColumn(column string) bool
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldCreatedAt, FieldUserID, FieldTweetID, }
Columns holds all SQL columns for usertweet fields.
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
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 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.