task

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: Apache-2.0 Imports: 3 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"

	// Table holds the table name of the task in the database.
	Table = "tasks"
)

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
)
View Source
var Columns = []string{
	FieldID,
	FieldPriority,
}

Columns holds all SQL columns for task fields.

Functions

func And

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

And groups list of predicates with the AND operator between them.

func ID

func ID(id int) predicate.Task

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Task

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Task

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Task

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Task

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Task

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Task

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) 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 list of 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.

Jump to

Keyboard shortcuts

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