Documentation
¶
Index ¶
- type Author
- type Book
- type DBTX
- type Queries
- func (q *Queries) DeleteAuthor(ctx context.Context, id string) error
- func (q *Queries) DeleteBook(ctx context.Context, id string) error
- func (q *Queries) GetAuthor(ctx context.Context, id string) (Author, error)
- func (q *Queries) GetBook(ctx context.Context, id string) (Book, error)
- func (q *Queries) ListAuthors(ctx context.Context) ([]Author, error)
- func (q *Queries) ListBooksByAuthor(ctx context.Context, authorID string) ([]Book, error)
- func (q *Queries) SearchAuthors(ctx context.Context, genre string) ([]Author, error)
- func (q *Queries) UpsertAuthor(ctx context.Context, arg UpsertAuthorParams) error
- func (q *Queries) UpsertBook(ctx context.Context, arg UpsertBookParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type UpsertAuthorParams
- type UpsertBookParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) ListBooksByAuthor ¶
func (*Queries) SearchAuthors ¶
func (*Queries) UpsertAuthor ¶
func (q *Queries) UpsertAuthor(ctx context.Context, arg UpsertAuthorParams) error
func (*Queries) UpsertBook ¶
func (q *Queries) UpsertBook(ctx context.Context, arg UpsertBookParams) error
type UpsertAuthorParams ¶
Click to show internal directories.
Click to hide internal directories.