Versions in this module Expand all Collapse all v1 v1.1.0 Apr 12, 2024 v1.0.0 Apr 6, 2024 Changes in this version + type Book struct + Author string + Category string + Description string + Featured bool + ID string + ImageLink string + Summary string + Title string + type QueryArgs struct + Limit *int + Offset *int + SearchTerm string + type Repository struct + func NewRepository(db *ent.Client) *Repository + func (r *Repository) DeleteByID(ctx context.Context, id string) error + func (r *Repository) FindByID(ctx context.Context, id string) (*Book, error) + func (r *Repository) FindFeaturedBooks(ctx context.Context) []Book + func (r *Repository) GetAll(ctx context.Context, args QueryArgs) []Book + func (r *Repository) GetTotalCount(ctx context.Context) (int, error) + func (r *Repository) InsertNew(ctx context.Context, in *Book) (*Book, error) + func (r *Repository) Query(ctx context.Context, args QueryArgs) []Book + func (r *Repository) Update(ctx context.Context, in *Book) (*Book, error)