database

package
v0.0.0-...-731f7f8 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAuthor

func DeleteAuthor(id int) error

func DeleteBook

func DeleteBook(id int) error

func DeleteBookTransaction

func DeleteBookTransaction(id int) error

func DeleteCategory

func DeleteCategory(id int) error

func DeletePublisher

func DeletePublisher(id int) error

func DeleteUser

func DeleteUser(id int) error

func FetchAuthor

func FetchAuthor() ([]model.Author, error)

func FetchBook

func FetchBook() ([]model.Book, error)

func FetchCategory

func FetchCategory() ([]model.Category, error)

func FetchPublisher

func FetchPublisher() ([]model.Publisher, error)

func FetchTransaction

func FetchTransaction() ([]model.Transaction, error)

func FetchUser

func FetchUser() ([]model.User, error)

func GetByEmailUser

func GetByEmailUser(email string) (model.User, error)

func GetByIDAuthor

func GetByIDAuthor(id int) (model.Author, error)

func GetByIDBook

func GetByIDBook(id int) (model.Book, error)

func GetByIDCategory

func GetByIDCategory(id int) (model.Category, error)

func GetByIDPublisher

func GetByIDPublisher(id int) (model.Publisher, error)

func GetByIDTransaction

func GetByIDTransaction(id int) (model.Transaction, error)

func GetByIDUser

func GetByIDUser(id int) (model.User, error)

func GetByNameAuthor

func GetByNameAuthor(name string) (model.Author, error)

func GetByNameCategory

func GetByNameCategory(name string) (model.Category, error)

func GetByNamePublisher

func GetByNamePublisher(name string) (model.Publisher, error)

func GetByTitleBook

func GetByTitleBook(title string) (model.Book, error)

func GetByTransactionIDBookTransaction

func GetByTransactionIDBookTransaction(transactionID int) ([]model.BookTransaction, error)

func LoginUser

func LoginUser(user *model.User) (*model.User, error)

func SortByColumnBook

func SortByColumnBook(column string, order int) ([]model.Book, error)

func StoreAuthor

func StoreAuthor(author model.Author) (model.Author, error)

func StoreBook

func StoreBook(book model.Book) (model.Book, error)

func StoreBookAuthor

func StoreBookAuthor(bookAuthor model.BookAuthor) error

func StoreBookTransaction

func StoreBookTransaction(bookTransaction model.BookTransaction) error

func StoreCategory

func StoreCategory(category model.Category) (model.Category, error)

func StorePublisher

func StorePublisher(publisher model.Publisher) (model.Publisher, error)

func StoreTransaction

func StoreTransaction(transaction model.Transaction) (int, error)

func StoreUser

func StoreUser(user model.User) error

func UpdateAuthor

func UpdateAuthor(author model.Author, id int) error

func UpdateBook

func UpdateBook(book model.Book, id int) error

func UpdateBookTransaction

func UpdateBookTransaction(bookTransaction model.BookTransaction, id int) error

func UpdateCategory

func UpdateCategory(category model.Category, id int) error

func UpdatePublisher

func UpdatePublisher(publisher model.Publisher, id int) error

func UpdateTransaction

func UpdateTransaction(transaction model.Transaction, id int) error

func UpdateUser

func UpdateUser(user model.User, id int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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