todo

package
v0.0.0-...-c71f34e Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 2 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"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldDone holds the string denoting the done field in the database.
	FieldDone = "done"
	// Table holds the table name of the todo in the database.
	Table = "todos"
)

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 Done

func Done(v bool) predicate.Todo

Done applies equality check predicate on the "done" field. It's identical to DoneEQ.

func DoneEQ

func DoneEQ(v bool) predicate.Todo

DoneEQ applies the EQ predicate on the "done" field.

func DoneIsNil

func DoneIsNil() predicate.Todo

DoneIsNil applies the IsNil predicate on the "done" field.

func DoneNEQ

func DoneNEQ(v bool) predicate.Todo

DoneNEQ applies the NEQ predicate on the "done" field.

func DoneNotNil

func DoneNotNil() predicate.Todo

DoneNotNil applies the NotNil predicate on the "done" 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 Title

func Title(v string) predicate.Todo

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Todo

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Todo

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Todo

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Todo

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Todo

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Todo

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Todo

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Todo

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

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

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Todo

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Todo

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Todo

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

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

TitleNotIn applies the NotIn predicate on the "title" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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