package
0.0.0-20221008084248-01807b159e8f
Repository: https://github.com/sundayfun/xo.git
Documentation: pkg.go.dev

# Functions

AuthorBookResultsByTag runs a custom query, returning results as AuthorBookResult.
AuthorByAuthorID retrieves a row from 'booktest.authors' as a Author.
AuthorsByName retrieves a row from 'booktest.authors' as a Author.
BookByBookID retrieves a row from 'booktest.books' as a Book.
BookByIsbn retrieves a row from 'booktest.books' as a Book.
BooksByAuthorID retrieves a row from 'booktest.books' as a Book.
BooksByTitleYear retrieves a row from 'booktest.books' as a Book.
SayHello calls the stored procedure 'booktest.say_hello(text) text' on db.

# Constants

BookTypeFiction is the 'FICTION' BookType.
BookTypeNonfiction is the 'NONFICTION' BookType.

# Variables

XOLog provides the log func used by generated queries.

# Structs

Author represents a row from 'booktest.authors'.
AuthorBookResult is the result of a search.
Book represents a row from 'booktest.books'.

# Interfaces

ScannerValuer is the common interface for types that implement both the database/sql.Scanner and sql/driver.Valuer interfaces.
XODB is the common interface for database operations that can be used with types from schema 'booktest'.

# Type aliases

BookType is the 'book_type' enum type from schema 'booktest'.
Slice is a slice of ScannerValuers.
StringSlice is a slice of strings.