Versions in this module Expand all Collapse all v1 v1.1.3 Nov 7, 2024 v1.1.2 Nov 6, 2024 v1.1.1 Nov 6, 2024 v1.1.0 Nov 6, 2024 v1.0.1 Nov 6, 2024 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 + func (a *Author) Upsert(db XODB) error + type AuthorBookResult struct + AuthorID int + AuthorName string + BookID int + BookIsbn string + BookTags StringSlice + BookTitle string + func AuthorBookResultsByTags(db XODB, tags StringSlice) ([]*AuthorBookResult, error) + type Book struct + AuthorID int + Available time.Time + BookID int + Booktype BookType + Isbn string + Tags StringSlice + Title string + Year int + func BookByBookID(db XODB, bookID int) (*Book, error) + func BookByIsbn(db XODB, isbn string) (*Book, error) + func BooksByTitle(db XODB, title 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 + func (b *Book) Upsert(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