Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tag) predicate.Tag
- func HasTweetTags() predicate.Tag
- func HasTweetTagsWith(preds ...predicate.TweetTag) predicate.Tag
- func HasTweets() predicate.Tag
- func HasTweetsWith(preds ...predicate.Tweet) predicate.Tag
- func ID(id int) predicate.Tag
- func IDEQ(id int) predicate.Tag
- func IDGT(id int) predicate.Tag
- func IDGTE(id int) predicate.Tag
- func IDIn(ids ...int) predicate.Tag
- func IDLT(id int) predicate.Tag
- func IDLTE(id int) predicate.Tag
- func IDNEQ(id int) predicate.Tag
- func IDNotIn(ids ...int) predicate.Tag
- func Not(p predicate.Tag) predicate.Tag
- func Or(predicates ...predicate.Tag) predicate.Tag
- func ValidColumn(column string) bool
- func Value(v string) predicate.Tag
- func ValueContains(v string) predicate.Tag
- func ValueContainsFold(v string) predicate.Tag
- func ValueEQ(v string) predicate.Tag
- func ValueEqualFold(v string) predicate.Tag
- func ValueGT(v string) predicate.Tag
- func ValueGTE(v string) predicate.Tag
- func ValueHasPrefix(v string) predicate.Tag
- func ValueHasSuffix(v string) predicate.Tag
- func ValueIn(vs ...string) predicate.Tag
- func ValueLT(v string) predicate.Tag
- func ValueLTE(v string) predicate.Tag
- func ValueNEQ(v string) predicate.Tag
- func ValueNotIn(vs ...string) predicate.Tag
Constants ¶
const ( // Label holds the string label denoting the tag type in the database. Label = "tag" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // EdgeTweets holds the string denoting the tweets edge name in mutations. EdgeTweets = "tweets" // EdgeTweetTags holds the string denoting the tweet_tags edge name in mutations. EdgeTweetTags = "tweet_tags" // Table holds the table name of the tag in the database. Table = "tags" // TweetsTable is the table that holds the tweets relation/edge. The primary key declared below. TweetsTable = "tweet_tags" // TweetsInverseTable is the table name for the Tweet entity. // It exists in this package in order to avoid circular dependency with the "tweet" package. TweetsInverseTable = "tweets" // 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 = "tag_id" )
Variables ¶
var Columns = []string{ FieldID, FieldValue, }
Columns holds all SQL columns for tag fields.
var ( // TweetsPrimaryKey and TweetsColumn2 are the table columns denoting the // primary key for the tweets relation (M2M). TweetsPrimaryKey = []string{"tag_id", "tweet_id"} )
Functions ¶
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 HasTweetsWith ¶
HasTweetsWith applies the HasEdge predicate on the "tweets" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Value ¶
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueContains ¶
ValueContains applies the Contains predicate on the "value" field.
func ValueContainsFold ¶
ValueContainsFold applies the ContainsFold predicate on the "value" field.
func ValueEqualFold ¶
ValueEqualFold applies the EqualFold predicate on the "value" field.
func ValueHasPrefix ¶
ValueHasPrefix applies the HasPrefix predicate on the "value" field.
func ValueHasSuffix ¶
ValueHasSuffix applies the HasSuffix predicate on the "value" field.
func ValueNotIn ¶
ValueNotIn applies the NotIn predicate on the "value" field.
Types ¶
This section is empty.