todo

package
v0.0.0-...-9e197ba Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the todo type in the database.
	Label = "to_do"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTodoUUID holds the string denoting the todo_uuid field in the database.
	FieldTodoUUID = "todo_uuid"
	// FieldUserUUID holds the string denoting the user_uuid field in the database.
	FieldUserUUID = "user_uuid"
	// FieldTodoTitle holds the string denoting the todo_title field in the database.
	FieldTodoTitle = "todo_title"
	// FieldTodoContext holds the string denoting the todo_context field in the database.
	FieldTodoContext = "todo_context"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldCratedAt holds the string denoting the crated_at field in the database.
	FieldCratedAt = "crated_at"
	// Table holds the table name of the todo in the database.
	Table = "to_dos"
)

Variables

View Source
var (
	// DefaultTodoUUID holds the default value on creation for the "todo_uuid" field.
	DefaultTodoUUID func() uuid.UUID
	// DefaultUserUUID holds the default value on creation for the "user_uuid" field.
	DefaultUserUUID func() uuid.UUID
	// 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
	// DefaultCratedAt holds the default value on creation for the "crated_at" field.
	DefaultCratedAt func() time.Time
	// UpdateDefaultCratedAt holds the default value on update for the "crated_at" field.
	UpdateDefaultCratedAt func() time.Time
)

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 CratedAt

func CratedAt(v time.Time) predicate.ToDo

CratedAt applies equality check predicate on the "crated_at" field. It's identical to CratedAtEQ.

func CratedAtEQ

func CratedAtEQ(v time.Time) predicate.ToDo

CratedAtEQ applies the EQ predicate on the "crated_at" field.

func CratedAtGT

func CratedAtGT(v time.Time) predicate.ToDo

CratedAtGT applies the GT predicate on the "crated_at" field.

func CratedAtGTE

func CratedAtGTE(v time.Time) predicate.ToDo

CratedAtGTE applies the GTE predicate on the "crated_at" field.

func CratedAtIn

func CratedAtIn(vs ...time.Time) predicate.ToDo

CratedAtIn applies the In predicate on the "crated_at" field.

func CratedAtLT

func CratedAtLT(v time.Time) predicate.ToDo

CratedAtLT applies the LT predicate on the "crated_at" field.

func CratedAtLTE

func CratedAtLTE(v time.Time) predicate.ToDo

CratedAtLTE applies the LTE predicate on the "crated_at" field.

func CratedAtNEQ

func CratedAtNEQ(v time.Time) predicate.ToDo

CratedAtNEQ applies the NEQ predicate on the "crated_at" field.

func CratedAtNotIn

func CratedAtNotIn(vs ...time.Time) predicate.ToDo

CratedAtNotIn applies the NotIn predicate on the "crated_at" 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 TodoContext

func TodoContext(v string) predicate.ToDo

TodoContext applies equality check predicate on the "todo_context" field. It's identical to TodoContextEQ.

func TodoContextContains

func TodoContextContains(v string) predicate.ToDo

TodoContextContains applies the Contains predicate on the "todo_context" field.

func TodoContextContainsFold

func TodoContextContainsFold(v string) predicate.ToDo

TodoContextContainsFold applies the ContainsFold predicate on the "todo_context" field.

func TodoContextEQ

func TodoContextEQ(v string) predicate.ToDo

TodoContextEQ applies the EQ predicate on the "todo_context" field.

func TodoContextEqualFold

func TodoContextEqualFold(v string) predicate.ToDo

TodoContextEqualFold applies the EqualFold predicate on the "todo_context" field.

func TodoContextGT

func TodoContextGT(v string) predicate.ToDo

TodoContextGT applies the GT predicate on the "todo_context" field.

func TodoContextGTE

func TodoContextGTE(v string) predicate.ToDo

TodoContextGTE applies the GTE predicate on the "todo_context" field.

func TodoContextHasPrefix

func TodoContextHasPrefix(v string) predicate.ToDo

TodoContextHasPrefix applies the HasPrefix predicate on the "todo_context" field.

func TodoContextHasSuffix

func TodoContextHasSuffix(v string) predicate.ToDo

TodoContextHasSuffix applies the HasSuffix predicate on the "todo_context" field.

func TodoContextIn

func TodoContextIn(vs ...string) predicate.ToDo

TodoContextIn applies the In predicate on the "todo_context" field.

func TodoContextLT

func TodoContextLT(v string) predicate.ToDo

TodoContextLT applies the LT predicate on the "todo_context" field.

func TodoContextLTE

func TodoContextLTE(v string) predicate.ToDo

TodoContextLTE applies the LTE predicate on the "todo_context" field.

func TodoContextNEQ

func TodoContextNEQ(v string) predicate.ToDo

TodoContextNEQ applies the NEQ predicate on the "todo_context" field.

func TodoContextNotIn

func TodoContextNotIn(vs ...string) predicate.ToDo

TodoContextNotIn applies the NotIn predicate on the "todo_context" field.

func TodoTitle

func TodoTitle(v string) predicate.ToDo

TodoTitle applies equality check predicate on the "todo_title" field. It's identical to TodoTitleEQ.

func TodoTitleContains

func TodoTitleContains(v string) predicate.ToDo

TodoTitleContains applies the Contains predicate on the "todo_title" field.

func TodoTitleContainsFold

