Versions in this module Expand all Collapse all v1 v1.0.0 Aug 26, 2018 Changes in this version + var XOLog = func(string, ...interface{}) + type Author struct + AuthorID int64 + Name string + func AuthorByAuthorID(db XODB, authorID int64) (*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 int64 + AuthorName string + BookID int64 + BookIsbn string + BookTags string + BookTitle string + func AuthorBookResultsByTags(db XODB, tags string) ([]*AuthorBookResult, error) + type Book struct + AuthorID int64 + Available time.Time + BookID int64 + Isbn string + Tags string + Title string + Year int64 + func BookByBookID(db XODB, bookID int64) (*Book, error) + func BookByIsbn(db XODB, isbn string) (*Book, error) + func BooksByTitleYear(db XODB, title string, year int64) ([]*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