task

package
v0.0.0-...-9616c94 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: MIT Imports: 4 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"
	// FieldOwner holds the string denoting the owner field in the database.
	FieldOwner = "owner"
	// 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"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// Table holds the table name of the task in the database.
	Table = "tasks"
)
View Source
const DefaultStatus = StatusTodo

StatusTodo is the default value of the Status enum.

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
)

Columns holds all SQL columns for task fields.

Functions

func And

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

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Task

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Task

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Task

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Task

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Task

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Task

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Task

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Task

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Task

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

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 Owner

func Owner(v string) predicate.Task

Owner applies equality check predicate on the "owner" field. It's identical to OwnerEQ.

func OwnerContains

func OwnerContains(v string) predicate.Task

OwnerContains applies the Contains predicate on the "owner" field.

func OwnerContainsFold

func OwnerContainsFold(v string) predicate.Task

OwnerContainsFold applies the ContainsFold predicate on the "owner" field.

func OwnerEQ

func OwnerEQ(v string) predicate.Task

OwnerEQ applies the EQ predicate on the "owner" field.

func OwnerEqualFold

func OwnerEqualFold(v string) predicate.Task

OwnerEqualFold applies the EqualFold predicate on the "owner" field.

func OwnerGT

func OwnerGT(v string) predicate.Task

OwnerGT applies the GT predicate on the "owner" field.

func OwnerGTE

func OwnerGTE(v string) predicate.Task

OwnerGTE applies the GTE predicate on the "owner" field.

func OwnerHasPrefix

func OwnerHasPrefix(v string) predicate.Task

OwnerHasPrefix applies the HasPrefix predicate on the "owner" field.

func OwnerHasSuffix

func OwnerHasSuffix(v string) predicate.Task

OwnerHasSuffix applies the HasSuffix predicate on the "owner" field.

func OwnerIn

func OwnerIn(vs ...string) predicate.Task

OwnerIn applies the In predicate on the "owner" field.

func OwnerLT

func OwnerLT(v string) predicate.Task

OwnerLT applies the LT predicate on the "owner" field.

func OwnerLTE

func OwnerLTE(v string) predicate.Task

OwnerLTE applies the LTE predicate on the "owner" field.

func OwnerNEQ

func OwnerNEQ(v string) predicate.Task

OwnerNEQ applies the NEQ predicate on the "owner" field.

func OwnerNotIn

func OwnerNotIn(vs ...string) predicate.Task

OwnerNotIn applies the NotIn predicate on the "owner" field.

func StatusEQ

func StatusEQ(v Status) predicate.Task

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

func StatusIn

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

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

func StatusIsNil

func StatusIsNil() predicate.Task

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.Task

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

func StatusNotIn

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

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

func StatusNotNil

func StatusNotNil() predicate.Task

StatusNotNil applies the NotNil 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 Text

func Text(v string) predicate.Task

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

func TextContains

func TextContains(v string) predicate.Task

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

func TextContainsFold

func TextContainsFold(v string) predicate.Task

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

func TextEQ

func TextEQ(v string) predicate.Task

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

func TextEqualFold

func TextEqualFold(v string) predicate.Task

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

func TextGT

func TextGT(v string) predicate.Task

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

func TextGTE

func TextGTE(v string) predicate.Task

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

func TextHasPrefix

func TextHasPrefix(v string) predicate.Task

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

func TextHasSuffix

func TextHasSuffix(v string) predicate.Task

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

func TextIn

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

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

func TextLT

func TextLT(v string) predicate.Task

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

func TextLTE

func TextLTE(v string) predicate.Task

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

func TextNEQ

func TextNEQ(v string) predicate.Task

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

func TextNotIn

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

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Task

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Task

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Task

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Task

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Task

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Task

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Task

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Task

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Task

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 (
	StatusTodo       Status = "todo"
	StatusInprogress Status = "inprogress"
	StatusDone       Status = "done"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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