Versions in this module Expand all Collapse all v0 v0.0.4 Nov 17, 2021 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeArticle + const TypeBoard + const TypeComment + const TypeKhumuUser + const TypeLikeComment + const TypeStudyArticle + 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 Article struct + CreatedAt time.Time + Edges ArticleEdges + ID int + Images *[]string + Title string + func (a *Article) QueryAuthor() *KhumuUserQuery + func (a *Article) QueryComments() *CommentQuery + func (a *Article) String() string + func (a *Article) Unwrap() *Article + func (a *Article) Update() *ArticleUpdateOne + type ArticleClient struct + func NewArticleClient(c config) *ArticleClient + func (c *ArticleClient) Create() *ArticleCreate + func (c *ArticleClient) CreateBulk(builders ...*ArticleCreate) *ArticleCreateBulk + func (c *ArticleClient) Delete() *ArticleDelete + func (c *ArticleClient) DeleteOne(a *Article) *ArticleDeleteOne + func (c *ArticleClient) DeleteOneID(id int) *ArticleDeleteOne + func (c *ArticleClient) Get(ctx context.Context, id int) (*Article, error) + func (c *ArticleClient) GetX(ctx context.Context, id int) *Article + func (c *ArticleClient) Hooks() []Hook + func (c *ArticleClient) Query() *ArticleQuery + func (c *ArticleClient) QueryAuthor(a *Article) *KhumuUserQuery + func (c *ArticleClient) QueryComments(a *Article) *CommentQuery + func (c *ArticleClient) Update() *ArticleUpdate + func (c *ArticleClient) UpdateOne(a *Article) *ArticleUpdateOne + func (c *ArticleClient) UpdateOneID(id int) *ArticleUpdateOne + func (c *ArticleClient) Use(hooks ...Hook) + type ArticleCreate struct + func (ac *ArticleCreate) AddCommentIDs(ids ...int) *ArticleCreate + func (ac *ArticleCreate) AddComments(c ...*Comment) *ArticleCreate + func (ac *ArticleCreate) Mutation() *ArticleMutation + func (ac *ArticleCreate) Save(ctx context.Context) (*Article, error) + func (ac *ArticleCreate) SaveX(ctx context.Context) *Article + func (ac *ArticleCreate) SetAuthor(k *KhumuUser) *ArticleCreate + func (ac *ArticleCreate) SetAuthorID(id string) *ArticleCreate + func (ac *ArticleCreate) SetCreatedAt(t time.Time) *ArticleCreate + func (ac *ArticleCreate) SetID(i int) *ArticleCreate + func (ac *ArticleCreate) SetImages(s *[]string) *ArticleCreate + func (ac *ArticleCreate) SetNillableAuthorID(id *string) *ArticleCreate + func (ac *ArticleCreate) SetNillableCreatedAt(t *time.Time) *ArticleCreate + func (ac *ArticleCreate) SetNillableTitle(s *string) *ArticleCreate + func (ac *ArticleCreate) SetTitle(s string) *ArticleCreate + type ArticleCreateBulk struct + func (acb *ArticleCreateBulk) Save(ctx context.Context) ([]*Article, error) + func (acb *ArticleCreateBulk) SaveX(ctx context.Context) []*Article + type ArticleDelete struct + func (ad *ArticleDelete) Exec(ctx context.Context) (int, error) + func (ad *ArticleDelete) ExecX(ctx context.Context) int + func (ad *ArticleDelete) Where(ps ...predicate.Article) *ArticleDelete + type ArticleDeleteOne struct + func (ado *ArticleDeleteOne) Exec(ctx context.Context) error + func (ado *ArticleDeleteOne) ExecX(ctx context.Context) + type ArticleEdges struct + Author *KhumuUser + Comments []*Comment + func (e ArticleEdges) AuthorOrErr() (*KhumuUser, error) + func (e ArticleEdges) CommentsOrErr() ([]*Comment, error) + type ArticleGroupBy struct + func (agb *ArticleGroupBy) Aggregate(fns ...AggregateFunc) *ArticleGroupBy + func (agb *ArticleGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (agb *ArticleGroupBy) BoolX(ctx context.Context) bool + func (agb *ArticleGroupBy) Bools(ctx context.Context) ([]bool, error) + func (agb *ArticleGroupBy) BoolsX(ctx context.Context) []bool + func (agb *ArticleGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (agb *ArticleGroupBy) Float64X(ctx context.Context) float64 + func (agb *ArticleGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (agb *ArticleGroupBy) Float64sX(ctx context.Context) []float64 + func (agb *ArticleGroupBy) Int(ctx context.Context) (_ int, err error) + func (agb *ArticleGroupBy) IntX(ctx context.Context) int + func (agb *ArticleGroupBy) Ints(ctx context.Context) ([]int, error) + func (agb *ArticleGroupBy) IntsX(ctx context.Context) []int + func (agb *ArticleGroupBy) Scan(ctx context.Context, v interface{}) error + func (agb *ArticleGroupBy) ScanX(ctx context.Context, v interface{}) + func (agb *ArticleGroupBy) String(ctx context.Context) (_ string, err error) + func (agb *ArticleGroupBy) StringX(ctx context.Context) string + func (agb *ArticleGroupBy) Strings(ctx context.Context) ([]string, error) + func (agb *ArticleGroupBy) StringsX(ctx context.Context) []string + type ArticleMutation struct + func (m *ArticleMutation) AddCommentIDs(ids ...int) + func (m *ArticleMutation) AddField(name string, value ent.Value) error + func (m *ArticleMutation) AddedEdges() []string + func (m *ArticleMutation) AddedField(name string) (ent.Value, bool) + func (m *ArticleMutation) AddedFields() []string + func (m *ArticleMutation) AddedIDs(name string) []ent.Value + func (m *ArticleMutation) AuthorCleared() bool + func (m *ArticleMutation) AuthorID() (id string, exists bool) + func (m *ArticleMutation) AuthorIDs() (ids []string) + func (m *ArticleMutation) ClearAuthor() + func (m *ArticleMutation) ClearComments() + func (m *ArticleMutation) ClearEdge(name string) error + func (m *ArticleMutation) ClearField(name string) error + func (m *ArticleMutation) ClearImages() + func (m *ArticleMutation) ClearTitle() + func (m *ArticleMutation) ClearedEdges() []string + func (m *ArticleMutation) ClearedFields() []string + func (m *ArticleMutation) CommentsCleared() bool + func (m *ArticleMutation) CommentsIDs() (ids []int) + func (m *ArticleMutation) CreatedAt() (r time.Time, exists bool) + func (m *ArticleMutation) EdgeCleared(name string) bool + func (m *ArticleMutation) Field(name string) (ent.Value, bool) + func (m *ArticleMutation) FieldCleared(name string) bool + func (m *ArticleMutation) Fields() []string + func (m *ArticleMutation) ID() (id int, exists bool) + func (m *ArticleMutation) Images() (r *[]string, exists bool) + func (m *ArticleMutation) ImagesCleared() bool + func (m *ArticleMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) + func (m *ArticleMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *ArticleMutation) OldImages(ctx context.Context) (v *[]string, err error) + func (m *ArticleMutation) OldTitle(ctx context.Context) (v string, err error) + func (m *ArticleMutation) Op() Op + func (m *ArticleMutation) RemoveCommentIDs(ids ...int) + func (m *ArticleMutation) RemovedCommentsIDs() (ids []int) + func (m *ArticleMutation) RemovedEdges() []string + func (m *ArticleMutation) RemovedIDs(name string) []ent.Value + func (m *ArticleMutation) ResetAuthor() + func (m *ArticleMutation) ResetComments() + func (m *ArticleMutation) ResetCreatedAt() + func (m *ArticleMutation) ResetEdge(name string) error + func (m *ArticleMutation) ResetField(name string) error + func (m *ArticleMutation) ResetImages() + func (m *ArticleMutation) ResetTitle() + func (m *ArticleMutation) SetAuthorID(id string) + func (m *ArticleMutation) SetCreatedAt(t time.Time) + func (m *ArticleMutation) SetField(name string, value ent.Value) error + func (m *ArticleMutation) SetID(id int) + func (m *ArticleMutation) SetImages(s *[]string) + func (m *ArticleMutation) SetTitle(s string) + func (m *ArticleMutation) Title() (r string, exists bool) + func (m *ArticleMutation) TitleCleared() bool + func (m *ArticleMutation) Type() string + func (m ArticleMutation) Client() *Client + func (m ArticleMutation) Tx() (*Tx, error) + type ArticleQuery struct + func (aq *ArticleQuery) All(ctx context.Context) ([]*Article, error) + func (aq *ArticleQuery) AllX(ctx context.Context) []*Article + func (aq *ArticleQuery) Clone() *ArticleQuery + func (aq *ArticleQuery) Count(ctx context.Context) (int, error) + func (aq *ArticleQuery) CountX(ctx context.Context) int + func (aq *ArticleQuery) Exist(ctx context.Context) (bool, error) + func (aq *ArticleQuery) ExistX(ctx context.Context) bool + func (aq *ArticleQuery) First(ctx context.Context) (*Article, error) + func (aq *ArticleQuery) FirstID(ctx context.Context) (id int, err error) + func (aq *ArticleQuery) FirstIDX(ctx context.Context) int + func (aq *ArticleQuery) FirstX(ctx context.Context) *Article + func (aq *ArticleQuery) GroupBy(field string, fields ...string) *ArticleGroupBy + func (aq *ArticleQuery) IDs(ctx context.Context) ([]int, error) + func (aq *ArticleQuery) IDsX(ctx context.Context) []int + func (aq *ArticleQuery) Limit(limit int) *ArticleQuery + func (aq *ArticleQuery) Offset(offset int) *ArticleQuery + func (aq *ArticleQuery) Only(ctx context.Context) (*Article, error) + func (aq *ArticleQuery) OnlyID(ctx context.Context) (id int, err error) + func (aq *ArticleQuery) OnlyIDX(ctx context.Context) int + func (aq *ArticleQuery) OnlyX(ctx context.Context) *Article + func (aq *ArticleQuery) Order(o ...OrderFunc) *ArticleQuery + func (aq *ArticleQuery) QueryAuthor() *KhumuUserQuery + func (aq *ArticleQuery) QueryComments() *CommentQuery + func (aq *ArticleQuery) Select(field string, fields ...string) *ArticleSelect + func (aq *ArticleQuery) Unique(unique bool) *ArticleQuery + func (aq *ArticleQuery) Where(ps ...predicate.Article) *ArticleQuery + func (aq *ArticleQuery) WithAuthor(opts ...func(*KhumuUserQuery)) *ArticleQuery + func (aq *ArticleQuery) WithComments(opts ...func(*CommentQuery)) *ArticleQuery + type ArticleSelect struct + func (as *ArticleSelect) Bool(ctx context.Context) (_ bool, err error) + func (as *ArticleSelect) BoolX(ctx context.Context) bool + func (as *ArticleSelect) Bools(ctx context.Context) ([]bool, error) + func (as *ArticleSelect) BoolsX(ctx context.Context) []bool + func (as *ArticleSelect) Float64(ctx context.Context) (_ float64, err error) + func (as *ArticleSelect) Float64X(ctx context.Context) float64 + func (as *ArticleSelect) Float64s(ctx context.Context) ([]float64, error) + func (as *ArticleSelect) Float64sX(ctx context.Context) []float64 + func (as *ArticleSelect) Int(ctx context.Context) (_ int, err error) + func (as *ArticleSelect) IntX(ctx context.Context) int + func (as *ArticleSelect) Ints(ctx context.Context) ([]int, error) + func (as *ArticleSelect) IntsX(ctx context.Context) []int + func (as *ArticleSelect) Scan(ctx context.Context, v interface{}) error + func (as *ArticleSelect) ScanX(ctx context.Context, v interface{}) + func (as *ArticleSelect) String(ctx context.Context) (_ string, err error) + func (as *ArticleSelect) StringX(ctx context.Context) string + func (as *ArticleSelect) Strings(ctx context.Context) ([]string, error) + func (as *ArticleSelect) StringsX(ctx context.Context) []string + type ArticleUpdate struct + func (au *ArticleUpdate) AddCommentIDs(ids ...int) *ArticleUpdate + func (au *ArticleUpdate) AddComments(c ...*Comment) *ArticleUpdate + func (au *ArticleUpdate) ClearAuthor() *ArticleUpdate + func (au *ArticleUpdate) ClearComments() *ArticleUpdate + func (au *ArticleUpdate) ClearImages() *ArticleUpdate + func (au *ArticleUpdate) ClearTitle() *ArticleUpdate + func (au *ArticleUpdate) Exec(ctx context.Context) error + func (au *ArticleUpdate) ExecX(ctx context.Context) + func (au *ArticleUpdate) Mutation() *ArticleMutation + func (au *ArticleUpdate) RemoveCommentIDs(ids ...int) *ArticleUpdate + func (au *ArticleUpdate) RemoveComments(c ...*Comment) *ArticleUpdate + func (au *ArticleUpdate) Save(ctx context.Context) (int, error) + func (au *ArticleUpdate) SaveX(ctx context.Context) int + func (au *ArticleUpdate) SetAuthor(k *KhumuUser) *ArticleUpdate + func (au *ArticleUpdate) SetAuthorID(id string) *ArticleUpdate + func (au *ArticleUpdate) SetCreatedAt(t time.Time) *ArticleUpdate + func (au *ArticleUpdate) SetImages(s *[]string) *ArticleUpdate + func (au *ArticleUpdate) SetNillableAuthorID(id *string) *ArticleUpdate + func (au *ArticleUpdate) SetNillableCreatedAt(t *time.Time) *ArticleUpdate + func (au *ArticleUpdate) SetNillableTitle(s *string) *ArticleUpdate + func (au *ArticleUpdate) SetTitle(s string) *ArticleUpdate + func (au *ArticleUpdate) Where(ps ...predicate.Article) *ArticleUpdate + type ArticleUpdateOne struct + func (auo *ArticleUpdateOne) AddCommentIDs(ids ...int) *ArticleUpdateOne + func (auo *ArticleUpdateOne) AddComments(c ...*Comment) *ArticleUpdateOne + func (auo *ArticleUpdateOne) ClearAuthor() *ArticleUpdateOne + func (auo *ArticleUpdateOne) ClearComments() *ArticleUpdateOne + func (auo *ArticleUpdateOne) ClearImages() *ArticleUpdateOne + func (auo *ArticleUpdateOne) ClearTitle() *ArticleUpdateOne + func (auo *ArticleUpdateOne) Exec(ctx context.Context) error + func (auo *ArticleUpdateOne) ExecX(ctx context.Context) + func (auo *ArticleUpdateOne) Mutation() *ArticleMutation + func (auo *ArticleUpdateOne) RemoveCommentIDs(ids ...int) *ArticleUpdateOne + func (auo *ArticleUpdateOne) RemoveComments(c ...*Comment) *ArticleUpdateOne + func (auo *ArticleUpdateOne) Save(ctx context.Context) (*Article, error) + func (auo *ArticleUpdateOne) SaveX(ctx context.Context) *Article + func (auo *ArticleUpdateOne) Select(field string, fields ...string) *ArticleUpdateOne + func (auo *ArticleUpdateOne) SetAuthor(k *KhumuUser) *ArticleUpdateOne + func (auo *ArticleUpdateOne) SetAuthorID(id string) *ArticleUpdateOne + func (auo *ArticleUpdateOne) SetCreatedAt(t time.Time) *ArticleUpdateOne + func (auo *ArticleUpdateOne) SetImages(s *[]string) *ArticleUpdateOne + func (auo *ArticleUpdateOne) SetNillableAuthorID(id *string) *ArticleUpdateOne + func (auo *ArticleUpdateOne) SetNillableCreatedAt(t *time.Time) *ArticleUpdateOne + func (auo *ArticleUpdateOne) SetNillableTitle(s *string) *ArticleUpdateOne + func (auo *ArticleUpdateOne) SetTitle(s string) *ArticleUpdateOne + type Articles []*Article + type Board struct + ID int + func (b *Board) String() string + func (b *Board) Unwrap() *Board + func (b *Board) Update() *BoardUpdateOne + type BoardClient struct + func NewBoardClient(c config) *BoardClient + func (c *BoardClient) Create() *BoardCreate + func (c *BoardClient) CreateBulk(builders ...*BoardCreate) *BoardCreateBulk + func (c *BoardClient) Delete() *BoardDelete + func (c *BoardClient) DeleteOne(b *Board) *BoardDeleteOne + func (c *BoardClient) DeleteOneID(id int) *BoardDeleteOne + func (c *BoardClient) Get(ctx context.Context, id int) (*Board, error) + func (c *BoardClient) GetX(ctx context.Context, id int) *Board + func (c *BoardClient) Hooks() []Hook + func (c *BoardClient) Query() *BoardQuery + func (c *BoardClient) Update() *BoardUpdate + func (c *BoardClient) UpdateOne(b *Board) *BoardUpdateOne + func (c *BoardClient) UpdateOneID(id int) *BoardUpdateOne + func (c *BoardClient) Use(hooks ...Hook) + type BoardCreate struct + func (bc *BoardCreate) Mutation() *BoardMutation + func (bc *BoardCreate) Save(ctx context.Context) (*Board, error) + func (bc *BoardCreate) SaveX(ctx context.Context) *Board + type BoardCreateBulk struct + func (bcb *BoardCreateBulk) Save(ctx context.Context) ([]*Board, error) + func (bcb *BoardCreateBulk) SaveX(ctx context.Context) []*Board + type BoardDelete struct + func (bd *BoardDelete) Exec(ctx context.Context) (int, error) + func (bd *BoardDelete) ExecX(ctx context.Context) int + func (bd *BoardDelete) Where(ps ...predicate.Board) *BoardDelete + type BoardDeleteOne struct + func (bdo *BoardDeleteOne) Exec(ctx context.Context) error + func (bdo *BoardDeleteOne) ExecX(ctx context.Context) + type BoardGroupBy struct + func (bgb *BoardGroupBy) Aggregate(fns ...AggregateFunc) *BoardGroupBy + func (bgb *BoardGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (bgb *BoardGroupBy) BoolX(ctx context.Context) bool + func (bgb *BoardGroupBy) Bools(ctx context.Context) ([]bool, error) + func (bgb *BoardGroupBy) BoolsX(ctx context.Context) []bool + func (bgb *BoardGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (bgb *BoardGroupBy) Float64X(ctx context.Context) float64 + func (bgb *BoardGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (bgb *BoardGroupBy) Float64sX(ctx context.Context) []float64 + func (bgb *BoardGroupBy) Int(ctx context.Context) (_ int, err error) + func (bgb *BoardGroupBy) IntX(ctx context.Context) int + func (bgb *BoardGroupBy) Ints(ctx context.Context) ([]int, error) + func (bgb *BoardGroupBy) IntsX(ctx context.Context) []int + func (bgb *BoardGroupBy) Scan(ctx context.Context, v interface{}) error + func (bgb *BoardGroupBy) ScanX(ctx context.Context, v interface{}) + func (bgb *BoardGroupBy) String(ctx context.Context) (_ string, err error) + func (bgb *BoardGroupBy) StringX(ctx context.Context) string + func (bgb *BoardGroupBy) Strings(ctx context.Context) ([]string, error) + func (bgb *BoardGroupBy) StringsX(ctx context.Context) []string + type BoardMutation struct + func (m *BoardMutation) AddField(name string, value ent.Value) error + func (m *BoardMutation) AddedEdges() []string + func (m *BoardMutation) AddedField(name string) (ent.Value, bool) + func (m *BoardMutation) AddedFields() []string + func (m *BoardMutation) AddedIDs(name string) []ent.Value + func (m *BoardMutation) ClearEdge(name string) error + func (m *BoardMutation) ClearField(name string) error + func (m *BoardMutation) ClearedEdges() []string + func (m *BoardMutation) ClearedFields() []string + func (m *BoardMutation) EdgeCleared(name string) bool + func (m *BoardMutation) Field(name string) (ent.Value, bool) + func (m *BoardMutation) FieldCleared(name string) bool + func (m *BoardMutation) Fields() []string + func (m *BoardMutation) ID() (id int, exists bool) + func (m *BoardMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *BoardMutation) Op() Op + func (m *BoardMutation) RemovedEdges() []string + func (m *BoardMutation) RemovedIDs(name string) []ent.Value + func (m *BoardMutation) ResetEdge(name string) error + func (m *BoardMutation) ResetField(name string) error + func (m *BoardMutation) SetField(name string, value ent.Value) error + func (m *BoardMutation) Type() string + func (m BoardMutation) Client() *Client + func (m BoardMutation) Tx() (*Tx, error) + type BoardQuery struct + func (bq *BoardQuery) All(ctx context.Context) ([]*Board, error) + func (bq *BoardQuery) AllX(ctx context.Context) []*Board + func (bq *BoardQuery) Clone() *BoardQuery + func (bq *BoardQuery) Count(ctx context.Context) (int, error) + func (bq *BoardQuery) CountX(ctx context.Context) int + func (bq *BoardQuery) Exist(ctx context.Context) (bool, error) + func (bq *BoardQuery) ExistX(ctx context.Context) bool + func (bq *BoardQuery) First(ctx context.Context) (*Board, error) + func (bq *BoardQuery) FirstID(ctx context.Context) (id int, err error) + func (bq *BoardQuery) FirstIDX(ctx context.Context) int + func (bq *BoardQuery) FirstX(ctx context.Context) *Board + func (bq *BoardQuery) GroupBy(field string, fields ...string) *BoardGroupBy + func (bq *BoardQuery) IDs(ctx context.Context) ([]int, error) + func (bq *BoardQuery) IDsX(ctx context.Context) []int + func (bq *BoardQuery) Limit(limit int) *BoardQuery + func (bq *BoardQuery) Offset(offset int) *BoardQuery + func (bq *BoardQuery) Only(ctx context.Context) (*Board, error) + func (bq *BoardQuery) OnlyID(ctx context.Context) (id int, err error) + func (bq *BoardQuery) OnlyIDX(ctx context.Context) int + func (bq *BoardQuery) OnlyX(ctx context.Context) *Board + func (bq *BoardQuery) Order(o ...OrderFunc) *BoardQuery + func (bq *BoardQuery) Select(field string, fields ...string) *BoardSelect + func (bq *BoardQuery) Unique(unique bool) *BoardQuery + func (bq *BoardQuery) Where(ps ...predicate.Board) *BoardQuery + type BoardSelect struct + func (bs *BoardSelect) Bool(ctx context.Context) (_ bool, err error) + func (bs *BoardSelect) BoolX(ctx context.Context) bool + func (bs *BoardSelect) Bools(ctx context.Context) ([]bool, error) + func (bs *BoardSelect) BoolsX(ctx context.Context) []bool + func (bs *BoardSelect) Float64(ctx context.Context) (_ float64, err error) + func (bs *BoardSelect) Float64X(ctx context.Context) float64 + func (bs *BoardSelect) Float64s(ctx context.Context) ([]float64, error) + func (bs *BoardSelect) Float64sX(ctx context.Context) []float64 + func (bs *BoardSelect) Int(ctx context.Context) (_ int, err error) + func (bs *BoardSelect) IntX(ctx context.Context) int + func (bs *BoardSelect) Ints(ctx context.Context) ([]int, error) + func (bs *BoardSelect) IntsX(ctx context.Context) []int + func (bs *BoardSelect) Scan(ctx context.Context, v interface{}) error + func (bs *BoardSelect) ScanX(ctx context.Context, v interface{}) + func (bs *BoardSelect) String(ctx context.Context) (_ string, err error) + func (bs *BoardSelect) StringX(ctx context.Context) string + func (bs *BoardSelect) Strings(ctx context.Context) ([]string, error) + func (bs *BoardSelect) StringsX(ctx context.Context) []string + type BoardUpdate struct + func (bu *BoardUpdate) Exec(ctx context.Context) error + func (bu *BoardUpdate) ExecX(ctx context.Context) + func (bu *BoardUpdate) Mutation() *BoardMutation + func (bu *BoardUpdate) Save(ctx context.Context) (int, error) + func (bu *BoardUpdate) SaveX(ctx context.Context) int + func (bu *BoardUpdate) Where(ps ...predicate.Board) *BoardUpdate + type BoardUpdateOne struct + func (buo *BoardUpdateOne) Exec(ctx context.Context) error + func (buo *BoardUpdateOne) ExecX(ctx context.Context) + func (buo *BoardUpdateOne) Mutation() *BoardMutation + func (buo *BoardUpdateOne) Save(ctx context.Context) (*Board, error) + func (buo *BoardUpdateOne) SaveX(ctx context.Context) *Board + func (buo *BoardUpdateOne) Select(field string, fields ...string) *BoardUpdateOne + type Boards []*Board + type Client struct + Article *ArticleClient + Board *BoardClient + Comment *CommentClient + KhumuUser *KhumuUserClient + LikeComment *LikeCommentClient + Schema *migrate.Schema + StudyArticle *StudyArticleClient + 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 Comment struct + Content string + CreatedAt time.Time + Edges CommentEdges + ID int + IsWrittenByArticleAuthor bool + Kind string + State string + func (c *Comment) QueryArticle() *ArticleQuery + func (c *Comment) QueryAuthor() *KhumuUserQuery + func (c *Comment) QueryChildren() *CommentQuery + func (c *Comment) QueryLike() *LikeCommentQuery + func (c *Comment) QueryParent() *CommentQuery + func (c *Comment) QueryStudyArticle() *StudyArticleQuery + func (c *Comment) String() string + func (c *Comment) Unwrap() *Comment + func (c *Comment) Update() *CommentUpdateOne + type CommentClient struct + func NewCommentClient(c config) *CommentClient + func (c *CommentClient) Create() *CommentCreate + func (c *CommentClient) CreateBulk(builders ...*CommentCreate) *CommentCreateBulk + func (c *CommentClient) Delete() *CommentDelete + func (c *CommentClient) DeleteOne(co *Comment) *CommentDeleteOne + func (c *CommentClient) DeleteOneID(id int) *CommentDeleteOne + func (c *CommentClient) Get(ctx context.Context, id int) (*Comment, error) + func (c *CommentClient) GetX(ctx context.Context, id int) *Comment + func (c *CommentClient) Hooks() []Hook + func (c *CommentClient) Query() *CommentQuery + func (c *CommentClient) QueryArticle(co *Comment) *ArticleQuery + func (c *CommentClient) QueryAuthor(co *Comment) *KhumuUserQuery + func (c *CommentClient) QueryChildren(co *Comment) *CommentQuery + func (c *CommentClient) QueryLike(co *Comment) *LikeCommentQuery + func (c *CommentClient) QueryParent(co *Comment) *CommentQuery + func (c *CommentClient) QueryStudyArticle(co *Comment) *StudyArticleQuery + func (c *CommentClient) Update() *CommentUpdate + func (c *CommentClient) UpdateOne(co *Comment) *CommentUpdateOne + func (c *CommentClient) UpdateOneID(id int) *CommentUpdateOne + func (c *CommentClient) Use(hooks ...Hook) + type CommentCreate struct + func (cc *CommentCreate) AddChildIDs(ids ...int) *CommentCreate + func (cc *CommentCreate) AddChildren(c ...*Comment) *CommentCreate + func (cc *CommentCreate) AddLike(l ...*LikeComment) *CommentCreate + func (cc *CommentCreate) AddLikeIDs(ids ...int) *CommentCreate + func (cc *CommentCreate) Mutation() *CommentMutation + func (cc *CommentCreate) Save(ctx context.Context) (*Comment, error) + func (cc *CommentCreate) SaveX(ctx context.Context) *Comment + func (cc *CommentCreate) SetArticle(a *Article) *CommentCreate + func (cc *CommentCreate) SetArticleID(id int) *CommentCreate + func (cc *CommentCreate) SetAuthor(k *KhumuUser) *CommentCreate + func (cc *CommentCreate) SetAuthorID(id string) *CommentCreate + func (cc *CommentCreate) SetContent(s string) *CommentCreate + func (cc *CommentCreate) SetCreatedAt(t time.Time) *CommentCreate + func (cc *CommentCreate) SetID(i int) *CommentCreate + func (cc *CommentCreate) SetIsWrittenByArticleAuthor(b bool) *CommentCreate + func (cc *CommentCreate) SetKind(s string) *CommentCreate + func (cc *CommentCreate) SetNillableArticleID(id *int) *CommentCreate + func (cc *CommentCreate) SetNillableAuthorID(id *string) *CommentCreate + func (cc *CommentCreate) SetNillableCreatedAt(t *time.Time) *CommentCreate + func (cc *CommentCreate) SetNillableIsWrittenByArticleAuthor(b *bool) *CommentCreate + func (cc *CommentCreate) SetNillableKind(s *string) *CommentCreate + func (cc *CommentCreate) SetNillableParentID(id *int) *CommentCreate + func (cc *CommentCreate) SetNillableState(s *string) *CommentCreate + func (cc *CommentCreate) SetNillableStudyArticleID(id *int) *CommentCreate + func (cc *CommentCreate) SetParent(c *Comment) *CommentCreate + func (cc *CommentCreate) SetParentID(id int) *CommentCreate + func (cc *CommentCreate) SetState(s string) *CommentCreate + func (cc *CommentCreate) SetStudyArticle(s *StudyArticle) *CommentCreate + func (cc *CommentCreate) SetStudyArticleID(id int) *CommentCreate + type CommentCreateBulk struct + func (ccb *CommentCreateBulk) Save(ctx context.Context) ([]*Comment, error) + func (ccb *CommentCreateBulk) SaveX(ctx context.Context) []*Comment + type CommentDelete struct + func (cd *CommentDelete) Exec(ctx context.Context) (int, error) + func (cd *CommentDelete) ExecX(ctx context.Context) int + func (cd *CommentDelete) Where(ps ...predicate.Comment) *CommentDelete + type CommentDeleteOne struct + func (cdo *CommentDeleteOne) Exec(ctx context.Context) error + func (cdo *CommentDeleteOne) ExecX(ctx context.Context) + type CommentEdges struct + Article *Article + Author *KhumuUser + Children []*Comment + Like []*LikeComment + Parent *Comment + StudyArticle *StudyArticle + func (e CommentEdges) ArticleOrErr() (*Article, error) + func (e CommentEdges) AuthorOrErr() (*KhumuUser, error) + func (e CommentEdges) ChildrenOrErr() ([]*Comment, error) + func (e CommentEdges) LikeOrErr() ([]*LikeComment, error) + func (e CommentEdges) ParentOrErr() (*Comment, error) + func (e CommentEdges) StudyArticleOrErr() (*StudyArticle, error) + type CommentGroupBy struct + func (cgb *CommentGroupBy) Aggregate(fns ...AggregateFunc) *CommentGroupBy + func (cgb *CommentGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (cgb *CommentGroupBy) BoolX(ctx context.Context) bool + func (cgb *CommentGroupBy) Bools(ctx context.Context) ([]bool, error) + func (cgb *CommentGroupBy) BoolsX(ctx context.Context) []bool + func (cgb *CommentGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (cgb *CommentGroupBy) Float64X(ctx context.Context) float64 + func (cgb *CommentGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (cgb *CommentGroupBy) Float64sX(ctx context.Context) []float64 + func (cgb *CommentGroupBy) Int(ctx context.Context) (_ int, err error) + func (cgb *CommentGroupBy) IntX(ctx context.Context) int + func (cgb *CommentGroupBy) Ints(ctx context.Context) ([]int, error) + func (cgb *CommentGroupBy) IntsX(ctx context.Context) []int + func (cgb *CommentGroupBy) Scan(ctx context.Context, v interface{}) error + func (cgb *CommentGroupBy) ScanX(ctx context.Context, v interface{}) + func (cgb *CommentGroupBy) String(ctx context.Context) (_ string, err error) + func (cgb *CommentGroupBy) StringX(ctx context.Context) string + func (cgb *CommentGroupBy) Strings(ctx context.Context) ([]string, error) + func (cgb *CommentGroupBy) StringsX(ctx context.Context) []string + type CommentMutation struct + func (m *CommentMutation) AddChildIDs(ids ...int) + func (m *CommentMutation) AddField(name string, value ent.Value) error + func (m *CommentMutation) AddLikeIDs(ids ...int) + func (m *CommentMutation) AddedEdges() []string + func (m *CommentMutation) AddedField(name string) (ent.Value, bool) + func (m *CommentMutation) AddedFields() []string + func (m *CommentMutation) AddedIDs(name string) []ent.Value + func (m *CommentMutation) ArticleCleared() bool + func (m *CommentMutation) ArticleID() (id int, exists bool) + func (m *CommentMutation) ArticleIDs() (ids []int) + func (m *CommentMutation) AuthorCleared() bool + func (m *CommentMutation) AuthorID() (id string, exists bool) + func (m *CommentMutation) AuthorIDs() (ids []string) + func (m *CommentMutation) ChildrenCleared() bool + func (m *CommentMutation) ChildrenIDs() (ids []int) + func (m *CommentMutation) ClearArticle() + func (m *CommentMutation) ClearAuthor() + func (m *CommentMutation) ClearChildren() + func (m *CommentMutation) ClearEdge(name string) error + func (m *CommentMutation) ClearField(name string) error + func (m *CommentMutation) ClearLike() + func (m *CommentMutation) ClearParent() + func (m *CommentMutation) ClearStudyArticle() + func (m *CommentMutation) ClearedEdges() []string + func (m *CommentMutation) ClearedFields() []string + func (m *CommentMutation) Content() (r string, exists bool) + func (m *CommentMutation) CreatedAt() (r time.Time, exists bool) + func (m *CommentMutation) EdgeCleared(name string) bool + func (m *CommentMutation) Field(name string) (ent.Value, bool) + func (m *CommentMutation) FieldCleared(name string) bool + func (m *CommentMutation) Fields() []string + func (m *CommentMutation) ID() (id int, exists bool) + func (m *CommentMutation) IsWrittenByArticleAuthor() (r bool, exists bool) + func (m *CommentMutation) Kind() (r string, exists bool) + func (m *CommentMutation) LikeCleared() bool + func (m *CommentMutation) LikeIDs() (ids []int) + func (m *CommentMutation) OldContent(ctx context.Context) (v string, err error) + func (m *CommentMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) + func (m *CommentMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *CommentMutation) OldIsWrittenByArticleAuthor(ctx context.Context) (v bool, err error) + func (m *CommentMutation) OldKind(ctx context.Context) (v string, err error) + func (m *CommentMutation) OldState(ctx context.Context) (v string, err error) + func (m *CommentMutation) Op() Op + func (m *CommentMutation) ParentCleared() bool + func (m *CommentMutation) ParentID() (id int, exists bool) + func (m *CommentMutation) ParentIDs() (ids []int) + func (m *CommentMutation) RemoveChildIDs(ids ...int) + func (m *CommentMutation) RemoveLikeIDs(ids ...int) + func (m *CommentMutation) RemovedChildrenIDs() (ids []int) + func (m *CommentMutation) RemovedEdges() []string + func (m *CommentMutation) RemovedIDs(name string) []ent.Value + func (m *CommentMutation) RemovedLikeIDs() (ids []int) + func (m *CommentMutation) ResetArticle() + func (m *CommentMutation) ResetAuthor() + func (m *CommentMutation) ResetChildren() + func (m *CommentMutation) ResetContent() + func (m *CommentMutation) ResetCreatedAt() + func (m *CommentMutation) ResetEdge(name string) error + func (m *CommentMutation) ResetField(name string) error + func (m *CommentMutation) ResetIsWrittenByArticleAuthor() + func (m *CommentMutation) ResetKind() + func (m *CommentMutation) ResetLike() + func (m *CommentMutation) ResetParent() + func (m *CommentMutation) ResetState() + func (m *CommentMutation) ResetStudyArticle() + func (m *CommentMutation) SetArticleID(id int) + func (m *CommentMutation) SetAuthorID(id string) + func (m *CommentMutation) SetContent(s string) + func (m *CommentMutation) SetCreatedAt(t time.Time) + func (m *CommentMutation) SetField(name string, value ent.Value) error + func (m *CommentMutation) SetID(id int) + func (m *CommentMutation) SetIsWrittenByArticleAuthor(b bool) + func (m *CommentMutation) SetKind(s string) + func (m *CommentMutation) SetParentID(id int) + func (m *CommentMutation) SetState(s string) + func (m *CommentMutation) SetStudyArticleID(id int) + func (m *CommentMutation) State() (r string, exists bool) + func (m *CommentMutation) StudyArticleCleared() bool + func (m *CommentMutation) StudyArticleID() (id int, exists bool) + func (m *CommentMutation) StudyArticleIDs() (ids []int) + func (m *CommentMutation) Type() string + func (m CommentMutation) Client() *Client + func (m CommentMutation) Tx() (*Tx, error) + type CommentQuery struct + func (cq *CommentQuery) All(ctx context.Context) ([]*Comment, error) + func (cq *CommentQuery) AllX(ctx context.Context) []*Comment + func (cq *CommentQuery) Clone() *CommentQuery + func (cq *CommentQuery) Count(ctx context.Context) (int, error) + func (cq *CommentQuery) CountX(ctx context.Context) int + func (cq *CommentQuery) Exist(ctx context.Context) (bool, error) + func (cq *CommentQuery) ExistX(ctx context.Context) bool + func (cq *CommentQuery) First(ctx context.Context) (*Comment, error) + func (cq *CommentQuery) FirstID(ctx context.Context) (id int, err error) + func (cq *CommentQuery) FirstIDX(ctx context.Context) int + func (cq *CommentQuery) FirstX(ctx context.Context) *Comment + func (cq *CommentQuery) GroupBy(field string, fields ...string) *CommentGroupBy + func (cq *CommentQuery) IDs(ctx context.Context) ([]int, error) + func (cq *CommentQuery) IDsX(ctx context.Context) []int + func (cq *CommentQuery) Limit(limit int) *CommentQuery + func (cq *CommentQuery) Offset(offset int) *CommentQuery + func (cq *CommentQuery) Only(ctx context.Context) (*Comment, error) + func (cq *CommentQuery) OnlyID(ctx context.Context) (id int, err error) + func (cq *CommentQuery) OnlyIDX(ctx context.Context) int + func (cq *CommentQuery) OnlyX(ctx context.Context) *Comment + func (cq *CommentQuery) Order(o ...OrderFunc) *CommentQuery + func (cq *CommentQuery) QueryArticle() *ArticleQuery + func (cq *CommentQuery) QueryAuthor() *KhumuUserQuery + func (cq *CommentQuery) QueryChildren() *CommentQuery + func (cq *CommentQuery) QueryLike() *LikeCommentQuery + func (cq *CommentQuery) QueryParent() *CommentQuery + func (cq *CommentQuery) QueryStudyArticle() *StudyArticleQuery + func (cq *CommentQuery) Select(field string, fields ...string) *CommentSelect + func (cq *CommentQuery) Unique(unique bool) *CommentQuery + func (cq *CommentQuery) Where(ps ...predicate.Comment) *CommentQuery + func (cq *CommentQuery) WithArticle(opts ...func(*ArticleQuery)) *CommentQuery + func (cq *CommentQuery) WithAuthor(opts ...func(*KhumuUserQuery)) *CommentQuery + func (cq *CommentQuery) WithChildren(opts ...func(*CommentQuery)) *CommentQuery + func (cq *CommentQuery) WithLike(opts ...func(*LikeCommentQuery)) *CommentQuery + func (cq *CommentQuery) WithParent(opts ...func(*CommentQuery)) *CommentQuery + func (cq *CommentQuery) WithStudyArticle(opts ...func(*StudyArticleQuery)) *CommentQuery + type CommentSelect struct + func (cs *CommentSelect) Bool(ctx context.Context) (_ bool, err error) + func (cs *CommentSelect) BoolX(ctx context.Context) bool + func (cs *CommentSelect) Bools(ctx context.Context) ([]bool, error) + func (cs *CommentSelect) BoolsX(ctx context.Context) []bool + func (cs *CommentSelect) Float64(ctx context.Context) (_ float64, err error) + func (cs *CommentSelect) Float64X(ctx context.Context) float64 + func (cs *CommentSelect) Float64s(ctx context.Context) ([]float64, error) + func (cs *CommentSelect) Float64sX(ctx context.Context) []float64 + func (cs *CommentSelect) Int(ctx context.Context) (_ int, err error) + func (cs *CommentSelect) IntX(ctx context.Context) int + func (cs *CommentSelect) Ints(ctx context.Context) ([]int, error) + func (cs *CommentSelect) IntsX(ctx context.Context) []int + func (cs *CommentSelect) Scan(ctx context.Context, v interface{}) error + func (cs *CommentSelect) ScanX(ctx context.Context, v interface{}) + func (cs *CommentSelect) String(ctx context.Context) (_ string, err error) + func (cs *CommentSelect) StringX(ctx context.Context) string + func (cs *CommentSelect) Strings(ctx context.Context) ([]string, error) + func (cs *CommentSelect) StringsX(ctx context.Context) []string + type CommentUpdate struct + func (cu *CommentUpdate) AddChildIDs(ids ...int) *CommentUpdate + func (cu *CommentUpdate) AddChildren(c ...*Comment) *CommentUpdate + func (cu *CommentUpdate) AddLike(l ...*LikeComment) *CommentUpdate + func (cu *CommentUpdate) AddLikeIDs(ids ...int) *CommentUpdate + func (cu *CommentUpdate) ClearArticle() *CommentUpdate + func (cu *CommentUpdate) ClearAuthor() *CommentUpdate + func (cu *CommentUpdate) ClearChildren() *CommentUpdate + func (cu *CommentUpdate) ClearLike() *CommentUpdate + func (cu *CommentUpdate) ClearParent() *CommentUpdate + func (cu *CommentUpdate) ClearStudyArticle() *CommentUpdate + func (cu *CommentUpdate) Exec(ctx context.Context) error + func (cu *CommentUpdate) ExecX(ctx context.Context) + func (cu *CommentUpdate) Mutation() *CommentMutation + func (cu *CommentUpdate) RemoveChildIDs(ids ...int) *CommentUpdate + func (cu *CommentUpdate) RemoveChildren(c ...*Comment) *CommentUpdate + func (cu *CommentUpdate) RemoveLike(l ...*LikeComment) *CommentUpdate + func (cu *CommentUpdate) RemoveLikeIDs(ids ...int) *CommentUpdate + func (cu *CommentUpdate) Save(ctx context.Context) (int, error) + func (cu *CommentUpdate) SaveX(ctx context.Context) int + func (cu *CommentUpdate) SetArticle(a *Article) *CommentUpdate + func (cu *CommentUpdate) SetArticleID(id int) *CommentUpdate + func (cu *CommentUpdate) SetAuthor(k *KhumuUser) *CommentUpdate + func (cu *CommentUpdate) SetAuthorID(id string) *CommentUpdate + func (cu *CommentUpdate) SetContent(s string) *CommentUpdate + func (cu *CommentUpdate) SetCreatedAt(t time.Time) *CommentUpdate + func (cu *CommentUpdate) SetIsWrittenByArticleAuthor(b bool) *CommentUpdate + func (cu *CommentUpdate) SetKind(s string) *CommentUpdate + func (cu *CommentUpdate) SetNillableArticleID(id *int) *CommentUpdate + func (cu *CommentUpdate) SetNillableAuthorID(id *string) *CommentUpdate + func (cu *CommentUpdate) SetNillableCreatedAt(t *time.Time) *CommentUpdate + func (cu *CommentUpdate) SetNillableIsWrittenByArticleAuthor(b *bool) *CommentUpdate + func (cu *CommentUpdate) SetNillableKind(s *string) *CommentUpdate + func (cu *CommentUpdate) SetNillableParentID(id *int) *CommentUpdate + func (cu *CommentUpdate) SetNillableState(s *string) *CommentUpdate + func (cu *CommentUpdate) SetNillableStudyArticleID(id *int) *CommentUpdate + func (cu *CommentUpdate) SetParent(c *Comment) *CommentUpdate + func (cu *CommentUpdate) SetParentID(id int) *CommentUpdate + func (cu *CommentUpdate) SetState(s string) *CommentUpdate + func (cu *CommentUpdate) SetStudyArticle(s *StudyArticle) *CommentUpdate + func (cu *CommentUpdate) SetStudyArticleID(id int) *CommentUpdate + func (cu *CommentUpdate) Where(ps ...predicate.Comment) *CommentUpdate + type CommentUpdateOne struct + func (cuo *CommentUpdateOne) AddChildIDs(ids ...int) *CommentUpdateOne + func (cuo *CommentUpdateOne) AddChildren(c ...*Comment) *CommentUpdateOne + func (cuo *CommentUpdateOne) AddLike(l ...*LikeComment) *CommentUpdateOne + func (cuo *CommentUpdateOne) AddLikeIDs(ids ...int) *CommentUpdateOne + func (cuo *CommentUpdateOne) ClearArticle() *CommentUpdateOne + func (cuo *CommentUpdateOne) ClearAuthor() *CommentUpdateOne + func (cuo *CommentUpdateOne) ClearChildren() *CommentUpdateOne + func (cuo *CommentUpdateOne) ClearLike() *CommentUpdateOne + func (cuo *CommentUpdateOne) ClearParent() *CommentUpdateOne + func (cuo *CommentUpdateOne) ClearStudyArticle() *CommentUpdateOne + func (cuo *CommentUpdateOne) Exec(ctx context.Context) error + func (cuo *CommentUpdateOne) ExecX(ctx context.Context) + func (cuo *CommentUpdateOne) Mutation() *CommentMutation + func (cuo *CommentUpdateOne) RemoveChildIDs(ids ...int) *CommentUpdateOne + func (cuo *CommentUpdateOne) RemoveChildren(c ...*Comment) *CommentUpdateOne + func (cuo *CommentUpdateOne) RemoveLike(l ...*LikeComment) *CommentUpdateOne + func (cuo *CommentUpdateOne) RemoveLikeIDs(ids ...int) *CommentUpdateOne + func (cuo *CommentUpdateOne) Save(ctx context.Context) (*Comment, error) + func (cuo *CommentUpdateOne) SaveX(ctx context.Context) *Comment + func (cuo *CommentUpdateOne) Select(field string, fields ...string) *CommentUpdateOne + func (cuo *CommentUpdateOne) SetArticle(a *Article) *CommentUpdateOne + func (cuo *CommentUpdateOne) SetArticleID(id int) *CommentUpdateOne + func (cuo *CommentUpdateOne) SetAuthor(k *KhumuUser) *CommentUpdateOne + func (cuo *CommentUpdateOne) SetAuthorID(id string) *CommentUpdateOne + func (cuo *CommentUpdateOne) SetContent(s string) *CommentUpdateOne + func (cuo *CommentUpdateOne) SetCreatedAt(t time.Time) *CommentUpdateOne + func (cuo *CommentUpdateOne) SetIsWrittenByArticleAuthor(b bool) *CommentUpdateOne + func (cuo *CommentUpdateOne) SetKind(s string) *CommentUpdateOne + func (cuo *CommentUpdateOne) SetNillableArticleID(id *int) *CommentUpdateOne + func (cuo *CommentUpdateOne) SetNillableAuthorID(id *string) *CommentUpdateOne + func (cuo *CommentUpdateOne) SetNillableCreatedAt(t *time.Time) *CommentUpdateOne + func (cuo *CommentUpdateOne) SetNillableIsWrittenByArticleAuthor(b *bool) *CommentUpdateOne + func (cuo *CommentUpdateOne) SetNillableKind(s *string) *CommentUpdateOne + func (cuo *CommentUpdateOne) SetNillableParentID(id *int) *CommentUpdateOne + func (cuo *CommentUpdateOne) SetNillableState(s *string) *CommentUpdateOne + func (cuo *CommentUpdateOne) SetNillableStudyArticleID(id *int) *CommentUpdateOne + func (cuo *CommentUpdateOne) SetParent(c *Comment) *CommentUpdateOne + func (cuo *CommentUpdateOne) SetParentID(id int) *CommentUpdateOne + func (cuo *CommentUpdateOne) SetState(s string) *CommentUpdateOne + func (cuo *CommentUpdateOne) SetStudyArticle(s *StudyArticle) *CommentUpdateOne + func (cuo *CommentUpdateOne) SetStudyArticleID(id int) *CommentUpdateOne + type Comments []*Comment + 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 KhumuUser struct + Edges KhumuUserEdges + ID string + Nickname string + Password string + State string + StudentNumber string + func (ku *KhumuUser) QueryArticles() *ArticleQuery + func (ku *KhumuUser) QueryComments() *CommentQuery + func (ku *KhumuUser) QueryLike() *LikeCommentQuery + func (ku *KhumuUser) QueryStudyArticles() *StudyArticleQuery + func (ku *KhumuUser) String() string + func (ku *KhumuUser) Unwrap() *KhumuUser + func (ku *KhumuUser) Update() *KhumuUserUpdateOne + type KhumuUserClient struct + func NewKhumuUserClient(c config) *KhumuUserClient + func (c *KhumuUserClient) Create() *KhumuUserCreate + func (c *KhumuUserClient) CreateBulk(builders ...*KhumuUserCreate) *KhumuUserCreateBulk + func (c *KhumuUserClient) Delete() *KhumuUserDelete + func (c *KhumuUserClient) DeleteOne(ku *KhumuUser) *KhumuUserDeleteOne + func (c *KhumuUserClient) DeleteOneID(id string) *KhumuUserDeleteOne + func (c *KhumuUserClient) Get(ctx context.Context, id string) (*KhumuUser, error) + func (c *KhumuUserClient) GetX(ctx context.Context, id string) *KhumuUser + func (c *KhumuUserClient) Hooks() []Hook + func (c *KhumuUserClient) Query() *KhumuUserQuery + func (c *KhumuUserClient) QueryArticles(ku *KhumuUser) *ArticleQuery + func (c *KhumuUserClient) QueryComments(ku *KhumuUser) *CommentQuery + func (c *KhumuUserClient) QueryLike(ku *KhumuUser) *LikeCommentQuery + func (c *KhumuUserClient) QueryStudyArticles(ku *KhumuUser) *StudyArticleQuery + func (c *KhumuUserClient) Update() *KhumuUserUpdate + func (c *KhumuUserClient) UpdateOne(ku *KhumuUser) *KhumuUserUpdateOne + func (c *KhumuUserClient) UpdateOneID(id string) *KhumuUserUpdateOne + func (c *KhumuUserClient) Use(hooks ...Hook) + type KhumuUserCreate struct + func (kuc *KhumuUserCreate) AddArticleIDs(ids ...int) *KhumuUserCreate + func (kuc *KhumuUserCreate) AddArticles(a ...*Article) *KhumuUserCreate + func (kuc *KhumuUserCreate) AddCommentIDs(ids ...int) *KhumuUserCreate + func (kuc *KhumuUserCreate) AddComments(c ...*Comment) *KhumuUserCreate + func (kuc *KhumuUserCreate) AddLike(l ...*LikeComment) *KhumuUserCreate + func (kuc *KhumuUserCreate) AddLikeIDs(ids ...int) *KhumuUserCreate + func (kuc *KhumuUserCreate) AddStudyArticleIDs(ids ...int) *KhumuUserCreate + func (kuc *KhumuUserCreate) AddStudyArticles(s ...*StudyArticle) *KhumuUserCreate + func (kuc *KhumuUserCreate) Mutation() *KhumuUserMutation + func (kuc *KhumuUserCreate) Save(ctx context.Context) (*KhumuUser, error) + func (kuc *KhumuUserCreate) SaveX(ctx context.Context) *KhumuUser + func (kuc *KhumuUserCreate) SetID(s string) *KhumuUserCreate + func (kuc *KhumuUserCreate) SetNickname(s string) *KhumuUserCreate + func (kuc *KhumuUserCreate) SetNillableState(s *string) *KhumuUserCreate + func (kuc *KhumuUserCreate) SetNillableStudentNumber(s *string) *KhumuUserCreate + func (kuc *KhumuUserCreate) SetPassword(s string) *KhumuUserCreate + func (kuc *KhumuUserCreate) SetState(s string) *KhumuUserCreate + func (kuc *KhumuUserCreate) SetStudentNumber(s string) *KhumuUserCreate + type KhumuUserCreateBulk struct + func (kucb *KhumuUserCreateBulk) Save(ctx context.Context) ([]*KhumuUser, error) + func (kucb *KhumuUserCreateBulk) SaveX(ctx context.Context) []*KhumuUser + type KhumuUserDelete struct + func (kud *KhumuUserDelete) Exec(ctx context.Context) (int, error) + func (kud *KhumuUserDelete) ExecX(ctx context.Context) int + func (kud *KhumuUserDelete) Where(ps ...predicate.KhumuUser) *KhumuUserDelete + type KhumuUserDeleteOne struct + func (kudo *KhumuUserDeleteOne) Exec(ctx context.Context) error + func (kudo *KhumuUserDeleteOne) ExecX(ctx context.Context) + type KhumuUserEdges struct + Articles []*Article + Comments []*Comment + Like []*LikeComment + StudyArticles []*StudyArticle + func (e KhumuUserEdges) ArticlesOrErr() ([]*Article, error) + func (e KhumuUserEdges) CommentsOrErr() ([]*Comment, error) + func (e KhumuUserEdges) LikeOrErr() ([]*LikeComment, error) + func (e KhumuUserEdges) StudyArticlesOrErr() ([]*StudyArticle, error) + type KhumuUserGroupBy struct + func (kugb *KhumuUserGroupBy) Aggregate(fns ...AggregateFunc) *KhumuUserGroupBy + func (kugb *KhumuUserGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (kugb *KhumuUserGroupBy) BoolX(ctx context.Context) bool + func (kugb *KhumuUserGroupBy) Bools(ctx context.Context) ([]bool, error) + func (kugb *KhumuUserGroupBy) BoolsX(ctx context.Context) []bool + func (kugb *KhumuUserGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (kugb *KhumuUserGroupBy) Float64X(ctx context.Context) float64 + func (kugb *KhumuUserGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (kugb *KhumuUserGroupBy) Float64sX(ctx context.Context) []float64 + func (kugb *KhumuUserGroupBy) Int(ctx context.Context) (_ int, err error) + func (kugb *KhumuUserGroupBy) IntX(ctx context.Context) int + func (kugb *KhumuUserGroupBy) Ints(ctx context.Context) ([]int, error) + func (kugb *KhumuUserGroupBy) IntsX(ctx context.Context) []int + func (kugb *KhumuUserGroupBy) Scan(ctx context.Context, v interface{}) error + func (kugb *KhumuUserGroupBy) ScanX(ctx context.Context, v interface{}) + func (kugb *KhumuUserGroupBy) String(ctx context.Context) (_ string, err error) + func (kugb *KhumuUserGroupBy) StringX(ctx context.Context) string + func (kugb *KhumuUserGroupBy) Strings(ctx context.Context) ([]string, error) + func (kugb *KhumuUserGroupBy) StringsX(ctx context.Context) []string + type KhumuUserMutation struct + func (m *KhumuUserMutation) AddArticleIDs(ids ...int) + func (m *KhumuUserMutation) AddCommentIDs(ids ...int) + func (m *KhumuUserMutation) AddField(name string, value ent.Value) error + func (m *KhumuUserMutation) AddLikeIDs(ids ...int) + func (m *KhumuUserMutation) AddStudyArticleIDs(ids ...int) + func (m *KhumuUserMutation) AddedEdges() []string + func (m *KhumuUserMutation) AddedField(name string) (ent.Value, bool) + func (m *KhumuUserMutation) AddedFields() []string + func (m *KhumuUserMutation) AddedIDs(name string) []ent.Value + func (m *KhumuUserMutation) ArticlesCleared() bool + func (m *KhumuUserMutation) ArticlesIDs() (ids []int) + func (m *KhumuUserMutation) ClearArticles() + func (m *KhumuUserMutation) ClearComments() + func (m *KhumuUserMutation) ClearEdge(name string) error + func (m *KhumuUserMutation) ClearField(name string) error + func (m *KhumuUserMutation) ClearLike() + func (m *KhumuUserMutation) ClearStudentNumber() + func (m *KhumuUserMutation) ClearStudyArticles() + func (m *KhumuUserMutation) ClearedEdges() []string + func (m *KhumuUserMutation) ClearedFields() []string + func (m *KhumuUserMutation) CommentsCleared() bool + func (m *KhumuUserMutation) CommentsIDs() (ids []int) + func (m *KhumuUserMutation) EdgeCleared(name string) bool + func (m *KhumuUserMutation) Field(name string) (ent.Value, bool) + func (m *KhumuUserMutation) FieldCleared(name string) bool + func (m *KhumuUserMutation) Fields() []string + func (m *KhumuUserMutation) ID() (id string, exists bool) + func (m *KhumuUserMutation) LikeCleared() bool + func (m *KhumuUserMutation) LikeIDs() (ids []int) + func (m *KhumuUserMutation) Nickname() (r string, exists bool) + func (m *KhumuUserMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *KhumuUserMutation) OldNickname(ctx context.Context) (v string, err error) + func (m *KhumuUserMutation) OldPassword(ctx context.Context) (v string, err error) + func (m *KhumuUserMutation) OldState(ctx context.Context) (v string, err error) + func (m *KhumuUserMutation) OldStudentNumber(ctx context.Context) (v string, err error) + func (m *KhumuUserMutation) Op() Op + func (m *KhumuUserMutation) Password() (r string, exists bool) + func (m *KhumuUserMutation) RemoveArticleIDs(ids ...int) + func (m *KhumuUserMutation) RemoveCommentIDs(ids ...int) + func (m *KhumuUserMutation) RemoveLikeIDs(ids ...int) + func (m *KhumuUserMutation) RemoveStudyArticleIDs(ids ...int) + func (m *KhumuUserMutation) RemovedArticlesIDs() (ids []int) + func (m *KhumuUserMutation) RemovedCommentsIDs() (ids []int) + func (m *KhumuUserMutation) RemovedEdges() []string + func (m *KhumuUserMutation) RemovedIDs(name string) []ent.Value + func (m *KhumuUserMutation) RemovedLikeIDs() (ids []int) + func (m *KhumuUserMutation) RemovedStudyArticlesIDs() (ids []int) + func (m *KhumuUserMutation) ResetArticles() + func (m *KhumuUserMutation) ResetComments() + func (m *KhumuUserMutation) ResetEdge(name string) error + func (m *KhumuUserMutation) ResetField(name string) error + func (m *KhumuUserMutation) ResetLike() + func (m *KhumuUserMutation) ResetNickname() + func (m *KhumuUserMutation) ResetPassword() + func (m *KhumuUserMutation) ResetState() + func (m *KhumuUserMutation) ResetStudentNumber() + func (m *KhumuUserMutation) ResetStudyArticles() + func (m *KhumuUserMutation) SetField(name string, value ent.Value) error + func (m *KhumuUserMutation) SetID(id string) + func (m *KhumuUserMutation) SetNickname(s string) + func (m *KhumuUserMutation) SetPassword(s string) + func (m *KhumuUserMutation) SetState(s string) + func (m *KhumuUserMutation) SetStudentNumber(s string) + func (m *KhumuUserMutation) State() (r string, exists bool) + func (m *KhumuUserMutation) StudentNumber() (r string, exists bool) + func (m *KhumuUserMutation) StudentNumberCleared() bool + func (m *KhumuUserMutation) StudyArticlesCleared() bool + func (m *KhumuUserMutation) StudyArticlesIDs() (ids []int) + func (m *KhumuUserMutation) Type() string + func (m KhumuUserMutation) Client() *Client + func (m KhumuUserMutation) Tx() (*Tx, error) + type KhumuUserQuery struct + func (kuq *KhumuUserQuery) All(ctx context.Context) ([]*KhumuUser, error) + func (kuq *KhumuUserQuery) AllX(ctx context.Context) []*KhumuUser + func (kuq *KhumuUserQuery) Clone() *KhumuUserQuery + func (kuq *KhumuUserQuery) Count(ctx context.Context) (int, error) + func (kuq *KhumuUserQuery) CountX(ctx context.Context) int + func (kuq *KhumuUserQuery) Exist(ctx context.Context) (bool, error) + func (kuq *KhumuUserQuery) ExistX(ctx context.Context) bool + func (kuq *KhumuUserQuery) First(ctx context.Context) (*KhumuUser, error) + func (kuq *KhumuUserQuery) FirstID(ctx context.Context) (id string, err error) + func (kuq *KhumuUserQuery) FirstIDX(ctx context.Context) string + func (kuq *KhumuUserQuery) FirstX(ctx context.Context) *KhumuUser + func (kuq *KhumuUserQuery) GroupBy(field string, fields ...string) *KhumuUserGroupBy + func (kuq *KhumuUserQuery) IDs(ctx context.Context) ([]string, error) + func (kuq *KhumuUserQuery) IDsX(ctx context.Context) []string + func (kuq *KhumuUserQuery) Limit(limit int) *KhumuUserQuery + func (kuq *KhumuUserQuery) Offset(offset int) *KhumuUserQuery + func (kuq *KhumuUserQuery) Only(ctx context.Context) (*KhumuUser, error) + func (kuq *KhumuUserQuery) OnlyID(ctx context.Context) (id string, err error) + func (kuq *KhumuUserQuery) OnlyIDX(ctx context.Context) string + func (kuq *KhumuUserQuery) OnlyX(ctx context.Context) *KhumuUser + func (kuq *KhumuUserQuery) Order(o ...OrderFunc) *KhumuUserQuery + func (kuq *KhumuUserQuery) QueryArticles() *ArticleQuery + func (kuq *KhumuUserQuery) QueryComments() *CommentQuery + func (kuq *KhumuUserQuery) QueryLike() *LikeCommentQuery + func (kuq *KhumuUserQuery) QueryStudyArticles() *StudyArticleQuery + func (kuq *KhumuUserQuery) Select(field string, fields ...string) *KhumuUserSelect + func (kuq *KhumuUserQuery) Unique(unique bool) *KhumuUserQuery + func (kuq *KhumuUserQuery) Where(ps ...predicate.KhumuUser) *KhumuUserQuery + func (kuq *KhumuUserQuery) WithArticles(opts ...func(*ArticleQuery)) *KhumuUserQuery + func (kuq *KhumuUserQuery) WithComments(opts ...func(*CommentQuery)) *KhumuUserQuery + func (kuq *KhumuUserQuery) WithLike(opts ...func(*LikeCommentQuery)) *KhumuUserQuery + func (kuq *KhumuUserQuery) WithStudyArticles(opts ...func(*StudyArticleQuery)) *KhumuUserQuery + type KhumuUserSelect struct + func (kus *KhumuUserSelect) Bool(ctx context.Context) (_ bool, err error) + func (kus *KhumuUserSelect) BoolX(ctx context.Context) bool + func (kus *KhumuUserSelect) Bools(ctx context.Context) ([]bool, error) + func (kus *KhumuUserSelect) BoolsX(ctx context.Context) []bool + func (kus *KhumuUserSelect) Float64(ctx context.Context) (_ float64, err error) + func (kus *KhumuUserSelect) Float64X(ctx context.Context) float64 + func (kus *KhumuUserSelect) Float64s(ctx context.Context) ([]float64, error) + func (kus *KhumuUserSelect) Float64sX(ctx context.Context) []float64 + func (kus *KhumuUserSelect) Int(ctx context.Context) (_ int, err error) + func (kus *KhumuUserSelect) IntX(ctx context.Context) int + func (kus *KhumuUserSelect) Ints(ctx context.Context) ([]int, error) + func (kus *KhumuUserSelect) IntsX(ctx context.Context) []int + func (kus *KhumuUserSelect) Scan(ctx context.Context, v interface{}) error + func (kus *KhumuUserSelect) ScanX(ctx context.Context, v interface{}) + func (kus *KhumuUserSelect) String(ctx context.Context) (_ string, err error) + func (kus *KhumuUserSelect) StringX(ctx context.Context) string + func (kus *KhumuUserSelect) Strings(ctx context.Context) ([]string, error) + func (kus *KhumuUserSelect) StringsX(ctx context.Context) []string + type KhumuUserUpdate struct + func (kuu *KhumuUserUpdate) AddArticleIDs(ids ...int) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) AddArticles(a ...*Article) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) AddCommentIDs(ids ...int) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) AddComments(c ...*Comment) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) AddLike(l ...*LikeComment) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) AddLikeIDs(ids ...int) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) AddStudyArticleIDs(ids ...int) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) AddStudyArticles(s ...*StudyArticle) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) ClearArticles() *KhumuUserUpdate + func (kuu *KhumuUserUpdate) ClearComments() *KhumuUserUpdate + func (kuu *KhumuUserUpdate) ClearLike() *KhumuUserUpdate + func (kuu *KhumuUserUpdate) ClearStudentNumber() *KhumuUserUpdate + func (kuu *KhumuUserUpdate) ClearStudyArticles() *KhumuUserUpdate + func (kuu *KhumuUserUpdate) Exec(ctx context.Context) error + func (kuu *KhumuUserUpdate) ExecX(ctx context.Context) + func (kuu *KhumuUserUpdate) Mutation() *KhumuUserMutation + func (kuu *KhumuUserUpdate) RemoveArticleIDs(ids ...int) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) RemoveArticles(a ...*Article) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) RemoveCommentIDs(ids ...int) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) RemoveComments(c ...*Comment) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) RemoveLike(l ...*LikeComment) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) RemoveLikeIDs(ids ...int) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) RemoveStudyArticleIDs(ids ...int) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) RemoveStudyArticles(s ...*StudyArticle) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) Save(ctx context.Context) (int, error) + func (kuu *KhumuUserUpdate) SaveX(ctx context.Context) int + func (kuu *KhumuUserUpdate) SetNickname(s string) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) SetNillableState(s *string) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) SetNillableStudentNumber(s *string) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) SetPassword(s string) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) SetState(s string) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) SetStudentNumber(s string) *KhumuUserUpdate + func (kuu *KhumuUserUpdate) Where(ps ...predicate.KhumuUser) *KhumuUserUpdate + type KhumuUserUpdateOne struct + func (kuuo *KhumuUserUpdateOne) AddArticleIDs(ids ...int) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) AddArticles(a ...*Article) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) AddCommentIDs(ids ...int) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) AddComments(c ...*Comment) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) AddLike(l ...*LikeComment) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) AddLikeIDs(ids ...int) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) AddStudyArticleIDs(ids ...int) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) AddStudyArticles(s ...*StudyArticle) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) ClearArticles() *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) ClearComments() *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) ClearLike() *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) ClearStudentNumber() *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) ClearStudyArticles() *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) Exec(ctx context.Context) error + func (kuuo *KhumuUserUpdateOne) ExecX(ctx context.Context) + func (kuuo *KhumuUserUpdateOne) Mutation() *KhumuUserMutation + func (kuuo *KhumuUserUpdateOne) RemoveArticleIDs(ids ...int) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) RemoveArticles(a ...*Article) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) RemoveCommentIDs(ids ...int) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) RemoveComments(c ...*Comment) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) RemoveLike(l ...*LikeComment) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) RemoveLikeIDs(ids ...int) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) RemoveStudyArticleIDs(ids ...int) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) RemoveStudyArticles(s ...*StudyArticle) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) Save(ctx context.Context) (*KhumuUser, error) + func (kuuo *KhumuUserUpdateOne) SaveX(ctx context.Context) *KhumuUser + func (kuuo *KhumuUserUpdateOne) Select(field string, fields ...string) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) SetNickname(s string) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) SetNillableState(s *string) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) SetNillableStudentNumber(s *string) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) SetPassword(s string) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) SetState(s string) *KhumuUserUpdateOne + func (kuuo *KhumuUserUpdateOne) SetStudentNumber(s string) *KhumuUserUpdateOne + type KhumuUsers []*KhumuUser + type LikeComment struct + Edges LikeCommentEdges + ID int + func (lc *LikeComment) QueryAbout() *CommentQuery + func (lc *LikeComment) QueryLikedBy() *KhumuUserQuery + func (lc *LikeComment) String() string + func (lc *LikeComment) Unwrap() *LikeComment + func (lc *LikeComment) Update() *LikeCommentUpdateOne + type LikeCommentClient struct + func NewLikeCommentClient(c config) *LikeCommentClient + func (c *LikeCommentClient) Create() *LikeCommentCreate + func (c *LikeCommentClient) CreateBulk(builders ...*LikeCommentCreate) *LikeCommentCreateBulk + func (c *LikeCommentClient) Delete() *LikeCommentDelete + func (c *LikeCommentClient) DeleteOne(lc *LikeComment) *LikeCommentDeleteOne + func (c *LikeCommentClient) DeleteOneID(id int) *LikeCommentDeleteOne + func (c *LikeCommentClient) Get(ctx context.Context, id int) (*LikeComment, error) + func (c *LikeCommentClient) GetX(ctx context.Context, id int) *LikeComment + func (c *LikeCommentClient) Hooks() []Hook + func (c *LikeCommentClient) Query() *LikeCommentQuery + func (c *LikeCommentClient) QueryAbout(lc *LikeComment) *CommentQuery + func (c *LikeCommentClient) QueryLikedBy(lc *LikeComment) *KhumuUserQuery + func (c *LikeCommentClient) Update() *LikeCommentUpdate + func (c *LikeCommentClient) UpdateOne(lc *LikeComment) *LikeCommentUpdateOne + func (c *LikeCommentClient) UpdateOneID(id int) *LikeCommentUpdateOne + func (c *LikeCommentClient) Use(hooks ...Hook) + type LikeCommentCreate struct + func (lcc *LikeCommentCreate) Mutation() *LikeCommentMutation + func (lcc *LikeCommentCreate) Save(ctx context.Context) (*LikeComment, error) + func (lcc *LikeCommentCreate) SaveX(ctx context.Context) *LikeComment + func (lcc *LikeCommentCreate) SetAbout(c *Comment) *LikeCommentCreate + func (lcc *LikeCommentCreate) SetAboutID(id int) *LikeCommentCreate + func (lcc *LikeCommentCreate) SetID(i int) *LikeCommentCreate + func (lcc *LikeCommentCreate) SetLikedBy(k *KhumuUser) *LikeCommentCreate + func (lcc *LikeCommentCreate) SetLikedByID(id string) *LikeCommentCreate + func (lcc *LikeCommentCreate) SetNillableAboutID(id *int) *LikeCommentCreate + func (lcc *LikeCommentCreate) SetNillableLikedByID(id *string) *LikeCommentCreate + type LikeCommentCreateBulk struct + func (lccb *LikeCommentCreateBulk) Save(ctx context.Context) ([]*LikeComment, error) + func (lccb *LikeCommentCreateBulk) SaveX(ctx context.Context) []*LikeComment + type LikeCommentDelete struct + func (lcd *LikeCommentDelete) Exec(ctx context.Context) (int, error) + func (lcd *LikeCommentDelete) ExecX(ctx context.Context) int + func (lcd *LikeCommentDelete) Where(ps ...predicate.LikeComment) *LikeCommentDelete + type LikeCommentDeleteOne struct + func (lcdo *LikeCommentDeleteOne) Exec(ctx context.Context) error + func (lcdo *LikeCommentDeleteOne) ExecX(ctx context.Context) + type LikeCommentEdges struct + About *Comment + LikedBy *KhumuUser + func (e LikeCommentEdges) AboutOrErr() (*Comment, error) + func (e LikeCommentEdges) LikedByOrErr() (*KhumuUser, error) + type LikeCommentGroupBy struct + func (lcgb *LikeCommentGroupBy) Aggregate(fns ...AggregateFunc) *LikeCommentGroupBy + func (lcgb *LikeCommentGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (lcgb *LikeCommentGroupBy) BoolX(ctx context.Context) bool + func (lcgb *LikeCommentGroupBy) Bools(ctx context.Context) ([]bool, error) + func (lcgb *LikeCommentGroupBy) BoolsX(ctx context.Context) []bool + func (lcgb *LikeCommentGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (lcgb *LikeCommentGroupBy) Float64X(ctx context.Context) float64 + func (lcgb *LikeCommentGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (lcgb *LikeCommentGroupBy) Float64sX(ctx context.Context) []float64 + func (lcgb *LikeCommentGroupBy) Int(ctx context.Context) (_ int, err error) + func (lcgb *LikeCommentGroupBy) IntX(ctx context.Context) int + func (lcgb *LikeCommentGroupBy) Ints(ctx context.Context) ([]int, error) + func (lcgb *LikeCommentGroupBy) IntsX(ctx context.Context) []int + func (lcgb *LikeCommentGroupBy) Scan(ctx context.Context, v interface{}) error + func (lcgb *LikeCommentGroupBy) ScanX(ctx context.Context, v interface{}) + func (lcgb *LikeCommentGroupBy) String(ctx context.Context) (_ string, err error) + func (lcgb *LikeCommentGroupBy) StringX(ctx context.Context) string + func (lcgb *LikeCommentGroupBy) Strings(ctx context.Context) ([]string, error) + func (lcgb *LikeCommentGroupBy) StringsX(ctx context.Context) []string + type LikeCommentMutation struct + func (m *LikeCommentMutation) AboutCleared() bool + func (m *LikeCommentMutation) AboutID() (id int, exists bool) + func (m *LikeCommentMutation) AboutIDs() (ids []int) + func (m *LikeCommentMutation) AddField(name string, value ent.Value) error + func (m *LikeCommentMutation) AddedEdges() []string + func (m *LikeCommentMutation) AddedField(name string) (ent.Value, bool) + func (m *LikeCommentMutation) AddedFields() []string + func (m *LikeCommentMutation) AddedIDs(name string) []ent.Value + func (m *LikeCommentMutation) ClearAbout() + func (m *LikeCommentMutation) ClearEdge(name string) error + func (m *LikeCommentMutation) ClearField(name string) error + func (m *LikeCommentMutation) ClearLikedBy() + func (m *LikeCommentMutation) ClearedEdges() []string + func (m *LikeCommentMutation) ClearedFields() []string + func (m *LikeCommentMutation) EdgeCleared(name string) bool + func (m *LikeCommentMutation) Field(name string) (ent.Value, bool) + func (m *LikeCommentMutation) FieldCleared(name string) bool + func (m *LikeCommentMutation) Fields() []string + func (m *LikeCommentMutation) ID() (id int, exists bool) + func (m *LikeCommentMutation) LikedByCleared() bool + func (m *LikeCommentMutation) LikedByID() (id string, exists bool) + func (m *LikeCommentMutation) LikedByIDs() (ids []string) + func (m *LikeCommentMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *LikeCommentMutation) Op() Op + func (m *LikeCommentMutation) RemovedEdges() []string + func (m *LikeCommentMutation) RemovedIDs(name string) []ent.Value + func (m *LikeCommentMutation) ResetAbout() + func (m *LikeCommentMutation) ResetEdge(name string) error + func (m *LikeCommentMutation) ResetField(name string) error + func (m *LikeCommentMutation) ResetLikedBy() + func (m *LikeCommentMutation) SetAboutID(id int) + func (m *LikeCommentMutation) SetField(name string, value ent.Value) error + func (m *LikeCommentMutation) SetID(id int) + func (m *LikeCommentMutation) SetLikedByID(id string) + func (m *LikeCommentMutation) Type() string + func (m LikeCommentMutation) Client() *Client + func (m LikeCommentMutation) Tx() (*Tx, error) + type LikeCommentQuery struct + func (lcq *LikeCommentQuery) All(ctx context.Context) ([]*LikeComment, error) + func (lcq *LikeCommentQuery) AllX(ctx context.Context) []*LikeComment + func (lcq *LikeCommentQuery) Clone() *LikeCommentQuery + func (lcq *LikeCommentQuery) Count(ctx context.Context) (int, error) + func (lcq *LikeCommentQuery) CountX(ctx context.Context) int + func (lcq *LikeCommentQuery) Exist(ctx context.Context) (bool, error) + func (lcq *LikeCommentQuery) ExistX(ctx context.Context) bool + func (lcq *LikeCommentQuery) First(ctx context.Context) (*LikeComment, error) + func (lcq *LikeCommentQuery) FirstID(ctx context.Context) (id int, err error) + func (lcq *LikeCommentQuery) FirstIDX(ctx context.Context) int + func (lcq *LikeCommentQuery) FirstX(ctx context.Context) *LikeComment + func (lcq *LikeCommentQuery) GroupBy(field string, fields ...string) *LikeCommentGroupBy + func (lcq *LikeCommentQuery) IDs(ctx context.Context) ([]int, error) + func (lcq *LikeCommentQuery) IDsX(ctx context.Context) []int + func (lcq *LikeCommentQuery) Limit(limit int) *LikeCommentQuery + func (lcq *LikeCommentQuery) Offset(offset int) *LikeCommentQuery + func (lcq *LikeCommentQuery) Only(ctx context.Context) (*LikeComment, error) + func (lcq *LikeCommentQuery) OnlyID(ctx context.Context) (id int, err error) + func (lcq *LikeCommentQuery) OnlyIDX(ctx context.Context) int + func (lcq *LikeCommentQuery) OnlyX(ctx context.Context) *LikeComment + func (lcq *LikeCommentQuery) Order(o ...OrderFunc) *LikeCommentQuery + func (lcq *LikeCommentQuery) QueryAbout() *CommentQuery + func (lcq *LikeCommentQuery) QueryLikedBy() *KhumuUserQuery + func (lcq *LikeCommentQuery) Select(field string, fields ...string) *LikeCommentSelect + func (lcq *LikeCommentQuery) Unique(unique bool) *LikeCommentQuery + func (lcq *LikeCommentQuery) Where(ps ...predicate.LikeComment) *LikeCommentQuery + func (lcq *LikeCommentQuery) WithAbout(opts ...func(*CommentQuery)) *LikeCommentQuery + func (lcq *LikeCommentQuery) WithLikedBy(opts ...func(*KhumuUserQuery)) *LikeCommentQuery + type LikeCommentSelect struct + func (lcs *LikeCommentSelect) Bool(ctx context.Context) (_ bool, err error) + func (lcs *LikeCommentSelect) BoolX(ctx context.Context) bool + func (lcs *LikeCommentSelect) Bools(ctx context.Context) ([]bool, error) + func (lcs *LikeCommentSelect) BoolsX(ctx context.Context) []bool + func (lcs *LikeCommentSelect) Float64(ctx context.Context) (_ float64, err error) + func (lcs *LikeCommentSelect) Float64X(ctx context.Context) float64 + func (lcs *LikeCommentSelect) Float64s(ctx context.Context) ([]float64, error) + func (lcs *LikeCommentSelect) Float64sX(ctx context.Context) []float64 + func (lcs *LikeCommentSelect) Int(ctx context.Context) (_ int, err error) + func (lcs *LikeCommentSelect) IntX(ctx context.Context) int + func (lcs *LikeCommentSelect) Ints(ctx context.Context) ([]int, error) + func (lcs *LikeCommentSelect) IntsX(ctx context.Context) []int + func (lcs *LikeCommentSelect) Scan(ctx context.Context, v interface{}) error + func (lcs *LikeCommentSelect) ScanX(ctx context.Context, v interface{}) + func (lcs *LikeCommentSelect) String(ctx context.Context) (_ string, err error) + func (lcs *LikeCommentSelect) StringX(ctx context.Context) string + func (lcs *LikeCommentSelect) Strings(ctx context.Context) ([]string, error) + func (lcs *LikeCommentSelect) StringsX(ctx context.Context) []string + type LikeCommentUpdate struct + func (lcu *LikeCommentUpdate) ClearAbout() *LikeCommentUpdate + func (lcu *LikeCommentUpdate) ClearLikedBy() *LikeCommentUpdate + func (lcu *LikeCommentUpdate) Exec(ctx context.Context) error + func (lcu *LikeCommentUpdate) ExecX(ctx context.Context) + func (lcu *LikeCommentUpdate) Mutation() *LikeCommentMutation + func (lcu *LikeCommentUpdate) Save(ctx context.Context) (int, error) + func (lcu *LikeCommentUpdate) SaveX(ctx context.Context) int + func (lcu *LikeCommentUpdate) SetAbout(c *Comment) *LikeCommentUpdate + func (lcu *LikeCommentUpdate) SetAboutID(id int) *LikeCommentUpdate + func (lcu *LikeCommentUpdate) SetLikedBy(k *KhumuUser) *LikeCommentUpdate + func (lcu *LikeCommentUpdate) SetLikedByID(id string) *LikeCommentUpdate + func (lcu *LikeCommentUpdate) SetNillableAboutID(id *int) *LikeCommentUpdate + func (lcu *LikeCommentUpdate) SetNillableLikedByID(id *string) *LikeCommentUpdate + func (lcu *LikeCommentUpdate) Where(ps ...predicate.LikeComment) *LikeCommentUpdate + type LikeCommentUpdateOne struct + func (lcuo *LikeCommentUpdateOne) ClearAbout() *LikeCommentUpdateOne + func (lcuo *LikeCommentUpdateOne) ClearLikedBy() *LikeCommentUpdateOne + func (lcuo *LikeCommentUpdateOne) Exec(ctx context.Context) error + func (lcuo *LikeCommentUpdateOne) ExecX(ctx context.Context) + func (lcuo *LikeCommentUpdateOne) Mutation() *LikeCommentMutation + func (lcuo *LikeCommentUpdateOne) Save(ctx context.Context) (*LikeComment, error) + func (lcuo *LikeCommentUpdateOne) SaveX(ctx context.Context) *LikeComment + func (lcuo *LikeCommentUpdateOne) Select(field string, fields ...string) *LikeCommentUpdateOne + func (lcuo *LikeCommentUpdateOne) SetAbout(c *Comment) *LikeCommentUpdateOne + func (lcuo *LikeCommentUpdateOne) SetAboutID(id int) *LikeCommentUpdateOne + func (lcuo *LikeCommentUpdateOne) SetLikedBy(k *KhumuUser) *LikeCommentUpdateOne + func (lcuo *LikeCommentUpdateOne) SetLikedByID(id string) *LikeCommentUpdateOne + func (lcuo *LikeCommentUpdateOne) SetNillableAboutID(id *int) *LikeCommentUpdateOne + func (lcuo *LikeCommentUpdateOne) SetNillableLikedByID(id *string) *LikeCommentUpdateOne + type LikeComments []*LikeComment + 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 StudyArticle struct + Edges StudyArticleEdges + ID int + func (sa *StudyArticle) QueryAuthor() *KhumuUserQuery + func (sa *StudyArticle) QueryComments() *CommentQuery + func (sa *StudyArticle) String() string + func (sa *StudyArticle) Unwrap() *StudyArticle + func (sa *StudyArticle) Update() *StudyArticleUpdateOne + type StudyArticleClient struct + func NewStudyArticleClient(c config) *StudyArticleClient + func (c *StudyArticleClient) Create() *StudyArticleCreate + func (c *StudyArticleClient) CreateBulk(builders ...*StudyArticleCreate) *StudyArticleCreateBulk + func (c *StudyArticleClient) Delete() *StudyArticleDelete + func (c *StudyArticleClient) DeleteOne(sa *StudyArticle) *StudyArticleDeleteOne + func (c *StudyArticleClient) DeleteOneID(id int) *StudyArticleDeleteOne + func (c *StudyArticleClient) Get(ctx context.Context, id int) (*StudyArticle, error) + func (c *StudyArticleClient) GetX(ctx context.Context, id int) *StudyArticle + func (c *StudyArticleClient) Hooks() []Hook + func (c *StudyArticleClient) Query() *StudyArticleQuery + func (c *StudyArticleClient) QueryAuthor(sa *StudyArticle) *KhumuUserQuery + func (c *StudyArticleClient) QueryComments(sa *StudyArticle) *CommentQuery + func (c *StudyArticleClient) Update() *StudyArticleUpdate + func (c *StudyArticleClient) UpdateOne(sa *StudyArticle) *StudyArticleUpdateOne + func (c *StudyArticleClient) UpdateOneID(id int) *StudyArticleUpdateOne + func (c *StudyArticleClient) Use(hooks ...Hook) + type StudyArticleCreate struct + func (sac *StudyArticleCreate) AddCommentIDs(ids ...int) *StudyArticleCreate + func (sac *StudyArticleCreate) AddComments(c ...*Comment) *StudyArticleCreate + func (sac *StudyArticleCreate) Mutation() *StudyArticleMutation + func (sac *StudyArticleCreate) Save(ctx context.Context) (*StudyArticle, error) + func (sac *StudyArticleCreate) SaveX(ctx context.Context) *StudyArticle + func (sac *StudyArticleCreate) SetAuthor(k *KhumuUser) *StudyArticleCreate + func (sac *StudyArticleCreate) SetAuthorID(id string) *StudyArticleCreate + func (sac *StudyArticleCreate) SetID(i int) *StudyArticleCreate + func (sac *StudyArticleCreate) SetNillableAuthorID(id *string) *StudyArticleCreate + type StudyArticleCreateBulk struct + func (sacb *StudyArticleCreateBulk) Save(ctx context.Context) ([]*StudyArticle, error) + func (sacb *StudyArticleCreateBulk) SaveX(ctx context.Context) []*StudyArticle + type StudyArticleDelete struct + func (sad *StudyArticleDelete) Exec(ctx context.Context) (int, error) + func (sad *StudyArticleDelete) ExecX(ctx context.Context) int + func (sad *StudyArticleDelete) Where(ps ...predicate.StudyArticle) *StudyArticleDelete + type StudyArticleDeleteOne struct + func (sado *StudyArticleDeleteOne) Exec(ctx context.Context) error + func (sado *StudyArticleDeleteOne) ExecX(ctx context.Context) + type StudyArticleEdges struct + Author *KhumuUser + Comments []*Comment + func (e StudyArticleEdges) AuthorOrErr() (*KhumuUser, error) + func (e StudyArticleEdges) CommentsOrErr() ([]*Comment, error) + type StudyArticleGroupBy struct + func (sagb *StudyArticleGroupBy) Aggregate(fns ...AggregateFunc) *StudyArticleGroupBy + func (sagb *StudyArticleGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (sagb *StudyArticleGroupBy) BoolX(ctx context.Context) bool + func (sagb *StudyArticleGroupBy) Bools(ctx context.Context) ([]bool, error) + func (sagb *StudyArticleGroupBy) BoolsX(ctx context.Context) []bool + func (sagb *StudyArticleGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (sagb *StudyArticleGroupBy) Float64X(ctx context.Context) float64 + func (sagb *StudyArticleGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (sagb *StudyArticleGroupBy) Float64sX(ctx context.Context) []float64 + func (sagb *StudyArticleGroupBy) Int(ctx context.Context) (_ int, err error) + func (sagb *StudyArticleGroupBy) IntX(ctx context.Context) int + func (sagb *StudyArticleGroupBy) Ints(ctx context.Context) ([]int, error) + func (sagb *StudyArticleGroupBy) IntsX(ctx context.Context) []int + func (sagb *StudyArticleGroupBy) Scan(ctx context.Context, v interface{}) error + func (sagb *StudyArticleGroupBy) ScanX(ctx context.Context, v interface{}) + func (sagb *StudyArticleGroupBy) String(ctx context.Context) (_ string, err error) + func (sagb *StudyArticleGroupBy) StringX(ctx context.Context) string + func (sagb *StudyArticleGroupBy) Strings(ctx context.Context) ([]string, error) + func (sagb *StudyArticleGroupBy) StringsX(ctx context.Context) []string + type StudyArticleMutation struct + func (m *StudyArticleMutation) AddCommentIDs(ids ...int) + func (m *StudyArticleMutation) AddField(name string, value ent.Value) error + func (m *StudyArticleMutation) AddedEdges() []string + func (m *StudyArticleMutation) AddedField(name string) (ent.Value, bool) + func (m *StudyArticleMutation) AddedFields() []string + func (m *StudyArticleMutation) AddedIDs(name string) []ent.Value + func (m *StudyArticleMutation) AuthorCleared() bool + func (m *StudyArticleMutation) AuthorID() (id string, exists bool) + func (m *StudyArticleMutation) AuthorIDs() (ids []string) + func (m *StudyArticleMutation) ClearAuthor() + func (m *StudyArticleMutation) ClearComments() + func (m *StudyArticleMutation) ClearEdge(name string) error + func (m *StudyArticleMutation) ClearField(name string) error + func (m *StudyArticleMutation) ClearedEdges() []string + func (m *StudyArticleMutation) ClearedFields() []string + func (m *StudyArticleMutation) CommentsCleared() bool + func (m *StudyArticleMutation) CommentsIDs() (ids []int) + func (m *StudyArticleMutation) EdgeCleared(name string) bool + func (m *StudyArticleMutation) Field(name string) (ent.Value, bool) + func (m *StudyArticleMutation) FieldCleared(name string) bool + func (m *StudyArticleMutation) Fields() []string + func (m *StudyArticleMutation) ID() (id int, exists bool) + func (m *StudyArticleMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *StudyArticleMutation) Op() Op + func (m *StudyArticleMutation) RemoveCommentIDs(ids ...int) + func (m *StudyArticleMutation) RemovedCommentsIDs() (ids []int) + func (m *StudyArticleMutation) RemovedEdges() []string + func (m *StudyArticleMutation) RemovedIDs(name string) []ent.Value + func (m *StudyArticleMutation) ResetAuthor() + func (m *StudyArticleMutation) ResetComments() + func (m *StudyArticleMutation) ResetEdge(name string) error + func (m *StudyArticleMutation) ResetField(name string) error + func (m *StudyArticleMutation) SetAuthorID(id string) + func (m *StudyArticleMutation) SetField(name string, value ent.Value) error + func (m *StudyArticleMutation) SetID(id int) + func (m *StudyArticleMutation) Type() string + func (m StudyArticleMutation) Client() *Client + func (m StudyArticleMutation) Tx() (*Tx, error) + type StudyArticleQuery struct + func (saq *StudyArticleQuery) All(ctx context.Context) ([]*StudyArticle, error) + func (saq *StudyArticleQuery) AllX(ctx context.Context) []*StudyArticle + func (saq *StudyArticleQuery) Clone() *StudyArticleQuery + func (saq *StudyArticleQuery) Count(ctx context.Context) (int, error) + func (saq *StudyArticleQuery) CountX(ctx context.Context) int + func (saq *StudyArticleQuery) Exist(ctx context.Context) (bool, error) + func (saq *StudyArticleQuery) ExistX(ctx context.Context) bool + func (saq *StudyArticleQuery) First(ctx context.Context) (*StudyArticle, error) + func (saq *StudyArticleQuery) FirstID(ctx context.Context) (id int, err error) + func (saq *StudyArticleQuery) FirstIDX(ctx context.Context) int + func (saq *StudyArticleQuery) FirstX(ctx context.Context) *StudyArticle + func (saq *StudyArticleQuery) GroupBy(field string, fields ...string) *StudyArticleGroupBy + func (saq *StudyArticleQuery) IDs(ctx context.Context) ([]int, error) + func (saq *StudyArticleQuery) IDsX(ctx context.Context) []int + func (saq *StudyArticleQuery) Limit(limit int) *StudyArticleQuery + func (saq *StudyArticleQuery) Offset(offset int) *StudyArticleQuery + func (saq *StudyArticleQuery) Only(ctx context.Context) (*StudyArticle, error) + func (saq *StudyArticleQuery) OnlyID(ctx context.Context) (id int, err error) + func (saq *StudyArticleQuery) OnlyIDX(ctx context.Context) int + func (saq *StudyArticleQuery) OnlyX(ctx context.Context) *StudyArticle + func (saq *StudyArticleQuery) Order(o ...OrderFunc) *StudyArticleQuery + func (saq *StudyArticleQuery) QueryAuthor() *KhumuUserQuery + func (saq *StudyArticleQuery) QueryComments() *CommentQuery + func (saq *StudyArticleQuery) Select(field string, fields ...string) *StudyArticleSelect + func (saq *StudyArticleQuery) Unique(unique bool) *StudyArticleQuery + func (saq *StudyArticleQuery) Where(ps ...predicate.StudyArticle) *StudyArticleQuery + func (saq *StudyArticleQuery) WithAuthor(opts ...func(*KhumuUserQuery)) *StudyArticleQuery + func (saq *StudyArticleQuery) WithComments(opts ...func(*CommentQuery)) *StudyArticleQuery + type StudyArticleSelect struct + func (sas *StudyArticleSelect) Bool(ctx context.Context) (_ bool, err error) + func (sas *StudyArticleSelect) BoolX(ctx context.Context) bool + func (sas *StudyArticleSelect) Bools(ctx context.Context) ([]bool, error) + func (sas *StudyArticleSelect) BoolsX(ctx context.Context) []bool + func (sas *StudyArticleSelect) Float64(ctx context.Context) (_ float64, err error) + func (sas *StudyArticleSelect) Float64X(ctx context.Context) float64 + func (sas *StudyArticleSelect) Float64s(ctx context.Context) ([]float64, error) + func (sas *StudyArticleSelect) Float64sX(ctx context.Context) []float64 + func (sas *StudyArticleSelect) Int(ctx context.Context) (_ int, err error) + func (sas *StudyArticleSelect) IntX(ctx context.Context) int + func (sas *StudyArticleSelect) Ints(ctx context.Context) ([]int, error) + func (sas *StudyArticleSelect) IntsX(ctx context.Context) []int + func (sas *StudyArticleSelect) Scan(ctx context.Context, v interface{}) error + func (sas *StudyArticleSelect) ScanX(ctx context.Context, v interface{}) + func (sas *StudyArticleSelect) String(ctx context.Context) (_ string, err error) + func (sas *StudyArticleSelect) StringX(ctx context.Context) string + func (sas *StudyArticleSelect) Strings(ctx context.Context) ([]string, error) + func (sas *StudyArticleSelect) StringsX(ctx context.Context) []string + type StudyArticleUpdate struct + func (sau *StudyArticleUpdate) AddCommentIDs(ids ...int) *StudyArticleUpdate + func (sau *StudyArticleUpdate) AddComments(c ...*Comment) *StudyArticleUpdate + func (sau *StudyArticleUpdate) ClearAuthor() *StudyArticleUpdate + func (sau *StudyArticleUpdate) ClearComments() *StudyArticleUpdate + func (sau *StudyArticleUpdate) Exec(ctx context.Context) error + func (sau *StudyArticleUpdate) ExecX(ctx context.Context) + func (sau *StudyArticleUpdate) Mutation() *StudyArticleMutation + func (sau *StudyArticleUpdate) RemoveCommentIDs(ids ...int) *StudyArticleUpdate + func (sau *StudyArticleUpdate) RemoveComments(c ...*Comment) *StudyArticleUpdate + func (sau *StudyArticleUpdate) Save(ctx context.Context) (int, error) + func (sau *StudyArticleUpdate) SaveX(ctx context.Context) int + func (sau *StudyArticleUpdate) SetAuthor(k *KhumuUser) *StudyArticleUpdate + func (sau *StudyArticleUpdate) SetAuthorID(id string) *StudyArticleUpdate + func (sau *StudyArticleUpdate) SetNillableAuthorID(id *string) *StudyArticleUpdate + func (sau *StudyArticleUpdate) Where(ps ...predicate.StudyArticle) *StudyArticleUpdate + type StudyArticleUpdateOne struct + func (sauo *StudyArticleUpdateOne) AddCommentIDs(ids ...int) *StudyArticleUpdateOne + func (sauo *StudyArticleUpdateOne) AddComments(c ...*Comment) *StudyArticleUpdateOne + func (sauo *StudyArticleUpdateOne) ClearAuthor() *StudyArticleUpdateOne + func (sauo *StudyArticleUpdateOne) ClearComments() *StudyArticleUpdateOne + func (sauo *StudyArticleUpdateOne) Exec(ctx context.Context) error + func (sauo *StudyArticleUpdateOne) ExecX(ctx context.Context) + func (sauo *StudyArticleUpdateOne) Mutation() *StudyArticleMutation + func (sauo *StudyArticleUpdateOne) RemoveCommentIDs(ids ...int) *StudyArticleUpdateOne + func (sauo *StudyArticleUpdateOne) RemoveComments(c ...*Comment) *StudyArticleUpdateOne + func (sauo *StudyArticleUpdateOne) Save(ctx context.Context) (*StudyArticle, error) + func (sauo *StudyArticleUpdateOne) SaveX(ctx context.Context) *StudyArticle + func (sauo *StudyArticleUpdateOne) Select(field string, fields ...string) *StudyArticleUpdateOne + func (sauo *StudyArticleUpdateOne) SetAuthor(k *KhumuUser) *StudyArticleUpdateOne + func (sauo *StudyArticleUpdateOne) SetAuthorID(id string) *StudyArticleUpdateOne + func (sauo *StudyArticleUpdateOne) SetNillableAuthorID(id *string) *StudyArticleUpdateOne + type StudyArticles []*StudyArticle + type Tx struct + Article *ArticleClient + Board *BoardClient + Comment *CommentClient + KhumuUser *KhumuUserClient + LikeComment *LikeCommentClient + StudyArticle *StudyArticleClient + 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