fridge

package
v0.0.0-...-2e07358 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the fridge type in the database.
	Label = "fridge"
	// 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"
	// EdgeCompartments holds the string denoting the compartments edge name in mutations.
	EdgeCompartments = "compartments"
	// Table holds the table name of the fridge in the database.
	Table = "fridges"
	// CompartmentsTable is the table that holds the compartments relation/edge.
	CompartmentsTable = "compartments"
	// CompartmentsInverseTable is the table name for the Compartment entity.
	// It exists in this package in order to avoid circular dependency with the "compartment" package.
	CompartmentsInverseTable = "compartments"
	// CompartmentsColumn is the table column denoting the compartments relation/edge.
	CompartmentsColumn = "fridge_compartments"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldTitle,
}

Columns holds all SQL columns for fridge fields.

Functions

func And

func And(predicates ...predicate.Fridge) predicate.Fridge

And groups predicates with the AND operator between them.

func HasCompartments

func HasCompartments() predicate.Fridge

HasCompartments applies the HasEdge predicate on the "compartments" edge.

func HasCompartmentsWith

func HasCompartmentsWith(preds ...predicate.Compartment) predicate.Fridge

HasCompartmentsWith applies the HasEdge predicate on the "compartments" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Fridge

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Fridge

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Fridge

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Fridge

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Fridge

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Fridge

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Fridge

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func Title

func Title(v string) predicate.Fridge

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

func TitleContains

func TitleContains(v string) predicate.Fridge

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

func TitleContainsFold

func TitleContainsFold(v string) predicate.Fridge

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

func TitleEQ

func TitleEQ(v string) predicate.Fridge

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

func TitleEqualFold

func TitleEqualFold(v string) predicate.Fridge

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

func TitleGT

func TitleGT(v string) predicate.Fridge

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

func TitleGTE

func TitleGTE(v string) predicate.Fridge

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

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Fridge

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

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Fridge

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

func TitleIn

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

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

func TitleLT

func TitleLT(v string) predicate.Fridge

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

func TitleLTE

func TitleLTE(v string) predicate.Fridge

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

func TitleNEQ

func TitleNEQ(v string) predicate.Fridge

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

func TitleNotIn

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

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