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 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 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_todos" )
Variables ¶
var Columns = []string{ FieldID, FieldText, FieldStatus, FieldConfig, FieldDuration, FieldCount, FieldStrings, }
Columns holds all SQL columns for category fields.
var ( // TextValidator is a validator for the "text" field. It is called by the builders before save. TextValidator func(string) error )
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 ¶
Count applies equality check predicate on the "count" field. It's identical to CountEQ.
func CountIsNil ¶
CountIsNil applies the IsNil predicate on the "count" field.
func CountNotIn ¶
CountNotIn applies the NotIn predicate on the "count" field.
func CountNotNil ¶
CountNotNil applies the NotNil predicate on the "count" field.
func Duration ¶
Duration applies equality check predicate on the "duration" field. It's identical to DurationEQ.
func DurationEQ ¶
DurationEQ applies the EQ predicate on the "duration" field.
func DurationGT ¶
DurationGT applies the GT predicate on the "duration" field.
func DurationGTE ¶
DurationGTE applies the GTE predicate on the "duration" field.
func DurationIn ¶
DurationIn applies the In predicate on the "duration" field.
func DurationIsNil ¶
DurationIsNil applies the IsNil predicate on the "duration" field.
func DurationLT ¶
DurationLT applies the LT predicate on the "duration" field.
func DurationLTE ¶
DurationLTE applies the LTE predicate on the "duration" field.
func DurationNEQ ¶
DurationNEQ applies the NEQ predicate on the "duration" field.
func DurationNotIn ¶
DurationNotIn applies the NotIn predicate on the "duration" field.
func DurationNotNil ¶
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 ¶
StringsIsNil applies the IsNil predicate on the "strings" field.
func StringsNotNil ¶
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.