Versions in this module Expand all Collapse all v1 v1.0.0 Aug 26, 2018 Changes in this version + const BookTypeFiction + const BookTypeNonfiction + var XOLog = func(string, ...interface{}) + func SayHello(db XODB, v0 string) (string, error) + 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 AuthorBookResultsByTag(db XODB, tag string) ([]*AuthorBookResult, error) + type Book struct + AuthorID int + Available time.Time + BookID int + BookType BookType + 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 BooksByAuthorID(db XODB, authorID int) ([]*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 BookType uint16 + func (bt *BookType) Scan(src interface{}) error + func (bt *BookType) UnmarshalText(text []byte) error + func (bt BookType) MarshalText() ([]byte, error) + func (bt BookType) String() string + func (bt BookType) Value() (driver.Value, 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