Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Category) predicate.Category
- func Config(v *schematype.CategoryConfig) predicate.Category
- func ConfigEQ(v *schematype.CategoryConfig) predicate.Category
- func ConfigGT(v *schematype.CategoryConfig) predicate.Category
- func ConfigGTE(v *schematype.CategoryConfig) predicate.Category
- func ConfigIn(vs ...*schematype.CategoryConfig) predicate.Category
- func ConfigIsNil() predicate.Category
- func ConfigLT(v *schematype.CategoryConfig) predicate.Category
- func ConfigLTE(v *schematype.CategoryConfig) predicate.Category
- func ConfigNEQ(v *schematype.CategoryConfig) predicate.Category
- func ConfigNotIn(vs ...*schematype.CategoryConfig) predicate.Category
- func ConfigNotNil() predicate.Category
- func Count(v uint64) predicate.Category
- func CountEQ(v uint64) predicate.Category
- func CountGT(v uint64) predicate.Category
- func CountGTE(v uint64) predicate.Category
- func CountIn(vs ...uint64) predicate.Category
- func CountIsNil() predicate.Category
- func CountLT(v uint64) predicate.Category
- func CountLTE(v uint64) predicate.Category
- func CountNEQ(v uint64) predicate.Category
- func CountNotIn(vs ...uint64) predicate.Category
- func CountNotNil() predicate.Category
- func Duration(v time.Duration) predicate.Category
- func DurationEQ(v time.Duration) predicate.Category
- func DurationGT(v time.Duration) predicate.Category
- func DurationGTE(v time.Duration) predicate.Category
- func DurationIn(vs ...time.Duration) predicate.Category
- func DurationIsNil() predicate.Category
- func DurationLT(v time.Duration) predicate.Category
- func DurationLTE(v time.Duration) predicate.Category
- func DurationNEQ(v time.Duration) predicate.Category
- func DurationNotIn(vs ...time.Duration) predicate.Category
- func DurationNotNil() predicate.Category
- func HasTodos() predicate.Category
- func HasTodosWith(preds ...predicate.Todo) predicate.Category
- func ID(id pulid.ID) predicate.Category
- func IDEQ(id pulid.ID) predicate.Category
- func IDGT(id pulid.ID) predicate.Category
- func IDGTE(id pulid.ID) predicate.Category
- func IDIn(ids ...pulid.ID) predicate.Category
- func IDLT(id pulid.ID) predicate.Category
- func IDLTE(id pulid.ID) predicate.Category
- func IDNEQ(id pulid.ID) predicate.Category
- func IDNotIn(ids ...pulid.ID) predicate.Category
- func Not(p predicate.Category) predicate.Category
- func Or(predicates ...predicate.Category) predicate.Category
- func StatusEQ(v Status) predicate.Category
- func StatusIn(vs ...Status) predicate.Category
- func StatusNEQ(v Status) predicate.Category
- func StatusNotIn(vs ...Status) predicate.Category
- func StatusValidator(s Status) error
- func StringsIsNil() predicate.Category
- func StringsNotNil() predicate.Category
- func Text(v string) predicate.Category
- func TextContains(v string) predicate.Category
- func TextContainsFold(v string) predicate.Category
- func TextEQ(v string) predicate.Category
- func TextEqualFold(v string) predicate.Category
- func TextGT(v string) predicate.Category
- func TextGTE(v string) predicate.Category
- func TextHasPrefix(v string) predicate.Category
- func TextHasSuffix(v string) predicate.Category
- func TextIn(vs ...string) predicate.Category
- func TextLT(v string) predicate.Category
- func TextLTE(v string) predicate.Category
- func TextNEQ(v string) predicate.Category
- func TextNotIn(vs ...string) predicate.Category
- func ValidColumn(column string) bool
- type Status
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" // FieldText holds the string denoting the text field in the database. FieldText = "text" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldConfig holds the string denoting the config field in the database. FieldConfig = "config" // FieldDuration holds the string denoting the duration field in the database. FieldDuration = "duration" // FieldCount holds the string denoting the count field in the database. FieldCount = "count" // FieldStrings holds the string denoting the strings field in the database. FieldStrings = "strings" // EdgeTodos holds the string denoting the todos edge name in mutations. EdgeTodos = "todos" // Table holds the table name of the category in the database. Table = "categories" // TodosTable is the table that holds the todos relation/edge. TodosTable = "todos" // TodosInverseTable is the table name for the Todo entity. // It exists in this package in order to avoid circular dependency with the "todo" package. TodosInverseTable = "todos" // TodosColumn is the table column denoting the todos relation/edge. TodosColumn = "category_id" )
Variables ¶
var ( // TextValidator is a validator for the "text" field. It is called by the builders before save. TextValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() pulid.ID )
var Columns = []string{ FieldID, FieldText, FieldStatus, FieldConfig, FieldDuration, FieldCount, FieldStrings, }
Columns holds all SQL columns for category fields.
Functions ¶
func Config ¶
func Config(v *schematype.CategoryConfig) predicate.Category
Config applies equality check predicate on the "config" field. It's identical to ConfigEQ.
func ConfigEQ ¶
func ConfigEQ(v *schematype.CategoryConfig) predicate.Category
ConfigEQ applies the EQ predicate on the "config" field.
func ConfigGT ¶
func ConfigGT(v *schematype.CategoryConfig) predicate.Category
ConfigGT applies the GT predicate on the "config" field.
func ConfigGTE ¶
func ConfigGTE(v *schematype.CategoryConfig) predicate.Category
ConfigGTE applies the GTE predicate on the "config" field.
func ConfigIn ¶
func ConfigIn(vs ...*schematype.CategoryConfig) predicate.Category
ConfigIn applies the In predicate on the "config" field.
func ConfigIsNil ¶
ConfigIsNil applies the IsNil predicate on the "config" field.
func ConfigLT ¶
func ConfigLT(v *schematype.CategoryConfig) predicate.Category
ConfigLT applies the LT predicate on the "config" field.
func ConfigLTE ¶
func ConfigLTE(v *schematype.CategoryConfig) predicate.Category
ConfigLTE applies the LTE predicate on the "config" field.
func ConfigNEQ ¶
func ConfigNEQ(v *schematype.CategoryConfig) predicate.Category
ConfigNEQ applies the NEQ predicate on the "config" field.
func ConfigNotIn ¶
func ConfigNotIn(vs ...*schematype.CategoryConfig) predicate.Category
ConfigNotIn applies the NotIn predicate on the "config" field.
func ConfigNotNil ¶
ConfigNotNil applies the NotNil predicate on the "config" field.
func Count ¶ added in v0.2.0
Count applies equality check predicate on the "count" field. It's identical to CountEQ.
func CountIsNil ¶ added in v0.2.0
CountIsNil applies the IsNil predicate on the "count" field.
func CountNotIn ¶ added in v0.2.0
CountNotIn applies the NotIn predicate on the "count" field.
func CountNotNil ¶ added in v0.2.0
CountNotNil applies the NotNil predicate on the "count" field.
func Duration ¶ added in v0.2.0
Duration applies equality check predicate on the "duration" field. It's identical to DurationEQ.
func DurationEQ ¶ added in v0.2.0
DurationEQ applies the EQ predicate on the "duration" field.
func DurationGT ¶ added in v0.2.0
DurationGT applies the GT predicate on the "duration" field.
func DurationGTE ¶ added in v0.2.0
DurationGTE applies the GTE predicate on the "duration" field.
func DurationIn ¶ added in v0.2.0
DurationIn applies the In predicate on the "duration" field.
func DurationIsNil ¶ added in v0.2.0
DurationIsNil applies the IsNil predicate on the "duration" field.
func DurationLT ¶ added in v0.2.0
DurationLT applies the LT predicate on the "duration" field.
func DurationLTE ¶ added in v0.2.0
DurationLTE applies the LTE predicate on the "duration" field.
func DurationNEQ ¶ added in v0.2.0
DurationNEQ applies the NEQ predicate on the "duration" field.
func DurationNotIn ¶ added in v0.2.0
DurationNotIn applies the NotIn predicate on the "duration" field.
func DurationNotNil ¶ added in v0.2.0
DurationNotNil applies the NotNil predicate on the "duration" field.
func HasTodosWith ¶
HasTodosWith applies the HasEdge predicate on the "todos" edge with a given conditions (other predicates).
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func StringsIsNil ¶ added in v0.3.0
StringsIsNil applies the IsNil predicate on the "strings" field.
func StringsNotNil ¶ added in v0.3.0
StringsNotNil applies the NotNil predicate on the "strings" field.
func TextContains ¶
TextContains applies the Contains predicate on the "text" field.
func TextContainsFold ¶
TextContainsFold applies the ContainsFold predicate on the "text" field.
func TextEqualFold ¶
TextEqualFold applies the EqualFold predicate on the "text" field.
func TextHasPrefix ¶
TextHasPrefix applies the HasPrefix predicate on the "text" field.
func TextHasSuffix ¶
TextHasSuffix applies the HasSuffix predicate on the "text" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Status ¶
type Status string
Status defines the type for the "status" enum field.
func (Status) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Status) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.