Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToNullFloat64 ¶
func ToNullFloat64(f float64) sql.NullFloat64
ToNullFloat64 invalidates a sql.NullFloat64 if 0, validates otherwise
func ToNullString ¶
func ToNullString(s string) sql.NullString
ToNullString invalidates a sql.NullString if empty, validates if not empty
Types ¶
type QuoteDatabase ¶
type QuoteDatabase struct {
// contains filtered or unexported fields
}
QuoteDatabase handles the database that store and retrieve quote informations.
func Open ¶
func Open(dns string) (*QuoteDatabase, error)
Open the quote database. Try to create the database if not exists.
func (*QuoteDatabase) InsertQuotes ¶
func (qdb *QuoteDatabase) InsertQuotes(items ...*QuoteRecord) error
InsertQuotes insert the quotes in the quotes database.
Click to show internal directories.
Click to hide internal directories.