Versions in this module Expand all Collapse all v0 v0.1.0 Jun 5, 2020 Changes in this version + func AddAutore(nome, cognome string) (uint32, error) + func AddGenere(nome string) (uint32, error) + func AddLibro(titolo string, autore, genere uint32) (uint32, error) + func AddPrestito(libro uint32, utente string, durata uint32) (uint32, error) + func ChiudiDB() + func CountAutori() (uint32, error) + func CountLibri() (uint32, error) + func InizializzaDB() (err error) + func LibriDisponibili() (uint32, error) + func LibriPrenotati() (uint32, error) + func RemoveAutore(codice uint32) error + func RemoveGenere(codice uint32) error + func RemoveLibro(codice uint32) error + func RemovePrestito(codice uint32) error + func SetHash(codice uint32, hash string) error + func SetRestituzione(libro uint32) error + type Autore struct + Codice uint32 + Cognome string + Nome string + func GetAutori(iniziale uint8) ([]Autore, error) + func GetTuttiAutori() ([]Autore, error) + func RicercaAutori(nome string) ([]Autore, error) + type Genere struct + Codice uint32 + Nome string + func GetGeneri() ([]Genere, error) + func RicercaGeneri(nome string) ([]Genere, error) + type Libro struct + Codice uint32 + CognomeAutore string + Genere string + Hashz string + NomeAutore string + Prenotato bool + Titolo string + func GetLibri() ([]Libro, error) + func GetLibro(cod uint32) (Libro, error) + func RicercaLibri(nome string, autore, genere []uint32, page uint16) ([]Libro, error) + func RicercaLibriNoPage(nome string, autore, genere []uint32) ([]Libro, error) + type NoCurrentPrestitoError struct + func (e *NoCurrentPrestitoError) Error() string + type Prestito struct + Codice uint32 + Data_prenotazione time.Time + Data_restituzione sql.NullTime + Durata uint32 + Libro uint32 + Utente string + func GetCurrentPrestito(codice uint32) (Prestito, error) + func GetPrestiti(utente string) ([]Prestito, error)