Documentation
¶
Index ¶
- type Author
- type Book
- type Booktype
- type CreateAuthorParams
- type CreateBookParams
- type DBTX
- type NullBooktype
- type Queries
- func (q *Queries) CreateAuthor(ctx context.Context, arg CreateAuthorParams) (Author, error)
- func (q *Queries) CreateBook(ctx context.Context, arg CreateBookParams) (Book, error)
- func (q *Queries) DeleteAuthor(ctx context.Context, authorID int32) error
- func (q *Queries) DeleteBook(ctx context.Context, bookID int32) error
- func (q *Queries) GetAuthor(ctx context.Context, authorID int32) (Author, error)
- func (q *Queries) GetBook(ctx context.Context, bookID int32) (Book, error)
- func (q *Queries) ListAuthor(ctx context.Context) ([]Author, error)
- func (q *Queries) ListBook(ctx context.Context) ([]Book, error)
- func (q *Queries) UpdateAuthor(ctx context.Context, arg UpdateAuthorParams) (Author, error)
- func (q *Queries) UpdateBook(ctx context.Context, arg UpdateBookParams) (Book, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type UpdateAuthorParams
- type UpdateBookParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateAuthorParams ¶
type CreateBookParams ¶
type NullBooktype ¶
func (*NullBooktype) Scan ¶
func (ns *NullBooktype) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateAuthor ¶
func (*Queries) CreateBook ¶
func (*Queries) DeleteAuthor ¶
func (*Queries) GetAuthor ¶
Code generated by protoc-gen-sqlc. DO NOT EDIT. source:
examples/library/v1/author.proto
func (*Queries) GetBook ¶
Code generated by protoc-gen-sqlc. DO NOT EDIT. source:
examples/library/v1/book.proto
func (*Queries) UpdateAuthor ¶
func (*Queries) UpdateBook ¶
type UpdateAuthorParams ¶
Click to show internal directories.
Click to hide internal directories.