step

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the step type in the database.
	Label = "step"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldText holds the string denoting the text field in the database.
	FieldText = "text"
	// EdgeRecipe holds the string denoting the recipe edge name in mutations.
	EdgeRecipe = "recipe"
	// Table holds the table name of the step in the database.
	Table = "steps"
	// RecipeTable is the table that holds the recipe relation/edge.
	RecipeTable = "steps"
	// RecipeInverseTable is the table name for the Recipe entity.
	// It exists in this package in order to avoid circular dependency with the "recipe" package.
	RecipeInverseTable = "recipes"
	// RecipeColumn is the table column denoting the recipe relation/edge.
	RecipeColumn = "recipe_steps"
)

Variables

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

Columns holds all SQL columns for step fields.

View Source
var ForeignKeys = []string{
	"recipe_steps",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "steps" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Step) predicate.Step

And groups predicates with the AND operator between them.

func HasRecipe

func HasRecipe() predicate.Step

HasRecipe applies the HasEdge predicate on the "recipe" edge.

func HasRecipeWith

func HasRecipeWith(preds ...predicate.Recipe) predicate.Step

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

func ID

func ID(id int) predicate.Step

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Step

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Step

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Step

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Step

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Step

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Step

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func Text

func Text(v string) predicate.Step

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

func TextContains

func TextContains(v string) predicate.Step

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

func TextContainsFold

func TextContainsFold(v string) predicate.Step

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

func TextEQ

func TextEQ(v string) predicate.Step

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

func TextEqualFold

func TextEqualFold(v string) predicate.Step

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

func TextGT

func TextGT(v string) predicate.Step

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

func TextGTE

func TextGTE(v string) predicate.Step

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

func TextHasPrefix

func TextHasPrefix(v string) predicate.Step

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

func TextHasSuffix

func TextHasSuffix(v string) predicate.Step

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

func TextIn

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

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

func TextLT

func TextLT(v string) predicate.Step

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

func TextLTE

func TextLTE(v string) predicate.Step

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

func TextNEQ

func TextNEQ(v string) predicate.Step

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

func TextNotIn

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

TextNotIn applies the NotIn predicate on the "text" 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