func TodoTitleContainsFold(v string) predicate.ToDo

TodoTitleContainsFold applies the ContainsFold predicate on the "todo_title" field.

func TodoTitleEQ

func TodoTitleEQ(v string) predicate.ToDo

TodoTitleEQ applies the EQ predicate on the "todo_title" field.

func TodoTitleEqualFold

func TodoTitleEqualFold(v string) predicate.ToDo

TodoTitleEqualFold applies the EqualFold predicate on the "todo_title" field.

func TodoTitleGT

func TodoTitleGT(v string) predicate.ToDo

TodoTitleGT applies the GT predicate on the "todo_title" field.

func TodoTitleGTE

func TodoTitleGTE(v string) predicate.ToDo

TodoTitleGTE applies the GTE predicate on the "todo_title" field.

func TodoTitleHasPrefix

func TodoTitleHasPrefix(v string) predicate.ToDo

TodoTitleHasPrefix applies the HasPrefix predicate on the "todo_title" field.

func TodoTitleHasSuffix

func TodoTitleHasSuffix(v string) predicate.ToDo

TodoTitleHasSuffix applies the HasSuffix predicate on the "todo_title" field.

func TodoTitleIn

func TodoTitleIn(vs ...string) predicate.ToDo

TodoTitleIn applies the In predicate on the "todo_title" field.

func TodoTitleLT

func TodoTitleLT(v string) predicate.ToDo

TodoTitleLT applies the LT predicate on the "todo_title" field.

func TodoTitleLTE

func TodoTitleLTE(v string) predicate.ToDo

TodoTitleLTE applies the LTE predicate on the "todo_title" field.

func TodoTitleNEQ

func TodoTitleNEQ(v string) predicate.ToDo

TodoTitleNEQ applies the NEQ predicate on the "todo_title" field.

func TodoTitleNotIn

func TodoTitleNotIn(vs ...string) predicate.ToDo

TodoTitleNotIn applies the NotIn predicate on the "todo_title" field.

func TodoUUID

func TodoUUID(v uuid.UUID) predicate.ToDo

TodoUUID applies equality check predicate on the "todo_uuid" field. It's identical to TodoUUIDEQ.

func TodoUUIDEQ

func TodoUUIDEQ(v uuid.UUID) predicate.ToDo

TodoUUIDEQ applies the EQ predicate on the "todo_uuid" field.

func TodoUUIDGT

func TodoUUIDGT(v uuid.UUID) predicate.ToDo

TodoUUIDGT applies the GT predicate on the "todo_uuid" field.

func TodoUUIDGTE

func TodoUUIDGTE(v uuid.UUID) predicate.ToDo

TodoUUIDGTE applies the GTE predicate on the "todo_uuid" field.

func TodoUUIDIn

func TodoUUIDIn(vs ...uuid.UUID) predicate.ToDo

TodoUUIDIn applies the In predicate on the "todo_uuid" field.

func TodoUUIDLT

func TodoUUIDLT(v uuid.UUID) predicate.ToDo

TodoUUIDLT applies the LT predicate on the "todo_uuid" field.

func TodoUUIDLTE

func TodoUUIDLTE(v uuid.UUID) predicate.ToDo

TodoUUIDLTE applies the LTE predicate on the "todo_uuid" field.

func TodoUUIDNEQ

func TodoUUIDNEQ(v uuid.UUID) predicate.ToDo

TodoUUIDNEQ applies the NEQ predicate on the "todo_uuid" field.

func TodoUUIDNotIn

func TodoUUIDNotIn(vs ...uuid.UUID) predicate.ToDo

TodoUUIDNotIn applies the NotIn predicate on the "todo_uuid" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.ToDo

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.ToDo

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ToDo

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ToDo

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ToDo

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ToDo

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ToDo

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UserUUID

func UserUUID(v uuid.UUID) predicate.ToDo

UserUUID applies equality check predicate on the "user_uuid" field. It's identical to UserUUIDEQ.

func UserUUIDEQ

func UserUUIDEQ(v uuid.UUID) predicate.ToDo

UserUUIDEQ applies the EQ predicate on the "user_uuid" field.

func UserUUIDGT

func UserUUIDGT(v uuid.UUID) predicate.ToDo

UserUUIDGT applies the GT predicate on the "user_uuid" field.

func UserUUIDGTE

func UserUUIDGTE(v uuid.UUID) predicate.ToDo

UserUUIDGTE applies the GTE predicate on the "user_uuid" field.

func UserUUIDIn

func UserUUIDIn(vs ...uuid.UUID) predicate.ToDo

UserUUIDIn applies the In predicate on the "user_uuid" field.

func UserUUIDLT

func UserUUIDLT(v uuid.UUID) predicate.ToDo

UserUUIDLT applies the LT predicate on the "user_uuid" field.

func UserUUIDLTE

func UserUUIDLTE(v uuid.UUID) predicate.ToDo

UserUUIDLTE applies the LTE predicate on the "user_uuid" field.

func UserUUIDNEQ

func UserUUIDNEQ(v uuid.UUID) predicate.ToDo

UserUUIDNEQ applies the NEQ predicate on the "user_uuid" field.

func UserUUIDNotIn

func UserUUIDNotIn(vs ...uuid.UUID) predicate.ToDo

UserUUIDNotIn applies the NotIn predicate on the "user_uuid" 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