Versions in this module Expand all Collapse all v0 v0.1.1 Feb 23, 2022 v0.1.0 Dec 3, 2021 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeCategory + const TypeIngredient + const TypeRecipe + const TypeRecipeIngredient + const TypeStep + const TypeUser + func IsConstraintError(err error) bool + func IsNotFound(err error) bool + func IsNotLoaded(err error) bool + func IsNotSingular(err error) bool + func IsValidationError(err error) bool + func MaskNotFound(err error) error + func NewContext(parent context.Context, c *Client) context.Context + func NewTxContext(parent context.Context, tx *Tx) context.Context + type AggregateFunc func(*sql.Selector) string + func As(fn AggregateFunc, end string) AggregateFunc + func Count() AggregateFunc + func Max(field string) AggregateFunc + func Mean(field string) AggregateFunc + func Min(field string) AggregateFunc + func Sum(field string) AggregateFunc + type Categories []*Category + type Category struct + Edges CategoryEdges + ID int + Name string + func (c *Category) QueryRecipe() *RecipeQuery + func (c *Category) String() string + func (c *Category) Unwrap() *Category + func (c *Category) Update() *CategoryUpdateOne + type CategoryClient struct + func NewCategoryClient(c config) *CategoryClient + func (c *CategoryClient) Create() *CategoryCreate + func (c *CategoryClient) CreateBulk(builders ...*CategoryCreate) *CategoryCreateBulk + func (c *CategoryClient) Delete() *CategoryDelete + func (c *CategoryClient) DeleteOne(ca *Category) *CategoryDeleteOne + func (c *CategoryClient) DeleteOneID(id int) *CategoryDeleteOne + func (c *CategoryClient) Get(ctx context.Context, id int) (*Category, error) + func (c *CategoryClient) GetX(ctx context.Context, id int) *Category + func (c *CategoryClient) Hooks() []Hook + func (c *CategoryClient) Query() *CategoryQuery + func (c *CategoryClient) QueryRecipe(ca *Category) *RecipeQuery + func (c *CategoryClient) Update() *CategoryUpdate + func (c *CategoryClient) UpdateOne(ca *Category) *CategoryUpdateOne + func (c *CategoryClient) UpdateOneID(id int) *CategoryUpdateOne + func (c *CategoryClient) Use(hooks ...Hook) + type CategoryCreate struct + func (cc *CategoryCreate) AddRecipe(r ...*Recipe) *CategoryCreate + func (cc *CategoryCreate) AddRecipeIDs(ids ...int) *CategoryCreate + func (cc *CategoryCreate) Exec(ctx context.Context) error + func (cc *CategoryCreate) ExecX(ctx context.Context) + func (cc *CategoryCreate) Mutation() *CategoryMutation + func (cc *CategoryCreate) Save(ctx context.Context) (*Category, error) + func (cc *CategoryCreate) SaveX(ctx context.Context) *Category + func (cc *CategoryCreate) SetName(s string) *CategoryCreate + type CategoryCreateBulk struct + func (ccb *CategoryCreateBulk) Exec(ctx context.Context) error + func (ccb *CategoryCreateBulk) ExecX(ctx context.Context) + func (ccb *CategoryCreateBulk) Save(ctx context.Context) ([]*Category, error) + func (ccb *CategoryCreateBulk) SaveX(ctx context.Context) []*Category + type CategoryDelete struct + func (cd *CategoryDelete) Exec(ctx context.Context) (int, error) + func (cd *CategoryDelete) ExecX(ctx context.Context) int + func (cd *CategoryDelete) Where(ps ...predicate.Category) *CategoryDelete + type CategoryDeleteOne struct + func (cdo *CategoryDeleteOne) Exec(ctx context.Context) error + func (cdo *CategoryDeleteOne) ExecX(ctx context.Context) + type CategoryEdges struct + Recipe []*Recipe + func (e CategoryEdges) RecipeOrErr() ([]*Recipe, error) + type CategoryGroupBy struct + func (cgb *CategoryGroupBy) Aggregate(fns ...AggregateFunc) *CategoryGroupBy + func (cgb *CategoryGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (cgb *CategoryGroupBy) BoolX(ctx context.Context) bool + func (cgb *CategoryGroupBy) Bools(ctx context.Context) ([]bool, error) + func (cgb *CategoryGroupBy) BoolsX(ctx context.Context) []bool + func (cgb *CategoryGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (cgb *CategoryGroupBy) Float64X(ctx context.Context) float64 + func (cgb *CategoryGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (cgb *CategoryGroupBy) Float64sX(ctx context.Context) []float64 + func (cgb *CategoryGroupBy) Int(ctx context.Context) (_ int, err error) + func (cgb *CategoryGroupBy) IntX(ctx context.Context) int + func (cgb *CategoryGroupBy) Ints(ctx context.Context) ([]int, error) + func (cgb *CategoryGroupBy) IntsX(ctx context.Context) []int + func (cgb *CategoryGroupBy) Scan(ctx context.Context, v interface{}) error + func (cgb *CategoryGroupBy) ScanX(ctx context.Context, v interface{}) + func (cgb *CategoryGroupBy) String(ctx context.Context) (_ string, err error) + func (cgb *CategoryGroupBy) StringX(ctx context.Context) string + func (cgb *CategoryGroupBy) Strings(ctx context.Context) ([]string, error) + func (cgb *CategoryGroupBy) StringsX(ctx context.Context) []string + type CategoryMutation struct + func (m *CategoryMutation) AddField(name string, value ent.Value) error + func (m *CategoryMutation) AddRecipeIDs(ids ...int) + func (m *CategoryMutation) AddedEdges() []string + func (m *CategoryMutation) AddedField(name string) (ent.Value, bool) + func (m *CategoryMutation) AddedFields() []string + func (m *CategoryMutation) AddedIDs(name string) []ent.Value + func (m *CategoryMutation) ClearEdge(name string) error + func (m *CategoryMutation) ClearField(name string) error + func (m *CategoryMutation) ClearRecipe() + func (m *CategoryMutation) ClearedEdges() []string + func (m *CategoryMutation) ClearedFields() []string + func (m *CategoryMutation) EdgeCleared(name string) bool + func (m *CategoryMutation) Field(name string) (ent.Value, bool) + func (m *CategoryMutation) FieldCleared(name string) bool + func (m *CategoryMutation) Fields() []string + func (m *CategoryMutation) ID() (id int, exists bool) + func (m *CategoryMutation) Name() (r string, exists bool) + func (m *CategoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *CategoryMutation) OldName(ctx context.Context) (v string, err error) + func (m *CategoryMutation) Op() Op + func (m *CategoryMutation) RecipeCleared() bool + func (m *CategoryMutation) RecipeIDs() (ids []int) + func (m *CategoryMutation) RemoveRecipeIDs(ids ...int) + func (m *CategoryMutation) RemovedEdges() []string + func (m *CategoryMutation) RemovedIDs(name string) []ent.Value + func (m *CategoryMutation) RemovedRecipeIDs() (ids []int) + func (m *CategoryMutation) ResetEdge(name string) error + func (m *CategoryMutation) ResetField(name string) error + func (m *CategoryMutation) ResetName() + func (m *CategoryMutation) ResetRecipe() + func (m *CategoryMutation) SetField(name string, value ent.Value) error + func (m *CategoryMutation) SetName(s string) + func (m *CategoryMutation) Type() string + func (m *CategoryMutation) Where(ps ...predicate.Category) + func (m CategoryMutation) Client() *Client + func (m CategoryMutation) Tx() (*Tx, error) + type CategoryQuery struct + func (cq *CategoryQuery) All(ctx context.Context) ([]*Category, error) + func (cq *CategoryQuery) AllX(ctx context.Context) []*Category + func (cq *CategoryQuery) Clone() *CategoryQuery + func (cq *CategoryQuery) Count(ctx context.Context) (int, error) + func (cq *CategoryQuery) CountX(ctx context.Context) int + func (cq *CategoryQuery) Exist(ctx context.Context) (bool, error) + func (cq *CategoryQuery) ExistX(ctx context.Context) bool + func (cq *CategoryQuery) First(ctx context.Context) (*Category, error) + func (cq *CategoryQuery) FirstID(ctx context.Context) (id int, err error) + func (cq *CategoryQuery) FirstIDX(ctx context.Context) int + func (cq *CategoryQuery) FirstX(ctx context.Context) *Category + func (cq *CategoryQuery) GroupBy(field string, fields ...string) *CategoryGroupBy + func (cq *CategoryQuery) IDs(ctx context.Context) ([]int, error) + func (cq *CategoryQuery) IDsX(ctx context.Context) []int + func (cq *CategoryQuery) Limit(limit int) *CategoryQuery + func (cq *CategoryQuery) Offset(offset int) *CategoryQuery + func (cq *CategoryQuery) Only(ctx context.Context) (*Category, error) + func (cq *CategoryQuery) OnlyID(ctx context.Context) (id int, err error) + func (cq *CategoryQuery) OnlyIDX(ctx context.Context) int + func (cq *CategoryQuery) OnlyX(ctx context.Context) *Category + func (cq *CategoryQuery) Order(o ...OrderFunc) *CategoryQuery + func (cq *CategoryQuery) QueryRecipe() *RecipeQuery + func (cq *CategoryQuery) Select(fields ...string) *CategorySelect + func (cq *CategoryQuery) Unique(unique bool) *CategoryQuery + func (cq *CategoryQuery) Where(ps ...predicate.Category) *CategoryQuery + func (cq *CategoryQuery) WithRecipe(opts ...func(*RecipeQuery)) *CategoryQuery + type CategorySelect struct + func (cs *CategorySelect) Bool(ctx context.Context) (_ bool, err error) + func (cs *CategorySelect) BoolX(ctx context.Context) bool + func (cs *CategorySelect) Bools(ctx context.Context) ([]bool, error) + func (cs *CategorySelect) BoolsX(ctx context.Context) []bool + func (cs *CategorySelect) Float64(ctx context.Context) (_ float64, err error) + func (cs *CategorySelect) Float64X(ctx context.Context) float64 + func (cs *CategorySelect) Float64s(ctx context.Context) ([]float64, error) + func (cs *CategorySelect) Float64sX(ctx context.Context) []float64 + func (cs *CategorySelect) Int(ctx context.Context) (_ int, err error) + func (cs *CategorySelect) IntX(ctx context.Context) int + func (cs *CategorySelect) Ints(ctx context.Context) ([]int, error) + func (cs *CategorySelect) IntsX(ctx context.Context) []int + func (cs *CategorySelect) Scan(ctx context.Context, v interface{}) error + func (cs *CategorySelect) ScanX(ctx context.Context, v interface{}) + func (cs *CategorySelect) String(ctx context.Context) (_ string, err error) + func (cs *CategorySelect) StringX(ctx context.Context) string + func (cs *CategorySelect) Strings(ctx context.Context) ([]string, error) + func (cs *CategorySelect) StringsX(ctx context.Context) []string + type CategoryUpdate struct + func (cu *CategoryUpdate) AddRecipe(r ...*Recipe) *CategoryUpdate + func (cu *CategoryUpdate) AddRecipeIDs(ids ...int) *CategoryUpdate + func (cu *CategoryUpdate) ClearRecipe() *CategoryUpdate + func (cu *CategoryUpdate) Exec(ctx context.Context) error + func (cu *CategoryUpdate) ExecX(ctx context.Context) + func (cu *CategoryUpdate) Mutation() *CategoryMutation + func (cu *CategoryUpdate) RemoveRecipe(r ...*Recipe) *CategoryUpdate + func (cu *CategoryUpdate) RemoveRecipeIDs(ids ...int) *CategoryUpdate + func (cu *CategoryUpdate) Save(ctx context.Context) (int, error) + func (cu *CategoryUpdate) SaveX(ctx context.Context) int + func (cu *CategoryUpdate) SetName(s string) *CategoryUpdate + func (cu *CategoryUpdate) Where(ps ...predicate.Category) *CategoryUpdate + type CategoryUpdateOne struct + func (cuo *CategoryUpdateOne) AddRecipe(r ...*Recipe) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) AddRecipeIDs(ids ...int) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) ClearRecipe() *CategoryUpdateOne + func (cuo *CategoryUpdateOne) Exec(ctx context.Context) error + func (cuo *CategoryUpdateOne) ExecX(ctx context.Context) + func (cuo *CategoryUpdateOne) Mutation() *CategoryMutation + func (cuo *CategoryUpdateOne) RemoveRecipe(r ...*Recipe) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) RemoveRecipeIDs(ids ...int) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) Save(ctx context.Context) (*Category, error) + func (cuo *CategoryUpdateOne) SaveX(ctx context.Context) *Category + func (cuo *CategoryUpdateOne) Select(field string, fields ...string) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) SetName(s string) *CategoryUpdateOne + type Client struct + Category *CategoryClient + Ingredient *IngredientClient + Recipe *RecipeClient + RecipeIngredient *RecipeIngredientClient + Schema *migrate.Schema + Step *StepClient + User *UserClient + func FromContext(ctx context.Context) *Client + func NewClient(opts ...Option) *Client + func Open(driverName, dataSourceName string, options ...Option) (*Client, error) + func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error) + func (c *Client) Close() error + func (c *Client) Debug() *Client + func (c *Client) Tx(ctx context.Context) (*Tx, error) + func (c *Client) Use(hooks ...Hook) + type CommitFunc func(context.Context, *Tx) error + func (f CommitFunc) Commit(ctx context.Context, tx *Tx) error + type CommitHook func(Committer) Committer + type Committer interface + Commit func(context.Context, *Tx) error + type ConstraintError struct + func (e *ConstraintError) Unwrap() error + func (e ConstraintError) Error() string + type Hook = ent.Hook + type Ingredient struct + Edges IngredientEdges + ID int + Name string + func (i *Ingredient) QueryRecipeIngredients() *RecipeIngredientQuery + func (i *Ingredient) String() string + func (i *Ingredient) Unwrap() *Ingredient + func (i *Ingredient) Update() *IngredientUpdateOne + type IngredientClient struct + func NewIngredientClient(c config) *IngredientClient + func (c *IngredientClient) Create() *IngredientCreate + func (c *IngredientClient) CreateBulk(builders ...*IngredientCreate) *IngredientCreateBulk + func (c *IngredientClient) Delete() *IngredientDelete + func (c *IngredientClient) DeleteOne(i *Ingredient) *IngredientDeleteOne + func (c *IngredientClient) DeleteOneID(id int) *IngredientDeleteOne + func (c *IngredientClient) Get(ctx context.Context, id int) (*Ingredient, error) + func (c *IngredientClient) GetX(ctx context.Context, id int) *Ingredient + func (c *IngredientClient) Hooks() []Hook + func (c *IngredientClient) Query() *IngredientQuery + func (c *IngredientClient) QueryRecipeIngredients(i *Ingredient) *RecipeIngredientQuery + func (c *IngredientClient) Update() *IngredientUpdate + func (c *IngredientClient) UpdateOne(i *Ingredient) *IngredientUpdateOne + func (c *IngredientClient) UpdateOneID(id int) *IngredientUpdateOne + func (c *IngredientClient) Use(hooks ...Hook) + type IngredientCreate struct + func (ic *IngredientCreate) AddRecipeIngredientIDs(ids ...int) *IngredientCreate + func (ic *IngredientCreate) AddRecipeIngredients(r ...*RecipeIngredient) *IngredientCreate + func (ic *IngredientCreate) Exec(ctx context.Context) error + func (ic *IngredientCreate) ExecX(ctx context.Context) + func (ic *IngredientCreate) Mutation() *IngredientMutation + func (ic *IngredientCreate) Save(ctx context.Context) (*Ingredient, error) + func (ic *IngredientCreate) SaveX(ctx context.Context) *Ingredient + func (ic *IngredientCreate) SetName(s string) *IngredientCreate + type IngredientCreateBulk struct + func (icb *IngredientCreateBulk) Exec(ctx context.Context) error + func (icb *IngredientCreateBulk) ExecX(ctx context.Context) + func (icb *IngredientCreateBulk) Save(ctx context.Context) ([]*Ingredient, error) + func (icb *IngredientCreateBulk) SaveX(ctx context.Context) []*Ingredient + type IngredientDelete struct + func (id *IngredientDelete) Exec(ctx context.Context) (int, error) + func (id *IngredientDelete) ExecX(ctx context.Context) int + func (id *IngredientDelete) Where(ps ...predicate.Ingredient) *IngredientDelete + type IngredientDeleteOne struct + func (ido *IngredientDeleteOne) Exec(ctx context.Context) error + func (ido *IngredientDeleteOne) ExecX(ctx context.Context) + type IngredientEdges struct + RecipeIngredients []*RecipeIngredient + func (e IngredientEdges) RecipeIngredientsOrErr() ([]*RecipeIngredient, error) + type IngredientGroupBy struct + func (igb *IngredientGroupBy) Aggregate(fns ...AggregateFunc) *IngredientGroupBy + func (igb *IngredientGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (igb *IngredientGroupBy) BoolX(ctx context.Context) bool + func (igb *IngredientGroupBy) Bools(ctx context.Context) ([]bool, error) + func (igb *IngredientGroupBy) BoolsX(ctx context.Context) []bool + func (igb *IngredientGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (igb *IngredientGroupBy) Float64X(ctx context.Context) float64 + func (igb *IngredientGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (igb *IngredientGroupBy) Float64sX(ctx context.Context) []float64 + func (igb *IngredientGroupBy) Int(ctx context.Context) (_ int, err error) + func (igb *IngredientGroupBy) IntX(ctx context.Context) int + func (igb *IngredientGroupBy) Ints(ctx context.Context) ([]int, error) + func (igb *IngredientGroupBy) IntsX(ctx context.Context) []int + func (igb *IngredientGroupBy) Scan(ctx context.Context, v interface{}) error + func (igb *IngredientGroupBy) ScanX(ctx context.Context, v interface{}) + func (igb *IngredientGroupBy) String(ctx context.Context) (_ string, err error) + func (igb *IngredientGroupBy) StringX(ctx context.Context) string + func (igb *IngredientGroupBy) Strings(ctx context.Context) ([]string, error) + func (igb *IngredientGroupBy) StringsX(ctx context.Context) []string + type IngredientMutation struct + func (m *IngredientMutation) AddField(name string, value ent.Value) error + func (m *IngredientMutation) AddRecipeIngredientIDs(ids ...int) + func (m *IngredientMutation) AddedEdges() []string + func (m *IngredientMutation) AddedField(name string) (ent.Value, bool) + func (m *IngredientMutation) AddedFields() []string + func (m *IngredientMutation) AddedIDs(name string) []ent.Value + func (m *IngredientMutation) ClearEdge(name string) error + func (m *IngredientMutation) ClearField(name string) error + func (m *IngredientMutation) ClearRecipeIngredients() + func (m *IngredientMutation) ClearedEdges() []string + func (m *IngredientMutation) ClearedFields() []string + func (m *IngredientMutation) EdgeCleared(name string) bool + func (m *IngredientMutation) Field(name string) (ent.Value, bool) + func (m *IngredientMutation) FieldCleared(name string) bool + func (m *IngredientMutation) Fields() []string + func (m *IngredientMutation) ID() (id int, exists bool) + func (m *IngredientMutation) Name() (r string, exists bool) + func (m *IngredientMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *IngredientMutation) OldName(ctx context.Context) (v string, err error) + func (m *IngredientMutation) Op() Op + func (m *IngredientMutation) RecipeIngredientsCleared() bool + func (m *IngredientMutation) RecipeIngredientsIDs() (ids []int) + func (m *IngredientMutation) RemoveRecipeIngredientIDs(ids ...int) + func (m *IngredientMutation) RemovedEdges() []string + func (m *IngredientMutation) RemovedIDs(name string) []ent.Value + func (m *IngredientMutation) RemovedRecipeIngredientsIDs() (ids []int) + func (m *IngredientMutation) ResetEdge(name string) error + func (m *IngredientMutation) ResetField(name string) error + func (m *IngredientMutation) ResetName() + func (m *IngredientMutation) ResetRecipeIngredients() + func (m *IngredientMutation) SetField(name string, value ent.Value) error + func (m *IngredientMutation) SetName(s string) + func (m *IngredientMutation) Type() string + func (m *IngredientMutation) Where(ps ...predicate.Ingredient) + func (m IngredientMutation) Client() *Client + func (m IngredientMutation) Tx() (*Tx, error) + type IngredientQuery struct + func (iq *IngredientQuery) All(ctx context.Context) ([]*Ingredient, error) + func (iq *IngredientQuery) AllX(ctx context.Context) []*Ingredient + func (iq *IngredientQuery) Clone() *IngredientQuery + func (iq *IngredientQuery) Count(ctx context.Context) (int, error) + func (iq *IngredientQuery) CountX(ctx context.Context) int + func (iq *IngredientQuery) Exist(ctx context.Context) (bool, error) + func (iq *IngredientQuery) ExistX(ctx context.Context) bool + func (iq *IngredientQuery) First(ctx context.Context) (*Ingredient, error) + func (iq *IngredientQuery) FirstID(ctx context.Context) (id int, err error) + func (iq *IngredientQuery) FirstIDX(ctx context.Context) int + func (iq *IngredientQuery) FirstX(ctx context.Context) *Ingredient + func (iq *IngredientQuery) GroupBy(field string, fields ...string) *IngredientGroupBy + func (iq *IngredientQuery) IDs(ctx context.Context) ([]int, error) + func (iq *IngredientQuery) IDsX(ctx context.Context) []int + func (iq *IngredientQuery) Limit(limit int) *IngredientQuery + func (iq *IngredientQuery) Offset(offset int) *IngredientQuery + func (iq *IngredientQuery) Only(ctx context.Context) (*Ingredient, error) + func (iq *IngredientQuery) OnlyID(ctx context.Context) (id int, err error) + func (iq *IngredientQuery) OnlyIDX(ctx context.Context) int + func (iq *IngredientQuery) OnlyX(ctx context.Context) *Ingredient + func (iq *IngredientQuery) Order(o ...OrderFunc) *IngredientQuery + func (iq *IngredientQuery) QueryRecipeIngredients() *RecipeIngredientQuery + func (iq *IngredientQuery) Select(fields ...string) *IngredientSelect + func (iq *IngredientQuery) Unique(unique bool) *IngredientQuery + func (iq *IngredientQuery) Where(ps ...predicate.Ingredient) *IngredientQuery + func (iq *IngredientQuery) WithRecipeIngredients(opts ...func(*RecipeIngredientQuery)) *IngredientQuery + type IngredientSelect struct + func (is *IngredientSelect) Bool(ctx context.Context) (_ bool, err error) + func (is *IngredientSelect) BoolX(ctx context.Context) bool + func (is *IngredientSelect) Bools(ctx context.Context) ([]bool, error) + func (is *IngredientSelect) BoolsX(ctx context.Context) []bool + func (is *IngredientSelect) Float64(ctx context.Context) (_ float64, err error) + func (is *IngredientSelect) Float64X(ctx context.Context) float64 + func (is *IngredientSelect) Float64s(ctx context.Context) ([]float64, error) + func (is *IngredientSelect) Float64sX(ctx context.Context) []float64 + func (is *IngredientSelect) Int(ctx context.Context) (_ int, err error) + func (is *IngredientSelect) IntX(ctx context.Context) int + func (is *IngredientSelect) Ints(ctx context.Context) ([]int, error) + func (is *IngredientSelect) IntsX(ctx context.Context) []int + func (is *IngredientSelect) Scan(ctx context.Context, v interface{}) error + func (is *IngredientSelect) ScanX(ctx context.Context, v interface{}) + func (is *IngredientSelect) String(ctx context.Context) (_ string, err error) + func (is *IngredientSelect) StringX(ctx context.Context) string + func (is *IngredientSelect) Strings(ctx context.Context) ([]string, error) + func (is *IngredientSelect) StringsX(ctx context.Context) []string + type IngredientUpdate struct + func (iu *IngredientUpdate) AddRecipeIngredientIDs(ids ...int) *IngredientUpdate + func (iu *IngredientUpdate) AddRecipeIngredients(r ...*RecipeIngredient) *IngredientUpdate + func (iu *IngredientUpdate) ClearRecipeIngredients() *IngredientUpdate + func (iu *IngredientUpdate) Exec(ctx context.Context) error + func (iu *IngredientUpdate) ExecX(ctx context.Context) + func (iu *IngredientUpdate) Mutation() *IngredientMutation + func (iu *IngredientUpdate) RemoveRecipeIngredientIDs(ids ...int) *IngredientUpdate + func (iu *IngredientUpdate) RemoveRecipeIngredients(r ...*RecipeIngredient) *IngredientUpdate + func (iu *IngredientUpdate) Save(ctx context.Context) (int, error) + func (iu *IngredientUpdate) SaveX(ctx context.Context) int + func (iu *IngredientUpdate) SetName(s string) *IngredientUpdate + func (iu *IngredientUpdate) Where(ps ...predicate.Ingredient) *IngredientUpdate + type IngredientUpdateOne struct + func (iuo *IngredientUpdateOne) AddRecipeIngredientIDs(ids ...int) *IngredientUpdateOne + func (iuo *IngredientUpdateOne) AddRecipeIngredients(r ...*RecipeIngredient) *IngredientUpdateOne + func (iuo *IngredientUpdateOne) ClearRecipeIngredients() *IngredientUpdateOne + func (iuo *IngredientUpdateOne) Exec(ctx context.Context) error + func (iuo *IngredientUpdateOne) ExecX(ctx context.Context) + func (iuo *IngredientUpdateOne) Mutation() *IngredientMutation + func (iuo *IngredientUpdateOne) RemoveRecipeIngredientIDs(ids ...int) *IngredientUpdateOne + func (iuo *IngredientUpdateOne) RemoveRecipeIngredients(r ...*RecipeIngredient) *IngredientUpdateOne + func (iuo *IngredientUpdateOne) Save(ctx context.Context) (*Ingredient, error) + func (iuo *IngredientUpdateOne) SaveX(ctx context.Context) *Ingredient + func (iuo *IngredientUpdateOne) Select(field string, fields ...string) *IngredientUpdateOne + func (iuo *IngredientUpdateOne) SetName(s string) *IngredientUpdateOne + type Ingredients []*Ingredient + type MutateFunc = ent.MutateFunc + type Mutation = ent.Mutation + type Mutator = ent.Mutator + type NotFoundError struct + func (e *NotFoundError) Error() string + type NotLoadedError struct + func (e *NotLoadedError) Error() string + type NotSingularError struct + func (e *NotSingularError) Error() string + type Op = ent.Op + type Option func(*config) + func Debug() Option + func Driver(driver dialect.Driver) Option + func Log(fn func(...interface{})) Option + type OrderFunc func(*sql.Selector) + func Asc(fields ...string) OrderFunc + func Desc(fields ...string) OrderFunc + type Policy = ent.Policy + type Query = ent.Query + type Recipe struct + Edges RecipeEdges + ID int + Name string + Servings int + func (r *Recipe) QueryAuthor() *UserQuery + func (r *Recipe) QueryRecipeIngredients() *RecipeIngredientQuery + func (r *Recipe) QuerySteps() *StepQuery + func (r *Recipe) QueryTags() *CategoryQuery + func (r *Recipe) String() string + func (r *Recipe) Unwrap() *Recipe + func (r *Recipe) Update() *RecipeUpdateOne + type RecipeClient struct + func NewRecipeClient(c config) *RecipeClient + func (c *RecipeClient) Create() *RecipeCreate + func (c *RecipeClient) CreateBulk(builders ...*RecipeCreate) *RecipeCreateBulk + func (c *RecipeClient) Delete() *RecipeDelete + func (c *RecipeClient) DeleteOne(r *Recipe) *RecipeDeleteOne + func (c *RecipeClient) DeleteOneID(id int) *RecipeDeleteOne + func (c *RecipeClient) Get(ctx context.Context, id int) (*Recipe, error) + func (c *RecipeClient) GetX(ctx context.Context, id int) *Recipe + func (c *RecipeClient) Hooks() []Hook + func (c *RecipeClient) Query() *RecipeQuery + func (c *RecipeClient) QueryAuthor(r *Recipe) *UserQuery + func (c *RecipeClient) QueryRecipeIngredients(r *Recipe) *RecipeIngredientQuery + func (c *RecipeClient) QuerySteps(r *Recipe) *StepQuery + func (c *RecipeClient) QueryTags(r *Recipe) *CategoryQuery + func (c *RecipeClient) Update() *RecipeUpdate + func (c *RecipeClient) UpdateOne(r *Recipe) *RecipeUpdateOne + func (c *RecipeClient) UpdateOneID(id int) *RecipeUpdateOne + func (c *RecipeClient) Use(hooks ...Hook) + type RecipeCreate struct + func (rc *RecipeCreate) AddRecipeIngredientIDs(ids ...int) *RecipeCreate + func (rc *RecipeCreate) AddRecipeIngredients(r ...*RecipeIngredient) *RecipeCreate + func (rc *RecipeCreate) AddStepIDs(ids ...int) *RecipeCreate + func (rc *RecipeCreate) AddSteps(s ...*Step) *RecipeCreate + func (rc *RecipeCreate) AddTagIDs(ids ...int) *RecipeCreate + func (rc *RecipeCreate) AddTags(c ...*Category) *RecipeCreate + func (rc *RecipeCreate) Exec(ctx context.Context) error + func (rc *RecipeCreate) ExecX(ctx context.Context) + func (rc *RecipeCreate) Mutation() *RecipeMutation + func (rc *RecipeCreate) Save(ctx context.Context) (*Recipe, error) + func (rc *RecipeCreate) SaveX(ctx context.Context) *Recipe + func (rc *RecipeCreate) SetAuthor(u *User) *RecipeCreate + func (rc *RecipeCreate) SetAuthorID(id int) *RecipeCreate + func (rc *RecipeCreate) SetName(s string) *RecipeCreate + func (rc *RecipeCreate) SetNillableAuthorID(id *int) *RecipeCreate + func (rc *RecipeCreate) SetServings(i int) *RecipeCreate + type RecipeCreateBulk struct + func (rcb *RecipeCreateBulk) Exec(ctx context.Context) error + func (rcb *RecipeCreateBulk) ExecX(ctx context.Context) + func (rcb *RecipeCreateBulk) Save(ctx context.Context) ([]*Recipe, error) + func (rcb *RecipeCreateBulk) SaveX(ctx context.Context) []*Recipe + type RecipeDelete struct + func (rd *RecipeDelete) Exec(ctx context.Context) (int, error) + func (rd *RecipeDelete) ExecX(ctx context.Context) int + func (rd *RecipeDelete) Where(ps ...predicate.Recipe) *RecipeDelete + type RecipeDeleteOne struct + func (rdo *RecipeDeleteOne) Exec(ctx context.Context) error + func (rdo *RecipeDeleteOne) ExecX(ctx context.Context) + type RecipeEdges struct + Author *User + RecipeIngredients []*RecipeIngredient + Steps []*Step + Tags []*Category + func (e RecipeEdges) AuthorOrErr() (*User, error) + func (e RecipeEdges) RecipeIngredientsOrErr() ([]*RecipeIngredient, error) + func (e RecipeEdges) StepsOrErr() ([]*Step, error) + func (e RecipeEdges) TagsOrErr() ([]*Category, error) + type RecipeGroupBy struct + func (rgb *RecipeGroupBy) Aggregate(fns ...AggregateFunc) *RecipeGroupBy + func (rgb *RecipeGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (rgb *RecipeGroupBy) BoolX(ctx context.Context) bool + func (rgb *RecipeGroupBy) Bools(ctx context.Context) ([]bool, error) + func (rgb *RecipeGroupBy) BoolsX(ctx context.Context) []bool + func (rgb *RecipeGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (rgb *RecipeGroupBy) Float64X(ctx context.Context) float64 + func (rgb *RecipeGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (rgb *RecipeGroupBy) Float64sX(ctx context.Context) []float64 + func (rgb *RecipeGroupBy) Int(ctx context.Context) (_ int, err error) + func (rgb *RecipeGroupBy) IntX(ctx context.Context) int + func (rgb *RecipeGroupBy) Ints(ctx context.Context) ([]int, error) + func (rgb *RecipeGroupBy) IntsX(ctx context.Context) []int + func (rgb *RecipeGroupBy) Scan(ctx context.Context, v interface{}) error + func (rgb *RecipeGroupBy) ScanX(ctx context.Context, v interface{}) + func (rgb *RecipeGroupBy) String(ctx context.Context) (_ string, err error) + func (rgb *RecipeGroupBy) StringX(ctx context.Context) string + func (rgb *RecipeGroupBy) Strings(ctx context.Context) ([]string, error) + func (rgb *RecipeGroupBy) StringsX(ctx context.Context) []string + type RecipeIngredient struct + Edges RecipeIngredientEdges + ID int + Quantity float32 + Unit string + func (ri *RecipeIngredient) QueryIngredient() *IngredientQuery + func (ri *RecipeIngredient) String() string + func (ri *RecipeIngredient) Unwrap() *RecipeIngredient + func (ri *RecipeIngredient) Update() *RecipeIngredientUpdateOne + type RecipeIngredientClient struct + func NewRecipeIngredientClient(c config) *RecipeIngredientClient + func (c *RecipeIngredientClient) Create() *RecipeIngredientCreate + func (c *RecipeIngredientClient) CreateBulk(builders ...*RecipeIngredientCreate) *RecipeIngredientCreateBulk + func (c *RecipeIngredientClient) Delete() *RecipeIngredientDelete + func (c *RecipeIngredientClient) DeleteOne(ri *RecipeIngredient) *RecipeIngredientDeleteOne + func (c *RecipeIngredientClient) DeleteOneID(id int) *RecipeIngredientDeleteOne + func (c *RecipeIngredientClient) Get(ctx context.Context, id int) (*RecipeIngredient, error) + func (c *RecipeIngredientClient) GetX(ctx context.Context, id int) *RecipeIngredient + func (c *RecipeIngredientClient) Hooks() []Hook + func (c *RecipeIngredientClient) Query() *RecipeIngredientQuery + func (c *RecipeIngredientClient) QueryIngredient(ri *RecipeIngredient) *IngredientQuery + func (c *RecipeIngredientClient) Update() *RecipeIngredientUpdate + func (c *RecipeIngredientClient) UpdateOne(ri *RecipeIngredient) *RecipeIngredientUpdateOne + func (c *RecipeIngredientClient) UpdateOneID(id int) *RecipeIngredientUpdateOne + func (c *RecipeIngredientClient) Use(hooks ...Hook) + type RecipeIngredientCreate struct + func (ric *RecipeIngredientCreate) Exec(ctx context.Context) error + func (ric *RecipeIngredientCreate) ExecX(ctx context.Context) + func (ric *RecipeIngredientCreate) Mutation() *RecipeIngredientMutation + func (ric *RecipeIngredientCreate) Save(ctx context.Context) (*RecipeIngredient, error) + func (ric *RecipeIngredientCreate) SaveX(ctx context.Context) *RecipeIngredient + func (ric *RecipeIngredientCreate) SetIngredient(i *Ingredient) *RecipeIngredientCreate + func (ric *RecipeIngredientCreate) SetIngredientID(id int) *RecipeIngredientCreate + func (ric *RecipeIngredientCreate) SetNillableIngredientID(id *int) *RecipeIngredientCreate + func (ric *RecipeIngredientCreate) SetQuantity(f float32) *RecipeIngredientCreate + func (ric *RecipeIngredientCreate) SetUnit(s string) *RecipeIngredientCreate + type RecipeIngredientCreateBulk struct + func (ricb *RecipeIngredientCreateBulk) Exec(ctx context.Context) error + func (ricb *RecipeIngredientCreateBulk) ExecX(ctx context.Context) + func (ricb *RecipeIngredientCreateBulk) Save(ctx context.Context) ([]*RecipeIngredient, error) + func (ricb *RecipeIngredientCreateBulk) SaveX(ctx context.Context) []*RecipeIngredient + type RecipeIngredientDelete struct + func (rid *RecipeIngredientDelete) Exec(ctx context.Context) (int, error) + func (rid *RecipeIngredientDelete) ExecX(ctx context.Context) int + func (rid *RecipeIngredientDelete) Where(ps ...predicate.RecipeIngredient) *RecipeIngredientDelete + type RecipeIngredientDeleteOne struct + func (rido *RecipeIngredientDeleteOne) Exec(ctx context.Context) error + func (rido *RecipeIngredientDeleteOne) ExecX(ctx context.Context) + type RecipeIngredientEdges struct + Ingredient *Ingredient + func (e RecipeIngredientEdges) IngredientOrErr() (*Ingredient, error) + type RecipeIngredientGroupBy struct + func (rigb *RecipeIngredientGroupBy) Aggregate(fns ...AggregateFunc) *RecipeIngredientGroupBy + func (rigb *RecipeIngredientGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (rigb *RecipeIngredientGroupBy) BoolX(ctx context.Context) bool + func (rigb *RecipeIngredientGroupBy) Bools(ctx context.Context) ([]bool, error) + func (rigb *RecipeIngredientGroupBy) BoolsX(ctx context.Context) []bool + func (rigb *RecipeIngredientGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (rigb *RecipeIngredientGroupBy) Float64X(ctx context.Context) float64 + func (rigb *RecipeIngredientGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (rigb *RecipeIngredientGroupBy) Float64sX(ctx context.Context) []float64 + func (rigb *RecipeIngredientGroupBy) Int(ctx context.Context) (_ int, err error) + func (rigb *RecipeIngredientGroupBy) IntX(ctx context.Context) int + func (rigb *RecipeIngredientGroupBy) Ints(ctx context.Context) ([]int, error) + func (rigb *RecipeIngredientGroupBy) IntsX(ctx context.Context) []int + func (rigb *RecipeIngredientGroupBy) Scan(ctx context.Context, v interface{}) error + func (rigb *RecipeIngredientGroupBy) ScanX(ctx context.Context, v interface{}) + func (rigb *RecipeIngredientGroupBy) String(ctx context.Context) (_ string, err error) + func (rigb *RecipeIngredientGroupBy) StringX(ctx context.Context) string + func (rigb *RecipeIngredientGroupBy) Strings(ctx context.Context) ([]string, error) + func (rigb *RecipeIngredientGroupBy) StringsX(ctx context.Context) []string + type RecipeIngredientMutation struct + func (m *RecipeIngredientMutation) AddField(name string, value ent.Value) error + func (m *RecipeIngredientMutation) AddQuantity(f float32) + func (m *RecipeIngredientMutation) AddedEdges() []string + func (m *RecipeIngredientMutation) AddedField(name string) (ent.Value, bool) + func (m *RecipeIngredientMutation) AddedFields() []string + func (m *RecipeIngredientMutation) AddedIDs(name string) []ent.Value + func (m *RecipeIngredientMutation) AddedQuantity() (r float32, exists bool) + func (m *RecipeIngredientMutation) ClearEdge(name string) error + func (m *RecipeIngredientMutation) ClearField(name string) error + func (m *RecipeIngredientMutation) ClearIngredient() + func (m *RecipeIngredientMutation) ClearedEdges() []string + func (m *RecipeIngredientMutation) ClearedFields() []string + func (m *RecipeIngredientMutation) EdgeCleared(name string) bool + func (m *RecipeIngredientMutation) Field(name string) (ent.Value, bool) + func (m *RecipeIngredientMutation) FieldCleared(name string) bool + func (m *RecipeIngredientMutation) Fields() []string + func (m *RecipeIngredientMutation) ID() (id int, exists bool) + func (m *RecipeIngredientMutation) IngredientCleared() bool + func (m *RecipeIngredientMutation) IngredientID() (id int, exists bool) + func (m *RecipeIngredientMutation) IngredientIDs() (ids []int) + func (m *RecipeIngredientMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *RecipeIngredientMutation) OldQuantity(ctx context.Context) (v float32, err error) + func (m *RecipeIngredientMutation) OldUnit(ctx context.Context) (v string, err error) + func (m *RecipeIngredientMutation) Op() Op + func (m *RecipeIngredientMutation) Quantity() (r float32, exists bool) + func (m *RecipeIngredientMutation) RemovedEdges() []string + func (m *RecipeIngredientMutation) RemovedIDs(name string) []ent.Value + func (m *RecipeIngredientMutation) ResetEdge(name string) error + func (m *RecipeIngredientMutation) ResetField(name string) error + func (m *RecipeIngredientMutation) ResetIngredient() + func (m *RecipeIngredientMutation) ResetQuantity() + func (m *RecipeIngredientMutation) ResetUnit() + func (m *RecipeIngredientMutation) SetField(name string, value ent.Value) error + func (m *RecipeIngredientMutation) SetIngredientID(id int) + func (m *RecipeIngredientMutation) SetQuantity(f float32) + func (m *RecipeIngredientMutation) SetUnit(s string) + func (m *RecipeIngredientMutation) Type() string + func (m *RecipeIngredientMutation) Unit() (r string, exists bool) + func (m *RecipeIngredientMutation) Where(ps ...predicate.RecipeIngredient) + func (m RecipeIngredientMutation) Client() *Client + func (m RecipeIngredientMutation) Tx() (*Tx, error) + type RecipeIngredientQuery struct + func (riq *RecipeIngredientQuery) All(ctx context.Context) ([]*RecipeIngredient, error) + func (riq *RecipeIngredientQuery) AllX(ctx context.Context) []*RecipeIngredient + func (riq *RecipeIngredientQuery) Clone() *RecipeIngredientQuery + func (riq *RecipeIngredientQuery) Count(ctx context.Context) (int, error) + func (riq *RecipeIngredientQuery) CountX(ctx context.Context) int + func (riq *RecipeIngredientQuery) Exist(ctx context.Context) (bool, error) + func (riq *RecipeIngredientQuery) ExistX(ctx context.Context) bool + func (riq *RecipeIngredientQuery) First(ctx context.Context) (*RecipeIngredient, error) + func (riq *RecipeIngredientQuery) FirstID(ctx context.Context) (id int, err error) + func (riq *RecipeIngredientQuery) FirstIDX(ctx context.Context) int + func (riq *RecipeIngredientQuery) FirstX(ctx context.Context) *RecipeIngredient + func (riq *RecipeIngredientQuery) GroupBy(field string, fields ...string) *RecipeIngredientGroupBy + func (riq *RecipeIngredientQuery) IDs(ctx context.Context) ([]int, error) + func (riq *RecipeIngredientQuery) IDsX(ctx context.Context) []int + func (riq *RecipeIngredientQuery) Limit(limit int) *RecipeIngredientQuery + func (riq *RecipeIngredientQuery) Offset(offset int) *RecipeIngredientQuery + func (riq *RecipeIngredientQuery) Only(ctx context.Context) (*RecipeIngredient, error) + func (riq *RecipeIngredientQuery) OnlyID(ctx context.Context) (id int, err error) + func (riq *RecipeIngredientQuery) OnlyIDX(ctx context.Context) int + func (riq *RecipeIngredientQuery) OnlyX(ctx context.Context) *RecipeIngredient + func (riq *RecipeIngredientQuery) Order(o ...OrderFunc) *RecipeIngredientQuery + func (riq *RecipeIngredientQuery) QueryIngredient() *IngredientQuery + func (riq *RecipeIngredientQuery) Select(fields ...string) *RecipeIngredientSelect + func (riq *RecipeIngredientQuery) Unique(unique bool) *RecipeIngredientQuery + func (riq *RecipeIngredientQuery) Where(ps ...predicate.RecipeIngredient) *RecipeIngredientQuery + func (riq *RecipeIngredientQuery) WithIngredient(opts ...func(*IngredientQuery)) *RecipeIngredientQuery + type RecipeIngredientSelect struct + func (ris *RecipeIngredientSelect) Bool(ctx context.Context) (_ bool, err error) + func (ris *RecipeIngredientSelect) BoolX(ctx context.Context) bool + func (ris *RecipeIngredientSelect) Bools(ctx context.Context) ([]bool, error) + func (ris *RecipeIngredientSelect) BoolsX(ctx context.Context) []bool + func (ris *RecipeIngredientSelect) Float64(ctx context.Context) (_ float64, err error) + func (ris *RecipeIngredientSelect) Float64X(ctx context.Context) float64 + func (ris *RecipeIngredientSelect) Float64s(ctx context.Context) ([]float64, error) + func (ris *RecipeIngredientSelect) Float64sX(ctx context.Context) []float64 + func (ris *RecipeIngredientSelect) Int(ctx context.Context) (_ int, err error) + func (ris *RecipeIngredientSelect) IntX(ctx context.Context) int + func (ris *RecipeIngredientSelect) Ints(ctx context.Context) ([]int, error) + func (ris *RecipeIngredientSelect) IntsX(ctx context.Context) []int + func (ris *RecipeIngredientSelect) Scan(ctx context.Context, v interface{}) error + func (ris *RecipeIngredientSelect) ScanX(ctx context.Context, v interface{}) + func (ris *RecipeIngredientSelect) String(ctx context.Context) (_ string, err error) + func (ris *RecipeIngredientSelect) StringX(ctx context.Context) string + func (ris *RecipeIngredientSelect) Strings(ctx context.Context) ([]string, error) + func (ris *RecipeIngredientSelect) StringsX(ctx context.Context) []string + type RecipeIngredientUpdate struct + func (riu *RecipeIngredientUpdate) AddQuantity(f float32) *RecipeIngredientUpdate + func (riu *RecipeIngredientUpdate) ClearIngredient() *RecipeIngredientUpdate + func (riu *RecipeIngredientUpdate) Exec(ctx context.Context) error + func (riu *RecipeIngredientUpdate) ExecX(ctx context.Context) + func (riu *RecipeIngredientUpdate) Mutation() *RecipeIngredientMutation + func (riu *RecipeIngredientUpdate) Save(ctx context.Context) (int, error) + func (riu *RecipeIngredientUpdate) SaveX(ctx context.Context) int + func (riu *RecipeIngredientUpdate) SetIngredient(i *Ingredient) *RecipeIngredientUpdate + func (riu *RecipeIngredientUpdate) SetIngredientID(id int) *RecipeIngredientUpdate + func (riu *RecipeIngredientUpdate) SetNillableIngredientID(id *int) *RecipeIngredientUpdate + func (riu *RecipeIngredientUpdate) SetQuantity(f float32) *RecipeIngredientUpdate + func (riu *RecipeIngredientUpdate) SetUnit(s string) *RecipeIngredientUpdate + func (riu *RecipeIngredientUpdate) Where(ps ...predicate.RecipeIngredient) *RecipeIngredientUpdate + type RecipeIngredientUpdateOne struct + func (riuo *RecipeIngredientUpdateOne) AddQuantity(f float32) *RecipeIngredientUpdateOne + func (riuo *RecipeIngredientUpdateOne) ClearIngredient() *RecipeIngredientUpdateOne + func (riuo *RecipeIngredientUpdateOne) Exec(ctx context.Context) error + func (riuo *RecipeIngredientUpdateOne) ExecX(ctx context.Context) + func (riuo *RecipeIngredientUpdateOne) Mutation() *RecipeIngredientMutation + func (riuo *RecipeIngredientUpdateOne) Save(ctx context.Context) (*RecipeIngredient, error) + func (riuo *RecipeIngredientUpdateOne) SaveX(ctx context.Context) *RecipeIngredient + func (riuo *RecipeIngredientUpdateOne) Select(field string, fields ...string) *RecipeIngredientUpdateOne + func (riuo *RecipeIngredientUpdateOne) SetIngredient(i *Ingredient) *RecipeIngredientUpdateOne + func (riuo *RecipeIngredientUpdateOne) SetIngredientID(id int) *RecipeIngredientUpdateOne + func (riuo *RecipeIngredientUpdateOne) SetNillableIngredientID(id *int) *RecipeIngredientUpdateOne + func (riuo *RecipeIngredientUpdateOne) SetQuantity(f float32) *RecipeIngredientUpdateOne + func (riuo *RecipeIngredientUpdateOne) SetUnit(s string) *RecipeIngredientUpdateOne + type RecipeIngredients []*RecipeIngredient + type RecipeMutation struct + func (m *RecipeMutation) AddField(name string, value ent.Value) error + func (m *RecipeMutation) AddRecipeIngredientIDs(ids ...int) + func (m *RecipeMutation) AddServings(i int) + func (m *RecipeMutation) AddStepIDs(ids ...int) + func (m *RecipeMutation) AddTagIDs(ids ...int) + func (m *RecipeMutation) AddedEdges() []string + func (m *RecipeMutation) AddedField(name string) (ent.Value, bool) + func (m *RecipeMutation) AddedFields() []string + func (m *RecipeMutation) AddedIDs(name string) []ent.Value + func (m *RecipeMutation) AddedServings() (r int, exists bool) + func (m *RecipeMutation) AuthorCleared() bool + func (m *RecipeMutation) AuthorID() (id int, exists bool) + func (m *RecipeMutation) AuthorIDs() (ids []int) + func (m *RecipeMutation) ClearAuthor() + func (m *RecipeMutation) ClearEdge(name string) error + func (m *RecipeMutation) ClearField(name string) error + func (m *RecipeMutation) ClearRecipeIngredients() + func (m *RecipeMutation) ClearSteps() + func (m *RecipeMutation) ClearTags() + func (m *RecipeMutation) ClearedEdges() []string + func (m *RecipeMutation) ClearedFields() []string + func (m *RecipeMutation) EdgeCleared(name string) bool + func (m *RecipeMutation) Field(name string) (ent.Value, bool) + func (m *RecipeMutation) FieldCleared(name string) bool + func (m *RecipeMutation) Fields() []string + func (m *RecipeMutation) ID() (id int, exists bool) + func (m *RecipeMutation) Name() (r string, exists bool) + func (m *RecipeMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *RecipeMutation) OldName(ctx context.Context) (v string, err error) + func (m *RecipeMutation) OldServings(ctx context.Context) (v int, err error) + func (m *RecipeMutation) Op() Op + func (m *RecipeMutation) RecipeIngredientsCleared() bool + func (m *RecipeMutation) RecipeIngredientsIDs() (ids []int) + func (m *RecipeMutation) RemoveRecipeIngredientIDs(ids ...int) + func (m *RecipeMutation) RemoveStepIDs(ids ...int) + func (m *RecipeMutation) RemoveTagIDs(ids ...int) + func (m *RecipeMutation) RemovedEdges() []string + func (m *RecipeMutation) RemovedIDs(name string) []ent.Value + func (m *RecipeMutation) RemovedRecipeIngredientsIDs() (ids []int) + func (m *RecipeMutation) RemovedStepsIDs() (ids []int) + func (m *RecipeMutation) RemovedTagsIDs() (ids []int) + func (m *RecipeMutation) ResetAuthor() + func (m *RecipeMutation) ResetEdge(name string) error + func (m *RecipeMutation) ResetField(name string) error + func (m *RecipeMutation) ResetName() + func (m *RecipeMutation) ResetRecipeIngredients() + func (m *RecipeMutation) ResetServings() + func (m *RecipeMutation) ResetSteps() + func (m *RecipeMutation) ResetTags() + func (m *RecipeMutation) Servings() (r int, exists bool) + func (m *RecipeMutation) SetAuthorID(id int) + func (m *RecipeMutation) SetField(name string, value ent.Value) error + func (m *RecipeMutation) SetName(s string) + func (m *RecipeMutation) SetServings(i int) + func (m *RecipeMutation) StepsCleared() bool + func (m *RecipeMutation) StepsIDs() (ids []int) + func (m *RecipeMutation) TagsCleared() bool + func (m *RecipeMutation) TagsIDs() (ids []int) + func (m *RecipeMutation) Type() string + func (m *RecipeMutation) Where(ps ...predicate.Recipe) + func (m RecipeMutation) Client() *Client + func (m RecipeMutation) Tx() (*Tx, error) + type RecipeQuery struct + func (rq *RecipeQuery) All(ctx context.Context) ([]*Recipe, error) + func (rq *RecipeQuery) AllX(ctx context.Context) []*Recipe + func (rq *RecipeQuery) Clone() *RecipeQuery + func (rq *RecipeQuery) Count(ctx context.Context) (int, error) + func (rq *RecipeQuery) CountX(ctx context.Context) int + func (rq *RecipeQuery) Exist(ctx context.Context) (bool, error) + func (rq *RecipeQuery) ExistX(ctx context.Context) bool + func (rq *RecipeQuery) First(ctx context.Context) (*Recipe, error) + func (rq *RecipeQuery) FirstID(ctx context.Context) (id int, err error) + func (rq *RecipeQuery) FirstIDX(ctx context.Context) int + func (rq *RecipeQuery) FirstX(ctx context.Context) *Recipe + func (rq *RecipeQuery) GroupBy(field string, fields ...string) *RecipeGroupBy + func (rq *RecipeQuery) IDs(ctx context.Context) ([]int, error) + func (rq *RecipeQuery) IDsX(ctx context.Context) []int + func (rq *RecipeQuery) Limit(limit int) *RecipeQuery + func (rq *RecipeQuery) Offset(offset int) *RecipeQuery + func (rq *RecipeQuery) Only(ctx context.Context) (*Recipe, error) + func (rq *RecipeQuery) OnlyID(ctx context.Context) (id int, err error) + func (rq *RecipeQuery) OnlyIDX(ctx context.Context) int + func (rq *RecipeQuery) OnlyX(ctx context.Context) *Recipe + func (rq *RecipeQuery) Order(o ...OrderFunc) *RecipeQuery + func (rq *RecipeQuery) QueryAuthor() *UserQuery + func (rq *RecipeQuery) QueryRecipeIngredients() *RecipeIngredientQuery + func (rq *RecipeQuery) QuerySteps() *StepQuery + func (rq *RecipeQuery) QueryTags() *CategoryQuery + func (rq *RecipeQuery) Select(fields ...string) *RecipeSelect + func (rq *RecipeQuery) Unique(unique bool) *RecipeQuery + func (rq *RecipeQuery) Where(ps ...predicate.Recipe) *RecipeQuery + func (rq *RecipeQuery) WithAuthor(opts ...func(*UserQuery)) *RecipeQuery + func (rq *RecipeQuery) WithRecipeIngredients(opts ...func(*RecipeIngredientQuery)) *RecipeQuery + func (rq *RecipeQuery) WithSteps(opts ...func(*StepQuery)) *RecipeQuery + func (rq *RecipeQuery) WithTags(opts ...func(*CategoryQuery)) *RecipeQuery + type RecipeSelect struct + func (rs *RecipeSelect) Bool(ctx context.Context) (_ bool, err error) + func (rs *RecipeSelect) BoolX(ctx context.Context) bool + func (rs *RecipeSelect) Bools(ctx context.Context) ([]bool, error) + func (rs *RecipeSelect) BoolsX(ctx context.Context) []bool + func (rs *RecipeSelect) Float64(ctx context.Context) (_ float64, err error) + func (rs *RecipeSelect) Float64X(ctx context.Context) float64 + func (rs *RecipeSelect) Float64s(ctx context.Context) ([]float64, error) + func (rs *RecipeSelect) Float64sX(ctx context.Context) []float64 + func (rs *RecipeSelect) Int(ctx context.Context) (_ int, err error) + func (rs *RecipeSelect) IntX(ctx context.Context) int + func (rs *RecipeSelect) Ints(ctx context.Context) ([]int, error) + func (rs *RecipeSelect) IntsX(ctx context.Context) []int + func (rs *RecipeSelect) Scan(ctx context.Context, v interface{}) error + func (rs *RecipeSelect) ScanX(ctx context.Context, v interface{}) + func (rs *RecipeSelect) String(ctx context.Context) (_ string, err error) + func (rs *RecipeSelect) StringX(ctx context.Context) string + func (rs *RecipeSelect) Strings(ctx context.Context) ([]string, error) + func (rs *RecipeSelect) StringsX(ctx context.Context) []string + type RecipeUpdate struct + func (ru *RecipeUpdate) AddRecipeIngredientIDs(ids ...int) *RecipeUpdate + func (ru *RecipeUpdate) AddRecipeIngredients(r ...*RecipeIngredient) *RecipeUpdate + func (ru *RecipeUpdate) AddServings(i int) *RecipeUpdate + func (ru *RecipeUpdate) AddStepIDs(ids ...int) *RecipeUpdate + func (ru *RecipeUpdate) AddSteps(s ...*Step) *RecipeUpdate + func (ru *RecipeUpdate) AddTagIDs(ids ...int) *RecipeUpdate + func (ru *RecipeUpdate) AddTags(c ...*Category) *RecipeUpdate + func (ru *RecipeUpdate) ClearAuthor() *RecipeUpdate + func (ru *RecipeUpdate) ClearRecipeIngredients() *RecipeUpdate + func (ru *RecipeUpdate) ClearSteps() *RecipeUpdate + func (ru *RecipeUpdate) ClearTags() *RecipeUpdate + func (ru *RecipeUpdate) Exec(ctx context.Context) error + func (ru *RecipeUpdate) ExecX(ctx context.Context) + func (ru *RecipeUpdate) Mutation() *RecipeMutation + func (ru *RecipeUpdate) RemoveRecipeIngredientIDs(ids ...int) *RecipeUpdate + func (ru *RecipeUpdate) RemoveRecipeIngredients(r ...*RecipeIngredient) *RecipeUpdate + func (ru *RecipeUpdate) RemoveStepIDs(ids ...int) *RecipeUpdate + func (ru *RecipeUpdate) RemoveSteps(s ...*Step) *RecipeUpdate + func (ru *RecipeUpdate) RemoveTagIDs(ids ...int) *RecipeUpdate + func (ru *RecipeUpdate) RemoveTags(c ...*Category) *RecipeUpdate + func (ru *RecipeUpdate) Save(ctx context.Context) (int, error) + func (ru *RecipeUpdate) SaveX(ctx context.Context) int + func (ru *RecipeUpdate) SetAuthor(u *User) *RecipeUpdate + func (ru *RecipeUpdate) SetAuthorID(id int) *RecipeUpdate + func (ru *RecipeUpdate) SetName(s string) *RecipeUpdate + func (ru *RecipeUpdate) SetNillableAuthorID(id *int) *RecipeUpdate + func (ru *RecipeUpdate) SetServings(i int) *RecipeUpdate + func (ru *RecipeUpdate) Where(ps ...predicate.Recipe) *RecipeUpdate + type RecipeUpdateOne struct + func (ruo *RecipeUpdateOne) AddRecipeIngredientIDs(ids ...int) *RecipeUpdateOne + func (ruo *RecipeUpdateOne) AddRecipeIngredients(r ...*RecipeIngredient) *RecipeUpdateOne + func (ruo *RecipeUpdateOne) AddServings(i int) *RecipeUpdateOne + func (ruo *RecipeUpdateOne) AddStepIDs(ids ...int) *RecipeUpdateOne + func (ruo *RecipeUpdateOne) AddSteps(s ...*Step) *RecipeUpdateOne + func (ruo *RecipeUpdateOne) AddTagIDs(ids ...int) *RecipeUpdateOne + func (ruo *RecipeUpdateOne) AddTags(c ...*Category) *RecipeUpdateOne + func (ruo *RecipeUpdateOne) ClearAuthor() *RecipeUpdateOne + func (ruo *RecipeUpdateOne) ClearRecipeIngredients() *RecipeUpdateOne + func (ruo *RecipeUpdateOne) ClearSteps() *RecipeUpdateOne + func (ruo *RecipeUpdateOne) ClearTags() *RecipeUpdateOne + func (ruo *RecipeUpdateOne) Exec(ctx context.Context) error + func (ruo *RecipeUpdateOne) ExecX(ctx context.Context) + func (ruo *RecipeUpdateOne) Mutation() *RecipeMutation + func (ruo *RecipeUpdateOne) RemoveRecipeIngredientIDs(ids ...int) *RecipeUpdateOne + func (ruo *RecipeUpdateOne) RemoveRecipeIngredients(r ...*RecipeIngredient) *RecipeUpdateOne + func (ruo *RecipeUpdateOne) RemoveStepIDs(ids ...int) *RecipeUpdateOne + func (ruo *RecipeUpdateOne) RemoveSteps(s ...*Step) *RecipeUpdateOne + func (ruo *RecipeUpdateOne) RemoveTagIDs(ids ...int) *RecipeUpdateOne + func (ruo *RecipeUpdateOne) RemoveTags(c ...*Category) *RecipeUpdateOne + func (ruo *RecipeUpdateOne) Save(ctx context.Context) (*Recipe, error) + func (ruo *RecipeUpdateOne) SaveX(ctx context.Context) *Recipe + func (ruo *RecipeUpdateOne) Select(field string, fields ...string) *RecipeUpdateOne + func (ruo *RecipeUpdateOne) SetAuthor(u *User) *RecipeUpdateOne + func (ruo *RecipeUpdateOne) SetAuthorID(id int) *RecipeUpdateOne + func (ruo *RecipeUpdateOne) SetName(s string) *RecipeUpdateOne + func (ruo *RecipeUpdateOne) SetNillableAuthorID(id *int) *RecipeUpdateOne + func (ruo *RecipeUpdateOne) SetServings(i int) *RecipeUpdateOne + type Recipes []*Recipe + type RollbackFunc func(context.Context, *Tx) error + func (f RollbackFunc) Rollback(ctx context.Context, tx *Tx) error + type RollbackHook func(Rollbacker) Rollbacker + type Rollbacker interface + Rollback func(context.Context, *Tx) error + type Step struct + Edges StepEdges + ID int + Text string + func (s *Step) QueryRecipe() *RecipeQuery + func (s *Step) String() string + func (s *Step) Unwrap() *Step + func (s *Step) Update() *StepUpdateOne + type StepClient struct + func NewStepClient(c config) *StepClient + func (c *StepClient) Create() *StepCreate + func (c *StepClient) CreateBulk(builders ...*StepCreate) *StepCreateBulk + func (c *StepClient) Delete() *StepDelete + func (c *StepClient) DeleteOne(s *Step) *StepDeleteOne + func (c *StepClient) DeleteOneID(id int) *StepDeleteOne + func (c *StepClient) Get(ctx context.Context, id int) (*Step, error) + func (c *StepClient) GetX(ctx context.Context, id int) *Step + func (c *StepClient) Hooks() []Hook + func (c *StepClient) Query() *StepQuery + func (c *StepClient) QueryRecipe(s *Step) *RecipeQuery + func (c *StepClient) Update() *StepUpdate + func (c *StepClient) UpdateOne(s *Step) *StepUpdateOne + func (c *StepClient) UpdateOneID(id int) *StepUpdateOne + func (c *StepClient) Use(hooks ...Hook) + type StepCreate struct + func (sc *StepCreate) Exec(ctx context.Context) error + func (sc *StepCreate) ExecX(ctx context.Context) + func (sc *StepCreate) Mutation() *StepMutation + func (sc *StepCreate) Save(ctx context.Context) (*Step, error) + func (sc *StepCreate) SaveX(ctx context.Context) *Step + func (sc *StepCreate) SetNillableRecipeID(id *int) *StepCreate + func (sc *StepCreate) SetRecipe(r *Recipe) *StepCreate + func (sc *StepCreate) SetRecipeID(id int) *StepCreate + func (sc *StepCreate) SetText(s string) *StepCreate + type StepCreateBulk struct + func (scb *StepCreateBulk) Exec(ctx context.Context) error + func (scb *StepCreateBulk) ExecX(ctx context.Context) + func (scb *StepCreateBulk) Save(ctx context.Context) ([]*Step, error) + func (scb *StepCreateBulk) SaveX(ctx context.Context) []*Step + type StepDelete struct + func (sd *StepDelete) Exec(ctx context.Context) (int, error) + func (sd *StepDelete) ExecX(ctx context.Context) int + func (sd *StepDelete) Where(ps ...predicate.Step) *StepDelete + type StepDeleteOne struct + func (sdo *StepDeleteOne) Exec(ctx context.Context) error + func (sdo *StepDeleteOne) ExecX(ctx context.Context) + type StepEdges struct + Recipe *Recipe + func (e StepEdges) RecipeOrErr() (*Recipe, error) + type StepGroupBy struct + func (sgb *StepGroupBy) Aggregate(fns ...AggregateFunc) *StepGroupBy + func (sgb *StepGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (sgb *StepGroupBy) BoolX(ctx context.Context) bool + func (sgb *StepGroupBy) Bools(ctx context.Context) ([]bool, error) + func (sgb *StepGroupBy) BoolsX(ctx context.Context) []bool + func (sgb *StepGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (sgb *StepGroupBy) Float64X(ctx context.Context) float64 + func (sgb *StepGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (sgb *StepGroupBy) Float64sX(ctx context.Context) []float64 + func (sgb *StepGroupBy) Int(ctx context.Context) (_ int, err error) + func (sgb *StepGroupBy) IntX(ctx context.Context) int + func (sgb *StepGroupBy) Ints(ctx context.Context) ([]int, error) + func (sgb *StepGroupBy) IntsX(ctx context.Context) []int + func (sgb *StepGroupBy) Scan(ctx context.Context, v interface{}) error + func (sgb *StepGroupBy) ScanX(ctx context.Context, v interface{}) + func (sgb *StepGroupBy) String(ctx context.Context) (_ string, err error) + func (sgb *StepGroupBy) StringX(ctx context.Context) string + func (sgb *StepGroupBy) Strings(ctx context.Context) ([]string, error) + func (sgb *StepGroupBy) StringsX(ctx context.Context) []string + type StepMutation struct + func (m *StepMutation) AddField(name string, value ent.Value) error + func (m *StepMutation) AddedEdges() []string + func (m *StepMutation) AddedField(name string) (ent.Value, bool) + func (m *StepMutation) AddedFields() []string + func (m *StepMutation) AddedIDs(name string) []ent.Value + func (m *StepMutation) ClearEdge(name string) error + func (m *StepMutation) ClearField(name string) error + func (m *StepMutation) ClearRecipe() + func (m *StepMutation) ClearedEdges() []string + func (m *StepMutation) ClearedFields() []string + func (m *StepMutation) EdgeCleared(name string) bool + func (m *StepMutation) Field(name string) (ent.Value, bool) + func (m *StepMutation) FieldCleared(name string) bool + func (m *StepMutation) Fields() []string + func (m *StepMutation) ID() (id int, exists bool) + func (m *StepMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *StepMutation) OldText(ctx context.Context) (v string, err error) + func (m *StepMutation) Op() Op + func (m *StepMutation) RecipeCleared() bool + func (m *StepMutation) RecipeID() (id int, exists bool) + func (m *StepMutation) RecipeIDs() (ids []int) + func (m *StepMutation) RemovedEdges() []string + func (m *StepMutation) RemovedIDs(name string) []ent.Value + func (m *StepMutation) ResetEdge(name string) error + func (m *StepMutation) ResetField(name string) error + func (m *StepMutation) ResetRecipe() + func (m *StepMutation) ResetText() + func (m *StepMutation) SetField(name string, value ent.Value) error + func (m *StepMutation) SetRecipeID(id int) + func (m *StepMutation) SetText(s string) + func (m *StepMutation) Text() (r string, exists bool) + func (m *StepMutation) Type() string + func (m *StepMutation) Where(ps ...predicate.Step) + func (m StepMutation) Client() *Client + func (m StepMutation) Tx() (*Tx, error) + type StepQuery struct + func (sq *StepQuery) All(ctx context.Context) ([]*Step, error) + func (sq *StepQuery) AllX(ctx context.Context) []*Step + func (sq *StepQuery) Clone() *StepQuery + func (sq *StepQuery) Count(ctx context.Context) (int, error) + func (sq *StepQuery) CountX(ctx context.Context) int + func (sq *StepQuery) Exist(ctx context.Context) (bool, error) + func (sq *StepQuery) ExistX(ctx context.Context) bool + func (sq *StepQuery) First(ctx context.Context) (*Step, error) + func (sq *StepQuery) FirstID(ctx context.Context) (id int, err error) + func (sq *StepQuery) FirstIDX(ctx context.Context) int + func (sq *StepQuery) FirstX(ctx context.Context) *Step + func (sq *StepQuery) GroupBy(field string, fields ...string) *StepGroupBy + func (sq *StepQuery) IDs(ctx context.Context) ([]int, error) + func (sq *StepQuery) IDsX(ctx context.Context) []int + func (sq *StepQuery) Limit(limit int) *StepQuery + func (sq *StepQuery) Offset(offset int) *StepQuery + func (sq *StepQuery) Only(ctx context.Context) (*Step, error) + func (sq *StepQuery) OnlyID(ctx context.Context) (id int, err error) + func (sq *StepQuery) OnlyIDX(ctx context.Context) int + func (sq *StepQuery) OnlyX(ctx context.Context) *Step + func (sq *StepQuery) Order(o ...OrderFunc) *StepQuery + func (sq *StepQuery) QueryRecipe() *RecipeQuery + func (sq *StepQuery) Select(fields ...string) *StepSelect + func (sq *StepQuery) Unique(unique bool) *StepQuery + func (sq *StepQuery) Where(ps ...predicate.Step) *StepQuery + func (sq *StepQuery) WithRecipe(opts ...func(*RecipeQuery)) *StepQuery + type StepSelect struct + func (ss *StepSelect) Bool(ctx context.Context) (_ bool, err error) + func (ss *StepSelect) BoolX(ctx context.Context) bool + func (ss *StepSelect) Bools(ctx context.Context) ([]bool, error) + func (ss *StepSelect) BoolsX(ctx context.Context) []bool + func (ss *StepSelect) Float64(ctx context.Context) (_ float64, err error) + func (ss *StepSelect) Float64X(ctx context.Context) float64 + func (ss *StepSelect) Float64s(ctx context.Context) ([]float64, error) + func (ss *StepSelect) Float64sX(ctx context.Context) []float64 + func (ss *StepSelect) Int(ctx context.Context) (_ int, err error) + func (ss *StepSelect) IntX(ctx context.Context) int + func (ss *StepSelect) Ints(ctx context.Context) ([]int, error) + func (ss *StepSelect) IntsX(ctx context.Context) []int + func (ss *StepSelect) Scan(ctx context.Context, v interface{}) error + func (ss *StepSelect) ScanX(ctx context.Context, v interface{}) + func (ss *StepSelect) String(ctx context.Context) (_ string, err error) + func (ss *StepSelect) StringX(ctx context.Context) string + func (ss *StepSelect) Strings(ctx context.Context) ([]string, error) + func (ss *StepSelect) StringsX(ctx context.Context) []string + type StepUpdate struct + func (su *StepUpdate) ClearRecipe() *StepUpdate + func (su *StepUpdate) Exec(ctx context.Context) error + func (su *StepUpdate) ExecX(ctx context.Context) + func (su *StepUpdate) Mutation() *StepMutation + func (su *StepUpdate) Save(ctx context.Context) (int, error) + func (su *StepUpdate) SaveX(ctx context.Context) int + func (su *StepUpdate) SetNillableRecipeID(id *int) *StepUpdate + func (su *StepUpdate) SetRecipe(r *Recipe) *StepUpdate + func (su *StepUpdate) SetRecipeID(id int) *StepUpdate + func (su *StepUpdate) SetText(s string) *StepUpdate + func (su *StepUpdate) Where(ps ...predicate.Step) *StepUpdate + type StepUpdateOne struct + func (suo *StepUpdateOne) ClearRecipe() *StepUpdateOne + func (suo *StepUpdateOne) Exec(ctx context.Context) error + func (suo *StepUpdateOne) ExecX(ctx context.Context) + func (suo *StepUpdateOne) Mutation() *StepMutation + func (suo *StepUpdateOne) Save(ctx context.Context) (*Step, error) + func (suo *StepUpdateOne) SaveX(ctx context.Context) *Step + func (suo *StepUpdateOne) Select(field string, fields ...string) *StepUpdateOne + func (suo *StepUpdateOne) SetNillableRecipeID(id *int) *StepUpdateOne + func (suo *StepUpdateOne) SetRecipe(r *Recipe) *StepUpdateOne + func (suo *StepUpdateOne) SetRecipeID(id int) *StepUpdateOne + func (suo *StepUpdateOne) SetText(s string) *StepUpdateOne + type Steps []*Step + type Tx struct + Category *CategoryClient + Ingredient *IngredientClient + Recipe *RecipeClient + RecipeIngredient *RecipeIngredientClient + Step *StepClient + User *UserClient + func TxFromContext(ctx context.Context) *Tx + func (tx *Tx) Client() *Client + func (tx *Tx) Commit() error + func (tx *Tx) OnCommit(f CommitHook) + func (tx *Tx) OnRollback(f RollbackHook) + func (tx *Tx) Rollback() error + type User struct + Edges UserEdges + ID int + Name string + func (u *User) QueryRecipes() *RecipeQuery + func (u *User) String() string + func (u *User) Unwrap() *User + func (u *User) Update() *UserUpdateOne + type UserClient struct + func NewUserClient(c config) *UserClient + func (c *UserClient) Create() *UserCreate + func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk + func (c *UserClient) Delete() *UserDelete + func (c *UserClient) DeleteOne(u *User) *UserDeleteOne + func (c *UserClient) DeleteOneID(id int) *UserDeleteOne + func (c *UserClient) Get(ctx context.Context, id int) (*User, error) + func (c *UserClient) GetX(ctx context.Context, id int) *User + func (c *UserClient) Hooks() []Hook + func (c *UserClient) Query() *UserQuery + func (c *UserClient) QueryRecipes(u *User) *RecipeQuery + func (c *UserClient) Update() *UserUpdate + func (c *UserClient) UpdateOne(u *User) *UserUpdateOne + func (c *UserClient) UpdateOneID(id int) *UserUpdateOne + func (c *UserClient) Use(hooks ...Hook) + type UserCreate struct + func (uc *UserCreate) AddRecipeIDs(ids ...int) *UserCreate + func (uc *UserCreate) AddRecipes(r ...*Recipe) *UserCreate + func (uc *UserCreate) Exec(ctx context.Context) error + func (uc *UserCreate) ExecX(ctx context.Context) + func (uc *UserCreate) Mutation() *UserMutation + func (uc *UserCreate) Save(ctx context.Context) (*User, error) + func (uc *UserCreate) SaveX(ctx context.Context) *User + func (uc *UserCreate) SetName(s string) *UserCreate + type UserCreateBulk struct + func (ucb *UserCreateBulk) Exec(ctx context.Context) error + func (ucb *UserCreateBulk) ExecX(ctx context.Context) + func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) + func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User + type UserDelete struct + func (ud *UserDelete) Exec(ctx context.Context) (int, error) + func (ud *UserDelete) ExecX(ctx context.Context) int + func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete + type UserDeleteOne struct + func (udo *UserDeleteOne) Exec(ctx context.Context) error + func (udo *UserDeleteOne) ExecX(ctx context.Context) + type UserEdges struct + Recipes []*Recipe + func (e UserEdges) RecipesOrErr() ([]*Recipe, error) + type UserGroupBy struct + func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy + func (ugb *UserGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (ugb *UserGroupBy) BoolX(ctx context.Context) bool + func (ugb *UserGroupBy) Bools(ctx context.Context) ([]bool, error) + func (ugb *UserGroupBy) BoolsX(ctx context.Context) []bool + func (ugb *UserGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (ugb *UserGroupBy) Float64X(ctx context.Context) float64 + func (ugb *UserGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (ugb *UserGroupBy) Float64sX(ctx context.Context) []float64 + func (ugb *UserGroupBy) Int(ctx context.Context) (_ int, err error) + func (ugb *UserGroupBy) IntX(ctx context.Context) int + func (ugb *UserGroupBy) Ints(ctx context.Context) ([]int, error) + func (ugb *UserGroupBy) IntsX(ctx context.Context) []int + func (ugb *UserGroupBy) Scan(ctx context.Context, v interface{}) error + func (ugb *UserGroupBy) ScanX(ctx context.Context, v interface{}) + func (ugb *UserGroupBy) String(ctx context.Context) (_ string, err error) + func (ugb *UserGroupBy) StringX(ctx context.Context) string + func (ugb *UserGroupBy) Strings(ctx context.Context) ([]string, error) + func (ugb *UserGroupBy) StringsX(ctx context.Context) []string + type UserMutation struct + func (m *UserMutation) AddField(name string, value ent.Value) error + func (m *UserMutation) AddRecipeIDs(ids ...int) + func (m *UserMutation) AddedEdges() []string + func (m *UserMutation) AddedField(name string) (ent.Value, bool) + func (m *UserMutation) AddedFields() []string + func (m *UserMutation) AddedIDs(name string) []ent.Value + func (m *UserMutation) ClearEdge(name string) error + func (m *UserMutation) ClearField(name string) error + func (m *UserMutation) ClearRecipes() + func (m *UserMutation) ClearedEdges() []string + func (m *UserMutation) ClearedFields() []string + func (m *UserMutation) EdgeCleared(name string) bool + func (m *UserMutation) Field(name string) (ent.Value, bool) + func (m *UserMutation) FieldCleared(name string) bool + func (m *UserMutation) Fields() []string + func (m *UserMutation) ID() (id int, exists bool) + func (m *UserMutation) Name() (r string, exists bool) + func (m *UserMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *UserMutation) OldName(ctx context.Context) (v string, err error) + func (m *UserMutation) Op() Op + func (m *UserMutation) RecipesCleared() bool + func (m *UserMutation) RecipesIDs() (ids []int) + func (m *UserMutation) RemoveRecipeIDs(ids ...int) + func (m *UserMutation) RemovedEdges() []string + func (m *UserMutation) RemovedIDs(name string) []ent.Value + func (m *UserMutation) RemovedRecipesIDs() (ids []int) + func (m *UserMutation) ResetEdge(name string) error + func (m *UserMutation) ResetField(name string) error + func (m *UserMutation) ResetName() + func (m *UserMutation) ResetRecipes() + func (m *UserMutation) SetField(name string, value ent.Value) error + func (m *UserMutation) SetName(s string) + func (m *UserMutation) Type() string + func (m *UserMutation) Where(ps ...predicate.User) + func (m UserMutation) Client() *Client + func (m UserMutation) Tx() (*Tx, error) + type UserQuery struct + func (uq *UserQuery) All(ctx context.Context) ([]*User, error) + func (uq *UserQuery) AllX(ctx context.Context) []*User + func (uq *UserQuery) Clone() *UserQuery + func (uq *UserQuery) Count(ctx context.Context) (int, error) + func (uq *UserQuery) CountX(ctx context.Context) int + func (uq *UserQuery) Exist(ctx context.Context) (bool, error) + func (uq *UserQuery) ExistX(ctx context.Context) bool + func (uq *UserQuery) First(ctx context.Context) (*User, error) + func (uq *UserQuery) FirstID(ctx context.Context) (id int, err error) + func (uq *UserQuery) FirstIDX(ctx context.Context) int + func (uq *UserQuery) FirstX(ctx context.Context) *User + func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy + func (uq *UserQuery) IDs(ctx context.Context) ([]int, error) + func (uq *UserQuery) IDsX(ctx context.Context) []int + func (uq *UserQuery) Limit(limit int) *UserQuery + func (uq *UserQuery) Offset(offset int) *UserQuery + func (uq *UserQuery) Only(ctx context.Context) (*User, error) + func (uq *UserQuery) OnlyID(ctx context.Context) (id int, err error) + func (uq *UserQuery) OnlyIDX(ctx context.Context) int + func (uq *UserQuery) OnlyX(ctx context.Context) *User + func (uq *UserQuery) Order(o ...OrderFunc) *UserQuery + func (uq *UserQuery) QueryRecipes() *RecipeQuery + func (uq *UserQuery) Select(fields ...string) *UserSelect + func (uq *UserQuery) Unique(unique bool) *UserQuery + func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery + func (uq *UserQuery) WithRecipes(opts ...func(*RecipeQuery)) *UserQuery + type UserSelect struct + func (us *UserSelect) Bool(ctx context.Context) (_ bool, err error) + func (us *UserSelect) BoolX(ctx context.Context) bool + func (us *UserSelect) Bools(ctx context.Context) ([]bool, error) + func (us *UserSelect) BoolsX(ctx context.Context) []bool + func (us *UserSelect) Float64(ctx context.Context) (_ float64, err error) + func (us *UserSelect) Float64X(ctx context.Context) float64 + func (us *UserSelect) Float64s(ctx context.Context) ([]float64, error) + func (us *UserSelect) Float64sX(ctx context.Context) []float64 + func (us *UserSelect) Int(ctx context.Context) (_ int, err error) + func (us *UserSelect) IntX(ctx context.Context) int + func (us *UserSelect) Ints(ctx context.Context) ([]int, error) + func (us *UserSelect) IntsX(ctx context.Context) []int + func (us *UserSelect) Scan(ctx context.Context, v interface{}) error + func (us *UserSelect) ScanX(ctx context.Context, v interface{}) + func (us *UserSelect) String(ctx context.Context) (_ string, err error) + func (us *UserSelect) StringX(ctx context.Context) string + func (us *UserSelect) Strings(ctx context.Context) ([]string, error) + func (us *UserSelect) StringsX(ctx context.Context) []string + type UserUpdate struct + func (uu *UserUpdate) AddRecipeIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) AddRecipes(r ...*Recipe) *UserUpdate + func (uu *UserUpdate) ClearRecipes() *UserUpdate + func (uu *UserUpdate) Exec(ctx context.Context) error + func (uu *UserUpdate) ExecX(ctx context.Context) + func (uu *UserUpdate) Mutation() *UserMutation + func (uu *UserUpdate) RemoveRecipeIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) RemoveRecipes(r ...*Recipe) *UserUpdate + func (uu *UserUpdate) Save(ctx context.Context) (int, error) + func (uu *UserUpdate) SaveX(ctx context.Context) int + func (uu *UserUpdate) SetName(s string) *UserUpdate + func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate + type UserUpdateOne struct + func (uuo *UserUpdateOne) AddRecipeIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) AddRecipes(r ...*Recipe) *UserUpdateOne + func (uuo *UserUpdateOne) ClearRecipes() *UserUpdateOne + func (uuo *UserUpdateOne) Exec(ctx context.Context) error + func (uuo *UserUpdateOne) ExecX(ctx context.Context) + func (uuo *UserUpdateOne) Mutation() *UserMutation + func (uuo *UserUpdateOne) RemoveRecipeIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) RemoveRecipes(r ...*Recipe) *UserUpdateOne + func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error) + func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User + func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne + func (uuo *UserUpdateOne) SetName(s string) *UserUpdateOne + type Users []*User + type ValidationError struct + Name string + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Value = ent.Value