bookRepository

package
v0.0.0-...-9867eb1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookRepository

type BookRepository struct{}

func (BookRepository) AddBook

func (b BookRepository) AddBook(db *sql.DB, book models.Book) (int, error)

func (BookRepository) GetBook

func (b BookRepository) GetBook(db *sql.DB, book models.Book, id int) (models.Book, error)

GetBooks DB Operation

func (BookRepository) GetBooks

func (b BookRepository) GetBooks(db *sql.DB, book models.Book, books []models.Book) ([]models.Book, error)

GetBooks DB Operation

func (BookRepository) RemoveBook

func (b BookRepository) RemoveBook(db *sql.DB, id int) (int64, error)

RemoveBooks DB Operation

func (BookRepository) UpdateBook

func (b BookRepository) UpdateBook(db *sql.DB, book models.Book) (int64, error)

UpdateBooks DB Operation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL