Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Moderator) predicate.Moderator
- func HasModerator() predicate.Moderator
- func HasModeratorWith(preds ...predicate.User) predicate.Moderator
- func HasTopic() predicate.Moderator
- func HasTopicWith(preds ...predicate.Topic) predicate.Moderator
- func ModeratorID(v uuid.UUID) predicate.Moderator
- func ModeratorIDEQ(v uuid.UUID) predicate.Moderator
- func ModeratorIDIn(vs ...uuid.UUID) predicate.Moderator
- func ModeratorIDNEQ(v uuid.UUID) predicate.Moderator
- func ModeratorIDNotIn(vs ...uuid.UUID) predicate.Moderator
- func Not(p predicate.Moderator) predicate.Moderator
- func Or(predicates ...predicate.Moderator) predicate.Moderator
- func TopicID(v int) predicate.Moderator
- func TopicIDEQ(v int) predicate.Moderator
- func TopicIDIn(vs ...int) predicate.Moderator
- func TopicIDNEQ(v int) predicate.Moderator
- func TopicIDNotIn(vs ...int) predicate.Moderator
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the moderator type in the database. Label = "moderator" // FieldModeratorID holds the string denoting the moderator_id field in the database. FieldModeratorID = "moderator_id" // FieldTopicID holds the string denoting the topic_id field in the database. FieldTopicID = "topic_id" // EdgeModerator holds the string denoting the moderator edge name in mutations. EdgeModerator = "moderator" // EdgeTopic holds the string denoting the topic edge name in mutations. EdgeTopic = "topic" // UserFieldID holds the string denoting the ID field of the User. UserFieldID = "id" // TopicFieldID holds the string denoting the ID field of the Topic. TopicFieldID = "id" // Table holds the table name of the moderator in the database. Table = "moderators" // ModeratorTable is the table that holds the moderator relation/edge. ModeratorTable = "moderators" // ModeratorInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. ModeratorInverseTable = "users" // ModeratorColumn is the table column denoting the moderator relation/edge. ModeratorColumn = "moderator_id" // TopicTable is the table that holds the topic relation/edge. TopicTable = "moderators" // TopicInverseTable is the table name for the Topic entity. // It exists in this package in order to avoid circular dependency with the "topic" package. TopicInverseTable = "topics" // TopicColumn is the table column denoting the topic relation/edge. TopicColumn = "topic_id" )
Variables ¶
var Columns = []string{ FieldModeratorID, FieldTopicID, }
Columns holds all SQL columns for moderator fields.
Functions ¶
func HasModerator ¶
HasModerator applies the HasEdge predicate on the "moderator" edge.
func HasModeratorWith ¶
HasModeratorWith applies the HasEdge predicate on the "moderator" edge with a given conditions (other predicates).
func HasTopicWith ¶
HasTopicWith applies the HasEdge predicate on the "topic" edge with a given conditions (other predicates).
func ModeratorID ¶
ModeratorID applies equality check predicate on the "moderator_id" field. It's identical to ModeratorIDEQ.
func ModeratorIDEQ ¶
ModeratorIDEQ applies the EQ predicate on the "moderator_id" field.
func ModeratorIDIn ¶
ModeratorIDIn applies the In predicate on the "moderator_id" field.
func ModeratorIDNEQ ¶
ModeratorIDNEQ applies the NEQ predicate on the "moderator_id" field.
func ModeratorIDNotIn ¶
ModeratorIDNotIn applies the NotIn predicate on the "moderator_id" field.
func TopicID ¶
TopicID applies equality check predicate on the "topic_id" field. It's identical to TopicIDEQ.
func TopicIDNEQ ¶
TopicIDNEQ applies the NEQ predicate on the "topic_id" field.
func TopicIDNotIn ¶
TopicIDNotIn applies the NotIn predicate on the "topic_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Moderator queries.
func ByModeratorField ¶
func ByModeratorField(field string, opts ...sql.OrderTermOption) OrderOption
ByModeratorField orders the results by moderator field.
func ByModeratorID ¶
func ByModeratorID(opts ...sql.OrderTermOption) OrderOption
ByModeratorID orders the results by the moderator_id field.
func ByTopicField ¶
func ByTopicField(field string, opts ...sql.OrderTermOption) OrderOption
ByTopicField orders the results by topic field.
func ByTopicID ¶
func ByTopicID(opts ...sql.OrderTermOption) OrderOption
ByTopicID orders the results by the topic_id field.