Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Book ¶
type Book struct {
ID int64
ISBN string `goe:"unique"`
Title string
Author string
Genre string
Quantity int
PublicizedAt time.Time
}
Book represents a book from a bookstore system.
func NewBookNoPtr ¶
func NewBookNoPtr() Book
func NewBooksNoPtr ¶
func (*Book) InsertValues ¶
InsertValues returns a slice of values for bulk insert (excluding auto-increment primary key).
func (*Book) UpdatePairs ¶
UpdatePairs returns a slice of Pair for updating non-primary key fields.
Click to show internal directories.
Click to hide internal directories.