todo

package
v0.0.0-...-1ba6274 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the todo type in the database.
	Label = "todo"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// FieldDue holds the string denoting the due field in the database.
	FieldDue = "due"
	// FieldPriority holds the string denoting the priority field in the database.
	FieldPriority = "priority"
	// Table holds the table name of the todo in the database.
	Table = "todos"
)
View Source
const DefaultPriority = PriorityMedium

PriorityMedium is the default value of the Priority enum.

Variables

Columns holds all SQL columns for todo fields.

Functions

func And

func And(predicates ...predicate.Todo) predicate.Todo

And groups predicates with the AND operator between them.

func Content

func Content(v string) predicate.Todo

Content applies equality check predicate on the "content" field. It's identical to ContentEQ.

func ContentContains

func ContentContains(v string) predicate.Todo

ContentContains applies the Contains predicate on the "content" field.

func ContentContainsFold

func ContentContainsFold(v string) predicate.Todo

ContentContainsFold applies the ContainsFold predicate on the "content" field.

func ContentEQ

func ContentEQ(v string) predicate.Todo

ContentEQ applies the EQ predicate on the "content" field.

func ContentEqualFold

func ContentEqualFold(v string) predicate.Todo

ContentEqualFold applies the EqualFold predicate on the "content" field.

func ContentGT

func ContentGT(v string) predicate.Todo

ContentGT applies the GT predicate on the "content" field.

func ContentGTE

func ContentGTE(v string) predicate.Todo

ContentGTE applies the GTE predicate on the "content" field.

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.Todo

ContentHasPrefix applies the HasPrefix predicate on the "content" field.

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.Todo

ContentHasSuffix applies the HasSuffix predicate on the "content" field.

func ContentIn

func ContentIn(vs ...string) predicate.Todo

ContentIn applies the In predicate on the "content" field.

func ContentLT

func ContentLT(v string) predicate.Todo

ContentLT applies the LT predicate on the "content" field.

func ContentLTE

func ContentLTE(v string) predicate.Todo

ContentLTE applies the LTE predicate on the "content" field.

func ContentNEQ

func ContentNEQ(v string) predicate.Todo

ContentNEQ applies the NEQ predicate on the "content" field.

func ContentNotIn

func ContentNotIn(vs ...string) predicate.Todo

ContentNotIn applies the NotIn predicate on the "content" field.

func Due

func Due(v time.Time) predicate.Todo

Due applies equality check predicate on the "due" field. It's identical to DueEQ.

func DueEQ

func DueEQ(v time.Time) predicate.Todo

DueEQ applies the EQ predicate on the "due" field.

func DueGT

func DueGT(v time.Time) predicate.Todo

DueGT applies the GT predicate on the "due" field.

func DueGTE

func DueGTE(v time.Time) predicate.Todo

DueGTE applies the GTE predicate on the "due" field.

func DueIn

func DueIn(vs ...time.Time) predicate.Todo

DueIn applies the In predicate on the "due" field.

func DueIsNil

func DueIsNil() predicate.Todo

DueIsNil applies the IsNil predicate on the "due" field.

func DueLT

func DueLT(v time.Time) predicate.Todo

DueLT applies the LT predicate on the "due" field.

func DueLTE

func DueLTE(v time.Time) predicate.Todo

DueLTE applies the LTE predicate on the "due" field.

func DueNEQ

func DueNEQ(v time.Time) predicate.Todo

DueNEQ applies the NEQ predicate on the "due" field.

func DueNotIn

func DueNotIn(vs ...time.Time) predicate.Todo

DueNotIn applies the NotIn predicate on the "due" field.

func DueNotNil

func DueNotNil() predicate.Todo

DueNotNil applies the NotNil predicate on the "due" field.

func ID

func ID(id int) predicate.Todo

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Todo

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Todo

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Todo

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Todo

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Todo

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Todo

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Todo

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

Or groups predicates with the OR operator between them.

func PriorityEQ

func PriorityEQ(v Priority) predicate.Todo

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

func PriorityIn

func PriorityIn(vs ...Priority) predicate.Todo

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

func PriorityNEQ

func PriorityNEQ(v Priority) predicate.Todo

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

func PriorityNotIn

func PriorityNotIn(vs ...Priority) predicate.Todo

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

func PriorityValidator

func PriorityValidator(pr Priority) error

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

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Todo queries.

func ByContent

func ByContent(opts ...sql.OrderTermOption) OrderOption

ByContent orders the results by the content field.

func ByDue

func ByDue(opts ...sql.OrderTermOption) OrderOption

ByDue orders the results by the due field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByPriority

func ByPriority(opts ...sql.OrderTermOption) OrderOption

ByPriority orders the results by the priority field.

type Priority

type Priority string

Priority defines the type for the "priority" enum field.

const (
	PriorityLow    Priority = "low"
	PriorityMedium Priority = "medium"
	PriorityHigh   Priority = "high"
)

Priority values.

func (Priority) MarshalGQL

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

MarshalGQL implements graphql.Marshaler interface.

func (Priority) String

func (pr Priority) String() string

func (*Priority) UnmarshalGQL

func (e *Priority) 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