Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookQueries ¶
BookQueries struct for queries from Book model.
func (*BookQueries) CreateBook ¶
func (q *BookQueries) CreateBook(b *models.Book) error
CreateBook method for creating book by given Book object.
func (*BookQueries) DeleteBook ¶
func (q *BookQueries) DeleteBook(id uuid.UUID) error
DeleteBook method for delete book by given ID.
func (*BookQueries) GetBooks ¶
func (q *BookQueries) GetBooks() ([]models.Book, error)
GetBooks method for getting all books.
func (*BookQueries) UpdateBook ¶
UpdateBook method for updating book by given Book object.
Click to show internal directories.
Click to hide internal directories.