Versions in this module Expand all Collapse all v0 v0.1.0 Sep 28, 2022 Changes in this version + type Book struct + Author string + Category string + CoverImageUrl string + HighlightsUrl string + ID int64 + LastHighlightAt time.Time + NumHighlights int64 + Source string + SourceUrl string + Title string + Updated time.Time + type CreateBookParams struct + Author string + Category string + CoverImageUrl string + HighlightsUrl string + ID int64 + LastHighlightAt time.Time + NumHighlights int64 + Source string + SourceUrl string + Title string + Updated time.Time + type CreateHighlightParams struct + BookID int64 + Color string + HighlightedAt time.Time + ID int64 + Location int64 + LocationType string + Note string + Tags string + Text string + Updated time.Time + Url string + type DBTX interface + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + PrepareContext func(context.Context, string) (*sql.Stmt, error) + QueryContext func(context.Context, string, ...interface{}) (*sql.Rows, error) + QueryRowContext func(context.Context, string, ...interface{}) *sql.Row + type Highlight struct + BookID int64 + Color string + HighlightedAt time.Time + ID int64 + Location int64 + LocationType string + Note string + Tags string + Text string + Updated time.Time + Url string + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) CreateBook(ctx context.Context, arg CreateBookParams) (Book, error) + func (q *Queries) CreateHighlight(ctx context.Context, arg CreateHighlightParams) (Highlight, error) + func (q *Queries) GetBook(ctx context.Context, id int64) (Book, error) + func (q *Queries) GetMostRecentlyUpdatedBook(ctx context.Context) (Book, error) + func (q *Queries) ListBooks(ctx context.Context) ([]Book, error) + func (q *Queries) WithTx(tx *sql.Tx) *Queries