Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tag) predicate.Tag
- func HasGroupTags() predicate.Tag
- func HasGroupTagsWith(preds ...predicate.GroupTag) predicate.Tag
- func HasGroups() predicate.Tag
- func HasGroupsWith(preds ...predicate.Group) 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" // EdgeGroups holds the string denoting the groups edge name in mutations. EdgeGroups = "groups" // EdgeTweetTags holds the string denoting the tweet_tags edge name in mutations. EdgeTweetTags = "tweet_tags" // EdgeGroupTags holds the string denoting the group_tags edge name in mutations. EdgeGroupTags = "group_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" // GroupsTable is the table that holds the groups relation/edge. The primary key declared below. GroupsTable = "group_tags" // GroupsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. GroupsInverseTable = "groups" // 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" // GroupTagsTable is the table that holds the group_tags relation/edge. GroupTagsTable = "group_tags" // GroupTagsInverseTable is the table name for the GroupTag entity. // It exists in this package in order to avoid circular dependency with the "grouptag" package. GroupTagsInverseTable = "group_tags" // GroupTagsColumn is the table column denoting the group_tags relation/edge. GroupTagsColumn = "tag_id" )
Variables ¶
var ( // TweetsPrimaryKey and TweetsColumn2 are the table columns denoting the // primary key for the tweets relation (M2M). TweetsPrimaryKey = []string{"tag_id", "tweet_id"} // GroupsPrimaryKey and GroupsColumn2 are the table columns denoting the // primary key for the groups relation (M2M). GroupsPrimaryKey = []string{"tag_id", "group_id"} )
var Columns = []string{ FieldID, FieldValue, }
Columns holds all SQL columns for tag fields.
Functions ¶
func HasGroupTags ¶ added in v0.11.5
HasGroupTags applies the HasEdge predicate on the "group_tags" edge.
func HasGroupTagsWith ¶ added in v0.11.5
HasGroupTagsWith applies the HasEdge predicate on the "group_tags" edge with a given conditions (other predicates).
func HasGroupsWith ¶ added in v0.11.5
HasGroupsWith applies the HasEdge predicate on the "groups" 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 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.