todoitem

package
v0.0.0-...-468a20b Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the todoitem type in the database.
	Label = "todo_item"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUID holds the string denoting the uid field in the database.
	FieldUID = "uid"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldCompleted holds the string denoting the completed field in the database.
	FieldCompleted = "completed"
	// FieldOrder holds the string denoting the order field in the database.
	FieldOrder = "order"
	// 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 todoitem in the database.
	Table = "todo_items"
)

Variables

View Source
var (
	// UIDValidator is a validator for the "uid" field. It is called by the builders before save.
	UIDValidator func(string) error
	// 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 todoitem fields.

Functions

func And

func And(predicates ...predicate.TodoItem) predicate.TodoItem

And groups predicates with the AND operator between them.

func Completed

func Completed(v bool) predicate.TodoItem

Completed applies equality check predicate on the "completed" field. It's identical to CompletedEQ.

func CompletedEQ

func CompletedEQ(v bool) predicate.TodoItem

CompletedEQ applies the EQ predicate on the "completed" field.

func CompletedNEQ

func CompletedNEQ(v bool) predicate.TodoItem

CompletedNEQ applies the NEQ predicate on the "completed" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.TodoItem

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.TodoItem

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.TodoItem

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.TodoItem

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.TodoItem

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.TodoItem

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.TodoItem

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

func CreatedAtNotIn

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

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

func ID

func ID(id int) predicate.TodoItem

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.TodoItem

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.TodoItem

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.TodoItem

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.TodoItem

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.TodoItem

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.TodoItem

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func Order

func Order(v int) predicate.TodoItem

Order applies equality check predicate on the "order" field. It's identical to OrderEQ.

func OrderEQ

func OrderEQ(v int) predicate.TodoItem

OrderEQ applies the EQ predicate on the "order" field.

func OrderGT

func OrderGT(v int) predicate.TodoItem

OrderGT applies the GT predicate on the "order" field.

func OrderGTE

func OrderGTE(v int) predicate.TodoItem

OrderGTE applies the GTE predicate on the "order" field.

func OrderIn

func OrderIn(vs ...int) predicate.TodoItem

OrderIn applies the In predicate on the "order" field.

func OrderLT

func OrderLT(v int) predicate.TodoItem

OrderLT applies the LT predicate on the "order" field.

func OrderLTE

func OrderLTE(v int) predicate.TodoItem

OrderLTE applies the LTE predicate on the "order" field.

func OrderNEQ

func OrderNEQ(v int) predicate.TodoItem

OrderNEQ applies the NEQ predicate on the "order" field.

func OrderNotIn

func OrderNotIn(vs ...int) predicate.TodoItem

OrderNotIn applies the NotIn predicate on the "order" field.

func Title

func Title(v string) predicate.TodoItem

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

func TitleContains

func TitleContains(v string) predicate.TodoItem

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

func TitleContainsFold

func TitleContainsFold(v string) predicate.TodoItem

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

func TitleEQ

func TitleEQ(v string) predicate.TodoItem

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

func TitleEqualFold

func TitleEqualFold(v string) predicate.TodoItem

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

func TitleGT

func TitleGT(v string) predicate.TodoItem

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

func TitleGTE

func TitleGTE(v string) predicate.TodoItem

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

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.TodoItem

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

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.TodoItem

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

func TitleIn

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

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

func TitleLT

func TitleLT(v string) predicate.TodoItem

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

func TitleLTE

func TitleLTE(v string) predicate.TodoItem

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

func TitleNEQ

func TitleNEQ(v string) predicate.TodoItem

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

func TitleNotIn

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

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

func UID

func UID(v string) predicate.TodoItem

UID applies equality check predicate on the "uid" field. It's identical to UIDEQ.

func UIDContains

func UIDContains(v string) predicate.TodoItem

UIDContains applies the Contains predicate on the "uid" field.

func UIDContainsFold

func UIDContainsFold(v string) predicate.TodoItem

UIDContainsFold applies the ContainsFold predicate on the "uid" field.

func UIDEQ

func UIDEQ(v string) predicate.TodoItem

UIDEQ applies the EQ predicate on the "uid" field.

func UIDEqualFold

func UIDEqualFold(v string) predicate.TodoItem

UIDEqualFold applies the EqualFold predicate on the "uid" field.

func UIDGT

func UIDGT(v string) predicate.TodoItem

UIDGT applies the GT predicate on the "uid" field.

func UIDGTE

func UIDGTE(v string) predicate.TodoItem

UIDGTE applies the GTE predicate on the "uid" field.

func UIDHasPrefix

func UIDHasPrefix(v string) predicate.TodoItem

UIDHasPrefix applies the HasPrefix predicate on the "uid" field.

func UIDHasSuffix

func UIDHasSuffix(v string) predicate.TodoItem

UIDHasSuffix applies the HasSuffix predicate on the "uid" field.

func UIDIn

func UIDIn(vs ...string) predicate.TodoItem

UIDIn applies the In predicate on the "uid" field.

func UIDLT

func UIDLT(v string) predicate.TodoItem

UIDLT applies the LT predicate on the "uid" field.

func UIDLTE

func UIDLTE(v string) predicate.TodoItem

UIDLTE applies the LTE predicate on the "uid" field.

func UIDNEQ

func UIDNEQ(v string) predicate.TodoItem

UIDNEQ applies the NEQ predicate on the "uid" field.

func UIDNotIn

func UIDNotIn(vs ...string) predicate.TodoItem

UIDNotIn applies the NotIn predicate on the "uid" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.TodoItem

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.TodoItem

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.TodoItem

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.TodoItem

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.TodoItem

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.TodoItem

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.TodoItem

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

func UpdatedAtNotIn

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

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

This section is empty.

Jump to

Keyboard shortcuts

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