Documentation ¶
Index ¶
- Constants
- Variables
- func Admin(v bool) predicate.Category
- func AdminEQ(v bool) predicate.Category
- func AdminNEQ(v bool) predicate.Category
- func And(predicates ...predicate.Category) predicate.Category
- func Colour(v string) predicate.Category
- func ColourContains(v string) predicate.Category
- func ColourContainsFold(v string) predicate.Category
- func ColourEQ(v string) predicate.Category
- func ColourEqualFold(v string) predicate.Category
- func ColourGT(v string) predicate.Category
- func ColourGTE(v string) predicate.Category
- func ColourHasPrefix(v string) predicate.Category
- func ColourHasSuffix(v string) predicate.Category
- func ColourIn(vs ...string) predicate.Category
- func ColourLT(v string) predicate.Category
- func ColourLTE(v string) predicate.Category
- func ColourNEQ(v string) predicate.Category
- func ColourNotIn(vs ...string) predicate.Category
- func CreatedAt(v time.Time) predicate.Category
- func CreatedAtEQ(v time.Time) predicate.Category
- func CreatedAtGT(v time.Time) predicate.Category
- func CreatedAtGTE(v time.Time) predicate.Category
- func CreatedAtIn(vs ...time.Time) predicate.Category
- func CreatedAtLT(v time.Time) predicate.Category
- func CreatedAtLTE(v time.Time) predicate.Category
- func CreatedAtNEQ(v time.Time) predicate.Category
- func CreatedAtNotIn(vs ...time.Time) 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 HasPosts() predicate.Category
- func HasPostsWith(preds ...predicate.Post) predicate.Category
- func ID(id xid.ID) predicate.Category
- func IDEQ(id xid.ID) predicate.Category
- func IDGT(id xid.ID) predicate.Category
- func IDGTE(id xid.ID) predicate.Category
- func IDIn(ids ...xid.ID) predicate.Category
- func IDLT(id xid.ID) predicate.Category
- func IDLTE(id xid.ID) predicate.Category
- func IDNEQ(id xid.ID) predicate.Category
- func IDNotIn(ids ...xid.ID) 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 Sort(v int) predicate.Category
- func SortEQ(v int) predicate.Category
- func SortGT(v int) predicate.Category
- func SortGTE(v int) predicate.Category
- func SortIn(vs ...int) predicate.Category
- func SortLT(v int) predicate.Category
- func SortLTE(v int) predicate.Category
- func SortNEQ(v int) predicate.Category
- func SortNotIn(vs ...int) predicate.Category
- func UpdatedAt(v time.Time) predicate.Category
- func UpdatedAtEQ(v time.Time) predicate.Category
- func UpdatedAtGT(v time.Time) predicate.Category
- func UpdatedAtGTE(v time.Time) predicate.Category
- func UpdatedAtIn(vs ...time.Time) predicate.Category
- func UpdatedAtLT(v time.Time) predicate.Category
- func UpdatedAtLTE(v time.Time) predicate.Category
- func UpdatedAtNEQ(v time.Time) predicate.Category
- func UpdatedAtNotIn(vs ...time.Time) predicate.Category
- func ValidColumn(column string) bool
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" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // 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" // FieldColour holds the string denoting the colour field in the database. FieldColour = "colour" // FieldSort holds the string denoting the sort field in the database. FieldSort = "sort" // FieldAdmin holds the string denoting the admin field in the database. FieldAdmin = "admin" // EdgePosts holds the string denoting the posts edge name in mutations. EdgePosts = "posts" // Table holds the table name of the category in the database. Table = "categories" // PostsTable is the table that holds the posts relation/edge. PostsTable = "posts" // PostsInverseTable is the table name for the Post entity. // It exists in this package in order to avoid circular dependency with the "post" package. PostsInverseTable = "posts" // PostsColumn is the table column denoting the posts relation/edge. PostsColumn = "category_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultDescription holds the default value on creation for the "description" field. DefaultDescription string // DefaultColour holds the default value on creation for the "colour" field. DefaultColour string // DefaultSort holds the default value on creation for the "sort" field. DefaultSort int // DefaultAdmin holds the default value on creation for the "admin" field. DefaultAdmin bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() xid.ID // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldDescription, FieldColour, FieldSort, FieldAdmin, }
Columns holds all SQL columns for category fields.
Functions ¶
func Admin ¶
Admin applies equality check predicate on the "admin" field. It's identical to AdminEQ.
func Colour ¶
Colour applies equality check predicate on the "colour" field. It's identical to ColourEQ.
func ColourContains ¶
ColourContains applies the Contains predicate on the "colour" field.
func ColourContainsFold ¶
ColourContainsFold applies the ContainsFold predicate on the "colour" field.
func ColourEqualFold ¶
ColourEqualFold applies the EqualFold predicate on the "colour" field.
func ColourHasPrefix ¶
ColourHasPrefix applies the HasPrefix predicate on the "colour" field.
func ColourHasSuffix ¶
ColourHasSuffix applies the HasSuffix predicate on the "colour" field.
func ColourNotIn ¶
ColourNotIn applies the NotIn predicate on the "colour" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
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 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 UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.