Documentation ¶
Index ¶
- func Create(ctx context.Context, db *sql.DB, newBook *models.NewBook) (*models.NewBook, error)
- func DeleteById(ctx context.Context, db *sql.DB, bookId int) error
- func GetById(ctx context.Context, db *sql.DB, bookId int) (*models.Book, error)
- func List(ctx context.Context, db *sql.DB) ([]*models.Book, error)
- func Update(ctx context.Context, db *sql.DB, book *models.UpdatedBook) (*models.UpdatedBook, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteById ¶
DeleteById removes a book record by its ID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.