package
0.0.0-20240115183134-7afd62f6b85e
Repository: https://github.com/tommsawyer/itbooks.git
Documentation: pkg.go.dev
# Functions
Connect connects to postgres.
FindBooks returns books by given filter.
GetBook returns first found book by given filter.
UpdateBook updates given fields on book.
UpsertBook creates book in postgres and returns ID.
# Structs
Book represents book table in postgres.
UpsertBookParams is parameters required for inserting book.
# Interfaces
DB is postgres database.
# Type aliases
Fields is used for update queries.