Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Forum) predicate.Forum
- func Description(v string) predicate.Forum
- func DescriptionContains(v string) predicate.Forum
- func DescriptionContainsFold(v string) predicate.Forum
- func DescriptionEQ(v string) predicate.Forum
- func DescriptionEqualFold(v string) predicate.Forum
- func DescriptionGT(v string) predicate.Forum
- func DescriptionGTE(v string) predicate.Forum
- func DescriptionHasPrefix(v string) predicate.Forum
- func DescriptionHasSuffix(v string) predicate.Forum
- func DescriptionIn(vs ...string) predicate.Forum
- func DescriptionLT(v string) predicate.Forum
- func DescriptionLTE(v string) predicate.Forum
- func DescriptionNEQ(v string) predicate.Forum
- func DescriptionNotIn(vs ...string) predicate.Forum
- func HasGroup() predicate.Forum
- func HasGroupWith(preds ...predicate.Group) predicate.Forum
- func HasPosts() predicate.Forum
- func HasPostsWith(preds ...predicate.ForumPost) predicate.Forum
- func ID(id int) predicate.Forum
- func IDEQ(id int) predicate.Forum
- func IDGT(id int) predicate.Forum
- func IDGTE(id int) predicate.Forum
- func IDIn(ids ...int) predicate.Forum
- func IDLT(id int) predicate.Forum
- func IDLTE(id int) predicate.Forum
- func IDNEQ(id int) predicate.Forum
- func IDNotIn(ids ...int) predicate.Forum
- func Name(v string) predicate.Forum
- func NameContains(v string) predicate.Forum
- func NameContainsFold(v string) predicate.Forum
- func NameEQ(v string) predicate.Forum
- func NameEqualFold(v string) predicate.Forum
- func NameGT(v string) predicate.Forum
- func NameGTE(v string) predicate.Forum
- func NameHasPrefix(v string) predicate.Forum
- func NameHasSuffix(v string) predicate.Forum
- func NameIn(vs ...string) predicate.Forum
- func NameLT(v string) predicate.Forum
- func NameLTE(v string) predicate.Forum
- func NameNEQ(v string) predicate.Forum
- func NameNotIn(vs ...string) predicate.Forum
- func Not(p predicate.Forum) predicate.Forum
- func Or(predicates ...predicate.Forum) predicate.Forum
- func ShortName(v string) predicate.Forum
- func ShortNameContains(v string) predicate.Forum
- func ShortNameContainsFold(v string) predicate.Forum
- func ShortNameEQ(v string) predicate.Forum
- func ShortNameEqualFold(v string) predicate.Forum
- func ShortNameGT(v string) predicate.Forum
- func ShortNameGTE(v string) predicate.Forum
- func ShortNameHasPrefix(v string) predicate.Forum
- func ShortNameHasSuffix(v string) predicate.Forum
- func ShortNameIn(vs ...string) predicate.Forum
- func ShortNameLT(v string) predicate.Forum
- func ShortNameLTE(v string) predicate.Forum
- func ShortNameNEQ(v string) predicate.Forum
- func ShortNameNotIn(vs ...string) predicate.Forum
- func ValidColumn(column string) bool
- type OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPostsCount(opts ...sql.OrderTermOption) OrderOption
- func ByShortName(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the forum type in the database. Label = "forum" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldShortName holds the string denoting the short_name field in the database. FieldShortName = "short_name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // EdgeGroup holds the string denoting the group edge name in mutations. EdgeGroup = "group" // EdgePosts holds the string denoting the posts edge name in mutations. EdgePosts = "posts" // Table holds the table name of the forum in the database. Table = "forums" // GroupTable is the table that holds the group relation/edge. GroupTable = "forums" // GroupInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "entgroup" package. GroupInverseTable = "groups" // GroupColumn is the table column denoting the group relation/edge. GroupColumn = "group_forums" // PostsTable is the table that holds the posts relation/edge. PostsTable = "forum_posts" // PostsInverseTable is the table name for the ForumPost entity. // It exists in this package in order to avoid circular dependency with the "forumpost" package. PostsInverseTable = "forum_posts" // PostsColumn is the table column denoting the posts relation/edge. PostsColumn = "forum_posts" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // ShortNameValidator is a validator for the "short_name" field. It is called by the builders before save. ShortNameValidator func(string) error )
var Columns = []string{ FieldID, FieldName, FieldShortName, FieldDescription, }
Columns holds all SQL columns for forum fields.
var ForeignKeys = []string{
"group_forums",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "forums" table and are not defined as standalone fields in the schema.
Functions ¶
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasGroupWith ¶
HasGroupWith applies the HasEdge predicate on the "group" edge with a given conditions (other predicates).
func HasPostsWith ¶
HasPostsWith applies the HasEdge predicate on the "posts" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ShortName ¶
ShortName applies equality check predicate on the "short_name" field. It's identical to ShortNameEQ.
func ShortNameContains ¶
ShortNameContains applies the Contains predicate on the "short_name" field.
func ShortNameContainsFold ¶
ShortNameContainsFold applies the ContainsFold predicate on the "short_name" field.
func ShortNameEQ ¶
ShortNameEQ applies the EQ predicate on the "short_name" field.
func ShortNameEqualFold ¶
ShortNameEqualFold applies the EqualFold predicate on the "short_name" field.
func ShortNameGT ¶
ShortNameGT applies the GT predicate on the "short_name" field.
func ShortNameGTE ¶
ShortNameGTE applies the GTE predicate on the "short_name" field.
func ShortNameHasPrefix ¶
ShortNameHasPrefix applies the HasPrefix predicate on the "short_name" field.
func ShortNameHasSuffix ¶
ShortNameHasSuffix applies the HasSuffix predicate on the "short_name" field.
func ShortNameIn ¶
ShortNameIn applies the In predicate on the "short_name" field.
func ShortNameLT ¶
ShortNameLT applies the LT predicate on the "short_name" field.
func ShortNameLTE ¶
ShortNameLTE applies the LTE predicate on the "short_name" field.
func ShortNameNEQ ¶
ShortNameNEQ applies the NEQ predicate on the "short_name" field.
func ShortNameNotIn ¶
ShortNameNotIn applies the NotIn predicate on the "short_name" 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 Forum queries.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByGroupField ¶
func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
ByGroupField orders the results by group field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPosts ¶
func ByPosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPosts orders the results by posts terms.
func ByPostsCount ¶
func ByPostsCount(opts ...sql.OrderTermOption) OrderOption
ByPostsCount orders the results by posts count.
func ByShortName ¶
func ByShortName(opts ...sql.OrderTermOption) OrderOption
ByShortName orders the results by the short_name field.