Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the task type in the database.
	Label = "task"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPriority holds the string denoting the priority field in the database.
	FieldPriority = "priority"
)

Variables

View Source
var (
	// DefaultPriority holds the default value on creation for the "priority" field.
	DefaultPriority schema.Priority
	// PriorityValidator is a validator for the "priority" field. It is called by the builders before save.
	PriorityValidator func(int) error
)

Functions

func And

func And(predicates ...predicate.Task) predicate.Task

And groups predicates with the AND operator between them.

func ID

func ID(id string) predicate.Task

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Task

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Task

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Task

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Task

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Task

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Task

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Task

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Task

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.Task) predicate.Task

Or groups predicates with the OR operator between them.

func Priority

func Priority(v schema.Priority) predicate.Task

Priority applies equality check predicate on the "priority" field. It's identical to PriorityEQ.

func PriorityEQ

func PriorityEQ(v schema.Priority) predicate.Task

PriorityEQ applies the EQ predicate on the "priority" field.

func PriorityGT

func PriorityGT(v schema.Priority) predicate.Task

PriorityGT applies the GT predicate on the "priority" field.

func PriorityGTE

func PriorityGTE(v schema.Priority) predicate.Task

PriorityGTE applies the GTE predicate on the "priority" field.

func PriorityIn

func PriorityIn(vs ...schema.Priority) predicate.Task

PriorityIn applies the In predicate on the "priority" field.

func PriorityLT

func PriorityLT(v schema.Priority) predicate.Task

PriorityLT applies the LT predicate on the "priority" field.

func PriorityLTE

func PriorityLTE(v schema.Priority) predicate.Task

PriorityLTE applies the LTE predicate on the "priority" field.

func PriorityNEQ

func PriorityNEQ(v schema.Priority) predicate.Task

PriorityNEQ applies the NEQ predicate on the "priority" field.

func PriorityNotIn

func PriorityNotIn(vs ...schema.Priority) predicate.Task

PriorityNotIn applies the NotIn predicate on the "priority" field.

Types

This section is empty.

Source Files