Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Category) predicate.Category
- func Description(v string) predicate.Category
- func DescriptionContains(v string) predicate.Category
- func DescriptionContainsFold(v string) predicate.Category
- func DescriptionEQ(v string) predicate.Category
- func DescriptionEqualFold(v string) predicate.Category
- func DescriptionGT(v string) predicate.Category
- func DescriptionGTE(v string) predicate.Category
- func DescriptionHasPrefix(v string) predicate.Category
- func DescriptionHasSuffix(v string) predicate.Category
- func DescriptionIn(vs ...string) predicate.Category
- func DescriptionLT(v string) predicate.Category
- func DescriptionLTE(v string) predicate.Category
- func DescriptionNEQ(v string) predicate.Category
- func DescriptionNotIn(vs ...string) predicate.Category
- func HasBlogPosts() predicate.Category
- func HasBlogPostsWith(preds ...predicate.BlogPost) predicate.Category
- func ID(id int) predicate.Category
- func IDEQ(id int) predicate.Category
- func IDGT(id int) predicate.Category
- func IDGTE(id int) predicate.Category
- func IDIn(ids ...int) predicate.Category
- func IDLT(id int) predicate.Category
- func IDLTE(id int) predicate.Category
- func IDNEQ(id int) predicate.Category
- func IDNotIn(ids ...int) predicate.Category
- func Name(v string) predicate.Category
- func NameContains(v string) predicate.Category
- func NameContainsFold(v string) predicate.Category
- func NameEQ(v string) predicate.Category
- func NameEqualFold(v string) predicate.Category
- func NameGT(v string) predicate.Category
- func NameGTE(v string) predicate.Category
- func NameHasPrefix(v string) predicate.Category
- func NameHasSuffix(v string) predicate.Category
- func NameIn(vs ...string) predicate.Category
- func NameLT(v string) predicate.Category
- func NameLTE(v string) predicate.Category
- func NameNEQ(v string) predicate.Category
- func NameNotIn(vs ...string) predicate.Category
- func Not(p predicate.Category) predicate.Category
- func Or(predicates ...predicate.Category) predicate.Category
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the category type in the database. Label = "category" // 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" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // EdgeBlogPosts holds the string denoting the blog_posts edge name in mutations. EdgeBlogPosts = "blog_posts" // Table holds the table name of the category in the database. Table = "categories" // BlogPostsTable is the table that holds the blog_posts relation/edge. The primary key declared below. BlogPostsTable = "category_blog_posts" // BlogPostsInverseTable is the table name for the BlogPost entity. // It exists in this package in order to avoid circular dependency with the "blogpost" package. BlogPostsInverseTable = "blog_posts" )
Variables ¶
var ( // BlogPostsPrimaryKey and BlogPostsColumn2 are the table columns denoting the // primary key for the blog_posts relation (M2M). BlogPostsPrimaryKey = []string{"category_id", "blog_post_id"} )
var Columns = []string{ FieldID, FieldName, FieldDescription, }
Columns holds all SQL columns for category fields.
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 HasBlogPosts ¶
HasBlogPosts applies the HasEdge predicate on the "blog_posts" edge.
func HasBlogPostsWith ¶
HasBlogPostsWith applies the HasEdge predicate on the "blog_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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Category queries.
func ByBlogPosts ¶
func ByBlogPosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByBlogPosts orders the results by blog_posts terms.
func ByBlogPostsCount ¶
func ByBlogPostsCount(opts ...sql.OrderTermOption) OrderOption
ByBlogPostsCount orders the results by blog_posts count.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description 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.