Versions in this module Expand all Collapse all v1 v1.5.3 Jun 12, 2021 v1.5.2 Apr 22, 2021 v1.5.1 Jan 27, 2021 Changes in this version + var XOLog = func(string, ...interface{}) + type Author struct + AuthorID int + Name string + func AuthorByAuthorID(db XODB, authorID int) (*Author, error) + func AuthorsByName(db XODB, name string) ([]*Author, error) + func (a *Author) Delete(db XODB) error + func (a *Author) Deleted() bool + func (a *Author) Exists() bool + func (a *Author) Insert(db XODB) error + func (a *Author) Save(db XODB) error + func (a *Author) Update(db XODB) error + type AuthorBookResult struct + AuthorID int + AuthorName string + BookID int + BookIsbn string + BookTags string + BookTitle string + func AuthorBookResultsByTags(db XODB, tags string) ([]*AuthorBookResult, error) + type Book struct + AuthorID int + Available time.Time + BookID int + Isbn string + Tags string + Title string + Year int + func BookByBookID(db XODB, bookID int) (*Book, error) + func BookByIsbn(db XODB, isbn string) (*Book, error) + func BooksByTitleYear(db XODB, title string, year int) ([]*Book, error) + func (b *Book) Author(db XODB) (*Author, error) + func (b *Book) Delete(db XODB) error + func (b *Book) Deleted() bool + func (b *Book) Exists() bool + func (b *Book) Insert(db XODB) error + func (b *Book) Save(db XODB) error + func (b *Book) Update(db XODB) error + type ScannerValuer interface + type Slice []ScannerValuer + type StringSlice []string + func (ss *StringSlice) Scan(src interface{}) error + func (ss StringSlice) Value() (driver.Value, error) + type XODB interface + Exec func(string, ...interface{}) (sql.Result, error) + Query func(string, ...interface{}) (*sql.Rows, error) + QueryRow func(string, ...interface{}) *sql.Row