category

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for category fields.

Functions

func And

func And(predicates ...predicate.Category) predicate.Category

And groups predicates with the AND operator between them.

func Config

Config applies equality check predicate on the "config" field. It's identical to ConfigEQ.

func ConfigEQ

ConfigEQ applies the EQ predicate on the "config" field.

func ConfigGT

ConfigGT applies the GT predicate on the "config" field.

func ConfigGTE

ConfigGTE applies the GTE predicate on the "config" field.

func ConfigIn

ConfigIn applies the In predicate on the "config" field.

func ConfigIsNil

func ConfigIsNil() predicate.Category

ConfigIsNil applies the IsNil predicate on the "config" field.

func ConfigLT

ConfigLT applies the LT predicate on the "config" field.

func ConfigLTE

ConfigLTE applies the LTE predicate on the "config" field.

func ConfigNEQ

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

func ConfigNotNil() predicate.Category

ConfigNotNil applies the NotNil predicate on the "config" field.

func Count

func Count(v uint64) predicate.Category

Count applies equality check predicate on the "count" field. It's identical to CountEQ.

func CountEQ

func CountEQ(v uint64) predicate.Category

CountEQ applies the EQ predicate on the "count" field.

func CountGT

func CountGT(v uint64) predicate.Category

CountGT applies the GT predicate on the "count" field.

func CountGTE

func CountGTE(v uint64) predicate.Category

CountGTE applies the GTE predicate on the "count" field.

func CountIn

func CountIn(vs ...uint64) predicate.Category

CountIn applies the In predicate on the "count" field.

func CountIsNil

func CountIsNil() predicate.Category

CountIsNil applies the IsNil predicate on the "count" field.

func CountLT

func CountLT(v uint64) predicate.Category

CountLT applies the LT predicate on the "count" field.

func CountLTE

func CountLTE(v uint64) predicate.Category

CountLTE applies the LTE predicate on the "count" field.

func CountNEQ

func CountNEQ(v uint64) predicate.Category

CountNEQ applies the NEQ predicate on the "count" field.

func CountNotIn

func CountNotIn(vs ...uint64) predicate.Category

CountNotIn applies the NotIn predicate on the "count" field.

func CountNotNil

func CountNotNil() predicate.Category

CountNotNil applies the NotNil predicate on the "count" field.

func Duration

func Duration(v time.Duration) predicate.Category

Duration applies equality check predicate on the "duration" field. It's identical to DurationEQ.

func DurationEQ

func DurationEQ(v time.Duration) predicate.Category

DurationEQ applies the EQ predicate on the "duration" field.

func DurationGT

func DurationGT(v time.Duration) predicate.Category

DurationGT applies the GT predicate on the "duration" field.

func DurationGTE

func DurationGTE(v time.Duration) predicate.Category

DurationGTE applies the GTE predicate on the "duration" field.

func DurationIn

func DurationIn(vs ...time.Duration) predicate.Category

DurationIn applies the In predicate on the "duration" field.

func DurationIsNil

func DurationIsNil() predicate.Category

DurationIsNil applies the IsNil predicate on the "duration" field.

func DurationLT

func DurationLT(v time.Duration) predicate.Category

DurationLT applies the LT predicate on the "duration" field.

func DurationLTE

func DurationLTE(v time.Duration) predicate.Category

DurationLTE applies the LTE predicate on the "duration" field.

func DurationNEQ

func DurationNEQ(v time.Duration) predicate.Category

DurationNEQ applies the NEQ predicate on the "duration" field.

func DurationNotIn

func DurationNotIn(vs ...time.Duration) predicate.Category

DurationNotIn applies the NotIn predicate on the "duration" field.

func DurationNotNil

func DurationNotNil() predicate.Category

DurationNotNil applies the NotNil predicate on the "duration" field.

func HasTodos

func HasTodos() predicate.Category

HasTodos applies the HasEdge predicate on the "todos" edge.

func HasTodosWith

func HasTodosWith(preds ...predicate.Todo) predicate.Category

HasTodosWith applies the HasEdge predicate on the "todos" edge with a given conditions (other predicates).

func ID

func ID(id pulid.ID) predicate.Category

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id pulid.ID) predicate.Category

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id pulid.ID) predicate.Category

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id pulid.ID) predicate.Category

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...pulid.ID) predicate.Category

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id pulid.ID) predicate.Category

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id pulid.ID) predicate.Category

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id pulid.ID) predicate.Category

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...pulid.ID) predicate.Category

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Category) predicate.Category

Or groups predicates with the OR operator between them.

func StatusEQ

func StatusEQ(v Status) predicate.Category

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.Category

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.Category

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.Category

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func StringsIsNil

func StringsIsNil() predicate.Category

StringsIsNil applies the IsNil predicate on the "strings" field.

func StringsNotNil

func StringsNotNil() predicate.Category

StringsNotNil applies the NotNil predicate on the "strings" field.

func Text

func Text(v string) predicate.Category

Text applies equality check predicate on the "text" field. It's identical to TextEQ.

func TextContains

func TextContains(v string) predicate.Category

TextContains applies the Contains predicate on the "text" field.

func TextContainsFold

func TextContainsFold(v string) predicate.Category

TextContainsFold applies the ContainsFold predicate on the "text" field.

func TextEQ

func TextEQ(v string) predicate.Category

TextEQ applies the EQ predicate on the "text" field.

func TextEqualFold

func TextEqualFold(v string) predicate.Category

TextEqualFold applies the EqualFold predicate on the "text" field.

func TextGT

func TextGT(v string) predicate.Category

TextGT applies the GT predicate on the "text" field.

func TextGTE

func TextGTE(v string) predicate.Category

TextGTE applies the GTE predicate on the "text" field.

func TextHasPrefix

func TextHasPrefix(v string) predicate.Category

TextHasPrefix applies the HasPrefix predicate on the "text" field.

func TextHasSuffix

func TextHasSuffix(v string) predicate.Category

TextHasSuffix applies the HasSuffix predicate on the "text" field.

func TextIn

func TextIn(vs ...string) predicate.Category

TextIn applies the In predicate on the "text" field.

func TextLT

func TextLT(v string) predicate.Category

TextLT applies the LT predicate on the "text" field.

func TextLTE

func TextLTE(v string) predicate.Category

TextLTE applies the LTE predicate on the "text" field.

func TextNEQ

func TextNEQ(v string) predicate.Category

TextNEQ applies the NEQ predicate on the "text" field.

func TextNotIn

func TextNotIn(vs ...string) predicate.Category

TextNotIn applies the NotIn predicate on the "text" field.

func ValidColumn

func ValidColumn(column string) bool

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.

const (
	StatusEnabled  Status = "ENABLED"
	StatusDisabled Status = "DISABLED"
)

Status values.

func (Status) MarshalGQL

func (e Status) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Status) String

func (s Status) String() string

func (*Status) UnmarshalGQL

func (e *Status) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL