Versions in this module Expand all Collapse all v0 v0.0.4 Oct 6, 2021 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeCategory + const TypeClub + const TypeLikeClub + 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 string + func (c *Category) QueryClubs() *ClubQuery + 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 string) *CategoryDeleteOne + func (c *CategoryClient) Get(ctx context.Context, id string) (*Category, error) + func (c *CategoryClient) GetX(ctx context.Context, id string) *Category + func (c *CategoryClient) Hooks() []Hook + func (c *CategoryClient) Query() *CategoryQuery + func (c *CategoryClient) QueryClubs(ca *Category) *ClubQuery + func (c *CategoryClient) Update() *CategoryUpdate + func (c *CategoryClient) UpdateOne(ca *Category) *CategoryUpdateOne + func (c *CategoryClient) UpdateOneID(id string) *CategoryUpdateOne + func (c *CategoryClient) Use(hooks ...Hook) + type CategoryCreate struct + func (cc *CategoryCreate) AddClubIDs(ids ...int) *CategoryCreate + func (cc *CategoryCreate) AddClubs(c ...*Club) *CategoryCreate + 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) SetID(s string) *CategoryCreate + type CategoryCreateBulk struct + 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 + Clubs []*Club + func (e CategoryEdges) ClubsOrErr() ([]*Club, 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) AddClubIDs(ids ...int) + func (m *CategoryMutation) AddField(name string, value ent.Value) error + 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) ClearClubs() + func (m *CategoryMutation) ClearEdge(name string) error + func (m *CategoryMutation) ClearField(name string) error + func (m *CategoryMutation) ClearedEdges() []string + func (m *CategoryMutation) ClearedFields() []string + func (m *CategoryMutation) ClubsCleared() bool + func (m *CategoryMutation) ClubsIDs() (ids []int) + 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 string, exists bool) + func (m *CategoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *CategoryMutation) Op() Op + func (m *CategoryMutation) RemoveClubIDs(ids ...int) + func (m *CategoryMutation) RemovedClubsIDs() (ids []int) + func (m *CategoryMutation) RemovedEdges() []string + func (m *CategoryMutation) RemovedIDs(name string) []ent.Value + func (m *CategoryMutation) ResetClubs() + func (m *CategoryMutation) ResetEdge(name string) error + func (m *CategoryMutation) ResetField(name string) error + func (m *CategoryMutation) SetField(name string, value ent.Value) error + func (m *CategoryMutation) SetID(id string) + func (m *CategoryMutation) Type() string + 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 string, err error) + func (cq *CategoryQuery) FirstIDX(ctx context.Context) string + func (cq *CategoryQuery) FirstX(ctx context.Context) *Category + func (cq *CategoryQuery) GroupBy(field string, fields ...string) *CategoryGroupBy + func (cq *CategoryQuery) IDs(ctx context.Context) ([]string, error) + func (cq *CategoryQuery) IDsX(ctx context.Context) []string + 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 string, err error) + func (cq *CategoryQuery) OnlyIDX(ctx context.Context) string + func (cq *CategoryQuery) OnlyX(ctx context.Context) *Category + func (cq *CategoryQuery) Order(o ...OrderFunc) *CategoryQuery + func (cq *CategoryQuery) QueryClubs() *ClubQuery + func (cq *CategoryQuery) Select(field string, fields ...string) *CategorySelect + func (cq *CategoryQuery) Unique(unique bool) *CategoryQuery + func (cq *CategoryQuery) Where(ps ...predicate.Category) *CategoryQuery + func (cq *CategoryQuery) WithClubs(opts ...func(*ClubQuery)) *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) AddClubIDs(ids ...int) *CategoryUpdate + func (cu *CategoryUpdate) AddClubs(c ...*Club) *CategoryUpdate + func (cu *CategoryUpdate) ClearClubs() *CategoryUpdate + func (cu *CategoryUpdate) Exec(ctx context.Context) error + func (cu *CategoryUpdate) ExecX(ctx context.Context) + func (cu *CategoryUpdate) Mutation() *CategoryMutation + func (cu *CategoryUpdate) RemoveClubIDs(ids ...int) *CategoryUpdate + func (cu *CategoryUpdate) RemoveClubs(c ...*Club) *CategoryUpdate + func (cu *CategoryUpdate) Save(ctx context.Context) (int, error) + func (cu *CategoryUpdate) SaveX(ctx context.Context) int + func (cu *CategoryUpdate) Where(ps ...predicate.Category) *CategoryUpdate + type CategoryUpdateOne struct + func (cuo *CategoryUpdateOne) AddClubIDs(ids ...int) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) AddClubs(c ...*Club) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) ClearClubs() *CategoryUpdateOne + func (cuo *CategoryUpdateOne) Exec(ctx context.Context) error + func (cuo *CategoryUpdateOne) ExecX(ctx context.Context) + func (cuo *CategoryUpdateOne) Mutation() *CategoryMutation + func (cuo *CategoryUpdateOne) RemoveClubIDs(ids ...int) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) RemoveClubs(c ...*Club) *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 + type Client struct + Category *CategoryClient + Club *ClubClient + LikeClub *LikeClubClient + Schema *migrate.Schema + 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 Club struct + Description string + Edges ClubEdges + Email string + Facebook string + Homepage string + ID int + Images []string + Instagram string + Name string + Phone string + Recommended bool + Summary string + func (c *Club) QueryCategories() *CategoryQuery + func (c *Club) QueryLikes() *LikeClubQuery + func (c *Club) String() string + func (c *Club) Unwrap() *Club + func (c *Club) Update() *ClubUpdateOne + type ClubClient struct + func NewClubClient(c config) *ClubClient + func (c *ClubClient) Create() *ClubCreate + func (c *ClubClient) CreateBulk(builders ...*ClubCreate) *ClubCreateBulk + func (c *ClubClient) Delete() *ClubDelete + func (c *ClubClient) DeleteOne(cl *Club) *ClubDeleteOne + func (c *ClubClient) DeleteOneID(id int) *ClubDeleteOne + func (c *ClubClient) Get(ctx context.Context, id int) (*Club, error) + func (c *ClubClient) GetX(ctx context.Context, id int) *Club + func (c *ClubClient) Hooks() []Hook + func (c *ClubClient) Query() *ClubQuery + func (c *ClubClient) QueryCategories(cl *Club) *CategoryQuery + func (c *ClubClient) QueryLikes(cl *Club) *LikeClubQuery + func (c *ClubClient) Update() *ClubUpdate + func (c *ClubClient) UpdateOne(cl *Club) *ClubUpdateOne + func (c *ClubClient) UpdateOneID(id int) *ClubUpdateOne + func (c *ClubClient) Use(hooks ...Hook) + type ClubCreate struct + func (cc *ClubCreate) AddCategories(c ...*Category) *ClubCreate + func (cc *ClubCreate) AddCategoryIDs(ids ...string) *ClubCreate + func (cc *ClubCreate) AddLikeIDs(ids ...int) *ClubCreate + func (cc *ClubCreate) AddLikes(l ...*LikeClub) *ClubCreate + func (cc *ClubCreate) Mutation() *ClubMutation + func (cc *ClubCreate) Save(ctx context.Context) (*Club, error) + func (cc *ClubCreate) SaveX(ctx context.Context) *Club + func (cc *ClubCreate) SetDescription(s string) *ClubCreate + func (cc *ClubCreate) SetEmail(s string) *ClubCreate + func (cc *ClubCreate) SetFacebook(s string) *ClubCreate + func (cc *ClubCreate) SetHomepage(s string) *ClubCreate + func (cc *ClubCreate) SetImages(s []string) *ClubCreate + func (cc *ClubCreate) SetInstagram(s string) *ClubCreate + func (cc *ClubCreate) SetName(s string) *ClubCreate + func (cc *ClubCreate) SetNillableEmail(s *string) *ClubCreate + func (cc *ClubCreate) SetNillableFacebook(s *string) *ClubCreate + func (cc *ClubCreate) SetNillableHomepage(s *string) *ClubCreate + func (cc *ClubCreate) SetNillableInstagram(s *string) *ClubCreate + func (cc *ClubCreate) SetNillablePhone(s *string) *ClubCreate + func (cc *ClubCreate) SetNillableRecommended(b *bool) *ClubCreate + func (cc *ClubCreate) SetPhone(s string) *ClubCreate + func (cc *ClubCreate) SetRecommended(b bool) *ClubCreate + func (cc *ClubCreate) SetSummary(s string) *ClubCreate + type ClubCreateBulk struct + func (ccb *ClubCreateBulk) Save(ctx context.Context) ([]*Club, error) + func (ccb *ClubCreateBulk) SaveX(ctx context.Context) []*Club + type ClubDelete struct + func (cd *ClubDelete) Exec(ctx context.Context) (int, error) + func (cd *ClubDelete) ExecX(ctx context.Context) int + func (cd *ClubDelete) Where(ps ...predicate.Club) *ClubDelete + type ClubDeleteOne struct + func (cdo *ClubDeleteOne) Exec(ctx context.Context) error + func (cdo *ClubDeleteOne) ExecX(ctx context.Context) + type ClubEdges struct + Categories []*Category + Likes []*LikeClub + func (e ClubEdges) CategoriesOrErr() ([]*Category, error) + func (e ClubEdges) LikesOrErr() ([]*LikeClub, error) + type ClubGroupBy struct + func (cgb *ClubGroupBy) Aggregate(fns ...AggregateFunc) *ClubGroupBy + func (cgb *ClubGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (cgb *ClubGroupBy) BoolX(ctx context.Context) bool + func (cgb *ClubGroupBy) Bools(ctx context.Context) ([]bool, error) + func (cgb *ClubGroupBy) BoolsX(ctx context.Context) []bool + func (cgb *ClubGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (cgb *ClubGroupBy) Float64X(ctx context.Context) float64 + func (cgb *ClubGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (cgb *ClubGroupBy) Float64sX(ctx context.Context) []float64 + func (cgb *ClubGroupBy) Int(ctx context.Context) (_ int, err error) + func (cgb *ClubGroupBy) IntX(ctx context.Context) int + func (cgb *ClubGroupBy) Ints(ctx context.Context) ([]int, error) + func (cgb *ClubGroupBy) IntsX(ctx context.Context) []int + func (cgb *ClubGroupBy) Scan(ctx context.Context, v interface{}) error + func (cgb *ClubGroupBy) ScanX(ctx context.Context, v interface{}) + func (cgb *ClubGroupBy) String(ctx context.Context) (_ string, err error) + func (cgb *ClubGroupBy) StringX(ctx context.Context) string + func (cgb *ClubGroupBy) Strings(ctx context.Context) ([]string, error) + func (cgb *ClubGroupBy) StringsX(ctx context.Context) []string + type ClubMutation struct + func (m *ClubMutation) AddCategoryIDs(ids ...string) + func (m *ClubMutation) AddField(name string, value ent.Value) error + func (m *ClubMutation) AddLikeIDs(ids ...int) + func (m *ClubMutation) AddedEdges() []string + func (m *ClubMutation) AddedField(name string) (ent.Value, bool) + func (m *ClubMutation) AddedFields() []string + func (m *ClubMutation) AddedIDs(name string) []ent.Value + func (m *ClubMutation) CategoriesCleared() bool + func (m *ClubMutation) CategoriesIDs() (ids []string) + func (m *ClubMutation) ClearCategories() + func (m *ClubMutation) ClearEdge(name string) error + func (m *ClubMutation) ClearEmail() + func (m *ClubMutation) ClearFacebook() + func (m *ClubMutation) ClearField(name string) error + func (m *ClubMutation) ClearHomepage() + func (m *ClubMutation) ClearImages() + func (m *ClubMutation) ClearInstagram() + func (m *ClubMutation) ClearLikes() + func (m *ClubMutation) ClearPhone() + func (m *ClubMutation) ClearedEdges() []string + func (m *ClubMutation) ClearedFields() []string + func (m *ClubMutation) Description() (r string, exists bool) + func (m *ClubMutation) EdgeCleared(name string) bool + func (m *ClubMutation) Email() (r string, exists bool) + func (m *ClubMutation) EmailCleared() bool + func (m *ClubMutation) Facebook() (r string, exists bool) + func (m *ClubMutation) FacebookCleared() bool + func (m *ClubMutation) Field(name string) (ent.Value, bool) + func (m *ClubMutation) FieldCleared(name string) bool + func (m *ClubMutation) Fields() []string + func (m *ClubMutation) Homepage() (r string, exists bool) + func (m *ClubMutation) HomepageCleared() bool + func (m *ClubMutation) ID() (id int, exists bool) + func (m *ClubMutation) Images() (r []string, exists bool) + func (m *ClubMutation) ImagesCleared() bool + func (m *ClubMutation) Instagram() (r string, exists bool) + func (m *ClubMutation) InstagramCleared() bool + func (m *ClubMutation) LikesCleared() bool + func (m *ClubMutation) LikesIDs() (ids []int) + func (m *ClubMutation) Name() (r string, exists bool) + func (m *ClubMutation) OldDescription(ctx context.Context) (v string, err error) + func (m *ClubMutation) OldEmail(ctx context.Context) (v string, err error) + func (m *ClubMutation) OldFacebook(ctx context.Context) (v string, err error) + func (m *ClubMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *ClubMutation) OldHomepage(ctx context.Context) (v string, err error) + func (m *ClubMutation) OldImages(ctx context.Context) (v []string, err error) + func (m *ClubMutation) OldInstagram(ctx context.Context) (v string, err error) + func (m *ClubMutation) OldName(ctx context.Context) (v string, err error) + func (m *ClubMutation) OldPhone(ctx context.Context) (v string, err error) + func (m *ClubMutation) OldRecommended(ctx context.Context) (v bool, err error) + func (m *ClubMutation) OldSummary(ctx context.Context) (v string, err error) + func (m *ClubMutation) Op() Op + func (m *ClubMutation) Phone() (r string, exists bool) + func (m *ClubMutation) PhoneCleared() bool + func (m *ClubMutation) Recommended() (r bool, exists bool) + func (m *ClubMutation) RemoveCategoryIDs(ids ...string) + func (m *ClubMutation) RemoveLikeIDs(ids ...int) + func (m *ClubMutation) RemovedCategoriesIDs() (ids []string) + func (m *ClubMutation) RemovedEdges() []string + func (m *ClubMutation) RemovedIDs(name string) []ent.Value + func (m *ClubMutation) RemovedLikesIDs() (ids []int) + func (m *ClubMutation) ResetCategories() + func (m *ClubMutation) ResetDescription() + func (m *ClubMutation) ResetEdge(name string) error + func (m *ClubMutation) ResetEmail() + func (m *ClubMutation) ResetFacebook() + func (m *ClubMutation) ResetField(name string) error + func (m *ClubMutation) ResetHomepage() + func (m *ClubMutation) ResetImages() + func (m *ClubMutation) ResetInstagram() + func (m *ClubMutation) ResetLikes() + func (m *ClubMutation) ResetName() + func (m *ClubMutation) ResetPhone() + func (m *ClubMutation) ResetRecommended() + func (m *ClubMutation) ResetSummary() + func (m *ClubMutation) SetDescription(s string) + func (m *ClubMutation) SetEmail(s string) + func (m *ClubMutation) SetFacebook(s string) + func (m *ClubMutation) SetField(name string, value ent.Value) error + func (m *ClubMutation) SetHomepage(s string) + func (m *ClubMutation) SetImages(s []string) + func (m *ClubMutation) SetInstagram(s string) + func (m *ClubMutation) SetName(s string) + func (m *ClubMutation) SetPhone(s string) + func (m *ClubMutation) SetRecommended(b bool) + func (m *ClubMutation) SetSummary(s string) + func (m *ClubMutation) Summary() (r string, exists bool) + func (m *ClubMutation) Type() string + func (m ClubMutation) Client() *Client + func (m ClubMutation) Tx() (*Tx, error) + type ClubQuery struct + func (cq *ClubQuery) All(ctx context.Context) ([]*Club, error) + func (cq *ClubQuery) AllX(ctx context.Context) []*Club + func (cq *ClubQuery) Clone() *ClubQuery + func (cq *ClubQuery) Count(ctx context.Context) (int, error) + func (cq *ClubQuery) CountX(ctx context.Context) int + func (cq *ClubQuery) Exist(ctx context.Context) (bool, error) + func (cq *ClubQuery) ExistX(ctx context.Context) bool + func (cq *ClubQuery) First(ctx context.Context) (*Club, error) + func (cq *ClubQuery) FirstID(ctx context.Context) (id int, err error) + func (cq *ClubQuery) FirstIDX(ctx context.Context) int + func (cq *ClubQuery) FirstX(ctx context.Context) *Club + func (cq *ClubQuery) GroupBy(field string, fields ...string) *ClubGroupBy + func (cq *ClubQuery) IDs(ctx context.Context) ([]int, error) + func (cq *ClubQuery) IDsX(ctx context.Context) []int + func (cq *ClubQuery) Limit(limit int) *ClubQuery + func (cq *ClubQuery) Offset(offset int) *ClubQuery + func (cq *ClubQuery) Only(ctx context.Context) (*Club, error) + func (cq *ClubQuery) OnlyID(ctx context.Context) (id int, err error) + func (cq *ClubQuery) OnlyIDX(ctx context.Context) int + func (cq *ClubQuery) OnlyX(ctx context.Context) *Club + func (cq *ClubQuery) Order(o ...OrderFunc) *ClubQuery + func (cq *ClubQuery) QueryCategories() *CategoryQuery + func (cq *ClubQuery) QueryLikes() *LikeClubQuery + func (cq *ClubQuery) Select(field string, fields ...string) *ClubSelect + func (cq *ClubQuery) Unique(unique bool) *ClubQuery + func (cq *ClubQuery) Where(ps ...predicate.Club) *ClubQuery + func (cq *ClubQuery) WithCategories(opts ...func(*CategoryQuery)) *ClubQuery + func (cq *ClubQuery) WithLikes(opts ...func(*LikeClubQuery)) *ClubQuery + type ClubSelect struct + func (cs *ClubSelect) Bool(ctx context.Context) (_ bool, err error) + func (cs *ClubSelect) BoolX(ctx context.Context) bool + func (cs *ClubSelect) Bools(ctx context.Context) ([]bool, error) + func (cs *ClubSelect) BoolsX(ctx context.Context) []bool + func (cs *ClubSelect) Float64(ctx context.Context) (_ float64, err error) + func (cs *ClubSelect) Float64X(ctx context.Context) float64 + func (cs *ClubSelect) Float64s(ctx context.Context) ([]float64, error) + func (cs *ClubSelect) Float64sX(ctx context.Context) []float64 + func (cs *ClubSelect) Int(ctx context.Context) (_ int, err error) + func (cs *ClubSelect) IntX(ctx context.Context) int + func (cs *ClubSelect) Ints(ctx context.Context) ([]int, error) + func (cs *ClubSelect) IntsX(ctx context.Context) []int + func (cs *ClubSelect) Scan(ctx context.Context, v interface{}) error + func (cs *ClubSelect) ScanX(ctx context.Context, v interface{}) + func (cs *ClubSelect) String(ctx context.Context) (_ string, err error) + func (cs *ClubSelect) StringX(ctx context.Context) string + func (cs *ClubSelect) Strings(ctx context.Context) ([]string, error) + func (cs *ClubSelect) StringsX(ctx context.Context) []string + type ClubUpdate struct + func (cu *ClubUpdate) AddCategories(c ...*Category) *ClubUpdate + func (cu *ClubUpdate) AddCategoryIDs(ids ...string) *ClubUpdate + func (cu *ClubUpdate) AddLikeIDs(ids ...int) *ClubUpdate + func (cu *ClubUpdate) AddLikes(l ...*LikeClub) *ClubUpdate + func (cu *ClubUpdate) ClearCategories() *ClubUpdate + func (cu *ClubUpdate) ClearEmail() *ClubUpdate + func (cu *ClubUpdate) ClearFacebook() *ClubUpdate + func (cu *ClubUpdate) ClearHomepage() *ClubUpdate + func (cu *ClubUpdate) ClearImages() *ClubUpdate + func (cu *ClubUpdate) ClearInstagram() *ClubUpdate + func (cu *ClubUpdate) ClearLikes() *ClubUpdate + func (cu *ClubUpdate) ClearPhone() *ClubUpdate + func (cu *ClubUpdate) Exec(ctx context.Context) error + func (cu *ClubUpdate) ExecX(ctx context.Context) + func (cu *ClubUpdate) Mutation() *ClubMutation + func (cu *ClubUpdate) RemoveCategories(c ...*Category) *ClubUpdate + func (cu *ClubUpdate) RemoveCategoryIDs(ids ...string) *ClubUpdate + func (cu *ClubUpdate) RemoveLikeIDs(ids ...int) *ClubUpdate + func (cu *ClubUpdate) RemoveLikes(l ...*LikeClub) *ClubUpdate + func (cu *ClubUpdate) Save(ctx context.Context) (int, error) + func (cu *ClubUpdate) SaveX(ctx context.Context) int + func (cu *ClubUpdate) SetDescription(s string) *ClubUpdate + func (cu *ClubUpdate) SetEmail(s string) *ClubUpdate + func (cu *ClubUpdate) SetFacebook(s string) *ClubUpdate + func (cu *ClubUpdate) SetHomepage(s string) *ClubUpdate + func (cu *ClubUpdate) SetImages(s []string) *ClubUpdate + func (cu *ClubUpdate) SetInstagram(s string) *ClubUpdate + func (cu *ClubUpdate) SetName(s string) *ClubUpdate + func (cu *ClubUpdate) SetNillableEmail(s *string) *ClubUpdate + func (cu *ClubUpdate) SetNillableFacebook(s *string) *ClubUpdate + func (cu *ClubUpdate) SetNillableHomepage(s *string) *ClubUpdate + func (cu *ClubUpdate) SetNillableInstagram(s *string) *ClubUpdate + func (cu *ClubUpdate) SetNillablePhone(s *string) *ClubUpdate + func (cu *ClubUpdate) SetNillableRecommended(b *bool) *ClubUpdate + func (cu *ClubUpdate) SetPhone(s string) *ClubUpdate + func (cu *ClubUpdate) SetRecommended(b bool) *ClubUpdate + func (cu *ClubUpdate) SetSummary(s string) *ClubUpdate + func (cu *ClubUpdate) Where(ps ...predicate.Club) *ClubUpdate + type ClubUpdateOne struct + func (cuo *ClubUpdateOne) AddCategories(c ...*Category) *ClubUpdateOne + func (cuo *ClubUpdateOne) AddCategoryIDs(ids ...string) *ClubUpdateOne + func (cuo *ClubUpdateOne) AddLikeIDs(ids ...int) *ClubUpdateOne + func (cuo *ClubUpdateOne) AddLikes(l ...*LikeClub) *ClubUpdateOne + func (cuo *ClubUpdateOne) ClearCategories() *ClubUpdateOne + func (cuo *ClubUpdateOne) ClearEmail() *ClubUpdateOne + func (cuo *ClubUpdateOne) ClearFacebook() *ClubUpdateOne + func (cuo *ClubUpdateOne) ClearHomepage() *ClubUpdateOne + func (cuo *ClubUpdateOne) ClearImages() *ClubUpdateOne + func (cuo *ClubUpdateOne) ClearInstagram() *ClubUpdateOne + func (cuo *ClubUpdateOne) ClearLikes() *ClubUpdateOne + func (cuo *ClubUpdateOne) ClearPhone() *ClubUpdateOne + func (cuo *ClubUpdateOne) Exec(ctx context.Context) error + func (cuo *ClubUpdateOne) ExecX(ctx context.Context) + func (cuo *ClubUpdateOne) Mutation() *ClubMutation + func (cuo *ClubUpdateOne) RemoveCategories(c ...*Category) *ClubUpdateOne + func (cuo *ClubUpdateOne) RemoveCategoryIDs(ids ...string) *ClubUpdateOne + func (cuo *ClubUpdateOne) RemoveLikeIDs(ids ...int) *ClubUpdateOne + func (cuo *ClubUpdateOne) RemoveLikes(l ...*LikeClub) *ClubUpdateOne + func (cuo *ClubUpdateOne) Save(ctx context.Context) (*Club, error) + func (cuo *ClubUpdateOne) SaveX(ctx context.Context) *Club + func (cuo *ClubUpdateOne) Select(field string, fields ...string) *ClubUpdateOne + func (cuo *ClubUpdateOne) SetDescription(s string) *ClubUpdateOne + func (cuo *ClubUpdateOne) SetEmail(s string) *ClubUpdateOne + func (cuo *ClubUpdateOne) SetFacebook(s string) *ClubUpdateOne + func (cuo *ClubUpdateOne) SetHomepage(s string) *ClubUpdateOne + func (cuo *ClubUpdateOne) SetImages(s []string) *ClubUpdateOne + func (cuo *ClubUpdateOne) SetInstagram(s string) *ClubUpdateOne + func (cuo *ClubUpdateOne) SetName(s string) *ClubUpdateOne + func (cuo *ClubUpdateOne) SetNillableEmail(s *string) *ClubUpdateOne + func (cuo *ClubUpdateOne) SetNillableFacebook(s *string) *ClubUpdateOne + func (cuo *ClubUpdateOne) SetNillableHomepage(s *string) *ClubUpdateOne + func (cuo *ClubUpdateOne) SetNillableInstagram(s *string) *ClubUpdateOne + func (cuo *ClubUpdateOne) SetNillablePhone(s *string) *ClubUpdateOne + func (cuo *ClubUpdateOne) SetNillableRecommended(b *bool) *ClubUpdateOne + func (cuo *ClubUpdateOne) SetPhone(s string) *ClubUpdateOne + func (cuo *ClubUpdateOne) SetRecommended(b bool) *ClubUpdateOne + func (cuo *ClubUpdateOne) SetSummary(s string) *ClubUpdateOne + type Clubs []*Club + 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 LikeClub struct + CreatedAt time.Time + Edges LikeClubEdges + ID int + Username string + func (lc *LikeClub) QueryClub() *ClubQuery + func (lc *LikeClub) String() string + func (lc *LikeClub) Unwrap() *LikeClub + func (lc *LikeClub) Update() *LikeClubUpdateOne + type LikeClubClient struct + func NewLikeClubClient(c config) *LikeClubClient + func (c *LikeClubClient) Create() *LikeClubCreate + func (c *LikeClubClient) CreateBulk(builders ...*LikeClubCreate) *LikeClubCreateBulk + func (c *LikeClubClient) Delete() *LikeClubDelete + func (c *LikeClubClient) DeleteOne(lc *LikeClub) *LikeClubDeleteOne + func (c *LikeClubClient) DeleteOneID(id int) *LikeClubDeleteOne + func (c *LikeClubClient) Get(ctx context.Context, id int) (*LikeClub, error) + func (c *LikeClubClient) GetX(ctx context.Context, id int) *LikeClub + func (c *LikeClubClient) Hooks() []Hook + func (c *LikeClubClient) Query() *LikeClubQuery + func (c *LikeClubClient) QueryClub(lc *LikeClub) *ClubQuery + func (c *LikeClubClient) Update() *LikeClubUpdate + func (c *LikeClubClient) UpdateOne(lc *LikeClub) *LikeClubUpdateOne + func (c *LikeClubClient) UpdateOneID(id int) *LikeClubUpdateOne + func (c *LikeClubClient) Use(hooks ...Hook) + type LikeClubCreate struct + func (lcc *LikeClubCreate) Mutation() *LikeClubMutation + func (lcc *LikeClubCreate) Save(ctx context.Context) (*LikeClub, error) + func (lcc *LikeClubCreate) SaveX(ctx context.Context) *LikeClub + func (lcc *LikeClubCreate) SetClub(c *Club) *LikeClubCreate + func (lcc *LikeClubCreate) SetClubID(id int) *LikeClubCreate + func (lcc *LikeClubCreate) SetCreatedAt(t time.Time) *LikeClubCreate + func (lcc *LikeClubCreate) SetNillableClubID(id *int) *LikeClubCreate + func (lcc *LikeClubCreate) SetUsername(s string) *LikeClubCreate + type LikeClubCreateBulk struct + func (lccb *LikeClubCreateBulk) Save(ctx context.Context) ([]*LikeClub, error) + func (lccb *LikeClubCreateBulk) SaveX(ctx context.Context) []*LikeClub + type LikeClubDelete struct + func (lcd *LikeClubDelete) Exec(ctx context.Context) (int, error) + func (lcd *LikeClubDelete) ExecX(ctx context.Context) int + func (lcd *LikeClubDelete) Where(ps ...predicate.LikeClub) *LikeClubDelete + type LikeClubDeleteOne struct + func (lcdo *LikeClubDeleteOne) Exec(ctx context.Context) error + func (lcdo *LikeClubDeleteOne) ExecX(ctx context.Context) + type LikeClubEdges struct + Club *Club + func (e LikeClubEdges) ClubOrErr() (*Club, error) + type LikeClubGroupBy struct + func (lcgb *LikeClubGroupBy) Aggregate(fns ...AggregateFunc) *LikeClubGroupBy + func (lcgb *LikeClubGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (lcgb *LikeClubGroupBy) BoolX(ctx context.Context) bool + func (lcgb *LikeClubGroupBy) Bools(ctx context.Context) ([]bool, error) + func (lcgb *LikeClubGroupBy) BoolsX(ctx context.Context) []bool + func (lcgb *LikeClubGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (lcgb *LikeClubGroupBy) Float64X(ctx context.Context) float64 + func (lcgb *LikeClubGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (lcgb *LikeClubGroupBy) Float64sX(ctx context.Context) []float64 + func (lcgb *LikeClubGroupBy) Int(ctx context.Context) (_ int, err error) + func (lcgb *LikeClubGroupBy) IntX(ctx context.Context) int + func (lcgb *LikeClubGroupBy) Ints(ctx context.Context) ([]int, error) + func (lcgb *LikeClubGroupBy) IntsX(ctx context.Context) []int + func (lcgb *LikeClubGroupBy) Scan(ctx context.Context, v interface{}) error + func (lcgb *LikeClubGroupBy) ScanX(ctx context.Context, v interface{}) + func (lcgb *LikeClubGroupBy) String(ctx context.Context) (_ string, err error) + func (lcgb *LikeClubGroupBy) StringX(ctx context.Context) string + func (lcgb *LikeClubGroupBy) Strings(ctx context.Context) ([]string, error) + func (lcgb *LikeClubGroupBy) StringsX(ctx context.Context) []string + type LikeClubMutation struct + func (m *LikeClubMutation) AddField(name string, value ent.Value) error + func (m *LikeClubMutation) AddedEdges() []string + func (m *LikeClubMutation) AddedField(name string) (ent.Value, bool) + func (m *LikeClubMutation) AddedFields() []string + func (m *LikeClubMutation) AddedIDs(name string) []ent.Value + func (m *LikeClubMutation) ClearClub() + func (m *LikeClubMutation) ClearEdge(name string) error + func (m *LikeClubMutation) ClearField(name string) error + func (m *LikeClubMutation) ClearedEdges() []string + func (m *LikeClubMutation) ClearedFields() []string + func (m *LikeClubMutation) ClubCleared() bool + func (m *LikeClubMutation) ClubID() (id int, exists bool) + func (m *LikeClubMutation) ClubIDs() (ids []int) + func (m *LikeClubMutation) CreatedAt() (r time.Time, exists bool) + func (m *LikeClubMutation) EdgeCleared(name string) bool + func (m *LikeClubMutation) Field(name string) (ent.Value, bool) + func (m *LikeClubMutation) FieldCleared(name string) bool + func (m *LikeClubMutation) Fields() []string + func (m *LikeClubMutation) ID() (id int, exists bool) + func (m *LikeClubMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) + func (m *LikeClubMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *LikeClubMutation) OldUsername(ctx context.Context) (v string, err error) + func (m *LikeClubMutation) Op() Op + func (m *LikeClubMutation) RemovedEdges() []string + func (m *LikeClubMutation) RemovedIDs(name string) []ent.Value + func (m *LikeClubMutation) ResetClub() + func (m *LikeClubMutation) ResetCreatedAt() + func (m *LikeClubMutation) ResetEdge(name string) error + func (m *LikeClubMutation) ResetField(name string) error + func (m *LikeClubMutation) ResetUsername() + func (m *LikeClubMutation) SetClubID(id int) + func (m *LikeClubMutation) SetCreatedAt(t time.Time) + func (m *LikeClubMutation) SetField(name string, value ent.Value) error + func (m *LikeClubMutation) SetUsername(s string) + func (m *LikeClubMutation) Type() string + func (m *LikeClubMutation) Username() (r string, exists bool) + func (m LikeClubMutation) Client() *Client + func (m LikeClubMutation) Tx() (*Tx, error) + type LikeClubQuery struct + func (lcq *LikeClubQuery) All(ctx context.Context) ([]*LikeClub, error) + func (lcq *LikeClubQuery) AllX(ctx context.Context) []*LikeClub + func (lcq *LikeClubQuery) Clone() *LikeClubQuery + func (lcq *LikeClubQuery) Count(ctx context.Context) (int, error) + func (lcq *LikeClubQuery) CountX(ctx context.Context) int + func (lcq *LikeClubQuery) Exist(ctx context.Context) (bool, error) + func (lcq *LikeClubQuery) ExistX(ctx context.Context) bool + func (lcq *LikeClubQuery) First(ctx context.Context) (*LikeClub, error) + func (lcq *LikeClubQuery) FirstID(ctx context.Context) (id int, err error) + func (lcq *LikeClubQuery) FirstIDX(ctx context.Context) int + func (lcq *LikeClubQuery) FirstX(ctx context.Context) *LikeClub + func (lcq *LikeClubQuery) GroupBy(field string, fields ...string) *LikeClubGroupBy + func (lcq *LikeClubQuery) IDs(ctx context.Context) ([]int, error) + func (lcq *LikeClubQuery) IDsX(ctx context.Context) []int + func (lcq *LikeClubQuery) Limit(limit int) *LikeClubQuery + func (lcq *LikeClubQuery) Offset(offset int) *LikeClubQuery + func (lcq *LikeClubQuery) Only(ctx context.Context) (*LikeClub, error) + func (lcq *LikeClubQuery) OnlyID(ctx context.Context) (id int, err error) + func (lcq *LikeClubQuery) OnlyIDX(ctx context.Context) int + func (lcq *LikeClubQuery) OnlyX(ctx context.Context) *LikeClub + func (lcq *LikeClubQuery) Order(o ...OrderFunc) *LikeClubQuery + func (lcq *LikeClubQuery) QueryClub() *ClubQuery + func (lcq *LikeClubQuery) Select(field string, fields ...string) *LikeClubSelect + func (lcq *LikeClubQuery) Unique(unique bool) *LikeClubQuery + func (lcq *LikeClubQuery) Where(ps ...predicate.LikeClub) *LikeClubQuery + func (lcq *LikeClubQuery) WithClub(opts ...func(*ClubQuery)) *LikeClubQuery + type LikeClubSelect struct + func (lcs *LikeClubSelect) Bool(ctx context.Context) (_ bool, err error) + func (lcs *LikeClubSelect) BoolX(ctx context.Context) bool + func (lcs *LikeClubSelect) Bools(ctx context.Context) ([]bool, error) + func (lcs *LikeClubSelect) BoolsX(ctx context.Context) []bool + func (lcs *LikeClubSelect) Float64(ctx context.Context) (_ float64, err error) + func (lcs *LikeClubSelect) Float64X(ctx context.Context) float64 + func (lcs *LikeClubSelect) Float64s(ctx context.Context) ([]float64, error) + func (lcs *LikeClubSelect) Float64sX(ctx context.Context) []float64 + func (lcs *LikeClubSelect) Int(ctx context.Context) (_ int, err error) + func (lcs *LikeClubSelect) IntX(ctx context.Context) int + func (lcs *LikeClubSelect) Ints(ctx context.Context) ([]int, error) + func (lcs *LikeClubSelect) IntsX(ctx context.Context) []int + func (lcs *LikeClubSelect) Scan(ctx context.Context, v interface{}) error + func (lcs *LikeClubSelect) ScanX(ctx context.Context, v interface{}) + func (lcs *LikeClubSelect) String(ctx context.Context) (_ string, err error) + func (lcs *LikeClubSelect) StringX(ctx context.Context) string + func (lcs *LikeClubSelect) Strings(ctx context.Context) ([]string, error) + func (lcs *LikeClubSelect) StringsX(ctx context.Context) []string + type LikeClubUpdate struct + func (lcu *LikeClubUpdate) ClearClub() *LikeClubUpdate + func (lcu *LikeClubUpdate) Exec(ctx context.Context) error + func (lcu *LikeClubUpdate) ExecX(ctx context.Context) + func (lcu *LikeClubUpdate) Mutation() *LikeClubMutation + func (lcu *LikeClubUpdate) Save(ctx context.Context) (int, error) + func (lcu *LikeClubUpdate) SaveX(ctx context.Context) int + func (lcu *LikeClubUpdate) SetClub(c *Club) *LikeClubUpdate + func (lcu *LikeClubUpdate) SetClubID(id int) *LikeClubUpdate + func (lcu *LikeClubUpdate) SetCreatedAt(t time.Time) *LikeClubUpdate + func (lcu *LikeClubUpdate) SetNillableClubID(id *int) *LikeClubUpdate + func (lcu *LikeClubUpdate) SetUsername(s string) *LikeClubUpdate + func (lcu *LikeClubUpdate) Where(ps ...predicate.LikeClub) *LikeClubUpdate + type LikeClubUpdateOne struct + func (lcuo *LikeClubUpdateOne) ClearClub() *LikeClubUpdateOne + func (lcuo *LikeClubUpdateOne) Exec(ctx context.Context) error + func (lcuo *LikeClubUpdateOne) ExecX(ctx context.Context) + func (lcuo *LikeClubUpdateOne) Mutation() *LikeClubMutation + func (lcuo *LikeClubUpdateOne) Save(ctx context.Context) (*LikeClub, error) + func (lcuo *LikeClubUpdateOne) SaveX(ctx context.Context) *LikeClub + func (lcuo *LikeClubUpdateOne) Select(field string, fields ...string) *LikeClubUpdateOne + func (lcuo *LikeClubUpdateOne) SetClub(c *Club) *LikeClubUpdateOne + func (lcuo *LikeClubUpdateOne) SetClubID(id int) *LikeClubUpdateOne + func (lcuo *LikeClubUpdateOne) SetCreatedAt(t time.Time) *LikeClubUpdateOne + func (lcuo *LikeClubUpdateOne) SetNillableClubID(id *int) *LikeClubUpdateOne + func (lcuo *LikeClubUpdateOne) SetUsername(s string) *LikeClubUpdateOne + type LikeClubs []*LikeClub + 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 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 Tx struct + Category *CategoryClient + Club *ClubClient + LikeClub *LikeClubClient + 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 ValidationError struct + Name string + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Value = ent.Value