enttask

package
v1.0.1 Latest Latest
Warning

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

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

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

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

func PriorityEQ

func PriorityEQ(v task.Priority) predicate.Task

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

func PriorityGT

func PriorityGT(v task.Priority) predicate.Task

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

func PriorityGTE

func PriorityGTE(v task.Priority) predicate.Task

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

func PriorityIn

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

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

func PriorityLT

func PriorityLT(v task.Priority) predicate.Task

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

func PriorityLTE

func PriorityLTE(v task.Priority) predicate.Task

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

func PriorityNEQ

func PriorityNEQ(v task.Priority) predicate.Task

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

func PriorityNotIn

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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