Documentation ¶
Index ¶
- Variables
- type Author
- type Book
- type BookType
- type BooksByYearBatchResults
- type CreateBookBatchResults
- type CreateBookParams
- type DBTX
- type DeleteBookBatchResults
- type DeleteBookNamedFuncBatchResults
- type DeleteBookNamedSignBatchResults
- type GetBiographyBatchResults
- type NullBookType
- type Querier
- type Queries
- func (q *Queries) BooksByYear(ctx context.Context, year []int32) *BooksByYearBatchResults
- func (q *Queries) CreateAuthor(ctx context.Context, name string) (Author, error)
- func (q *Queries) CreateBook(ctx context.Context, arg []CreateBookParams) *CreateBookBatchResults
- func (q *Queries) DeleteBook(ctx context.Context, bookID []int32) *DeleteBookBatchResults
- func (q *Queries) DeleteBookExecResult(ctx context.Context, bookID int32) (pgconn.CommandTag, error)
- func (q *Queries) DeleteBookNamedFunc(ctx context.Context, bookID []int32) *DeleteBookNamedFuncBatchResults
- func (q *Queries) DeleteBookNamedSign(ctx context.Context, bookID []int32) *DeleteBookNamedSignBatchResults
- func (q *Queries) GetAuthor(ctx context.Context, authorID int32) (Author, error)
- func (q *Queries) GetBiography(ctx context.Context, authorID []int32) *GetBiographyBatchResults
- func (q *Queries) UpdateBook(ctx context.Context, arg []UpdateBookParams) *UpdateBookBatchResults
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type UpdateBookBatchResults
- type UpdateBookParams
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBatchAlreadyClosed = errors.New("batch already closed")
)
Functions ¶
This section is empty.
Types ¶
type BooksByYearBatchResults ¶
type BooksByYearBatchResults struct {
// contains filtered or unexported fields
}
func (*BooksByYearBatchResults) Close ¶
func (b *BooksByYearBatchResults) Close() error
type CreateBookBatchResults ¶
type CreateBookBatchResults struct {
// contains filtered or unexported fields
}
func (*CreateBookBatchResults) Close ¶
func (b *CreateBookBatchResults) Close() error
type CreateBookParams ¶
type DeleteBookBatchResults ¶
type DeleteBookBatchResults struct {
// contains filtered or unexported fields
}
func (*DeleteBookBatchResults) Close ¶
func (b *DeleteBookBatchResults) Close() error
func (*DeleteBookBatchResults) Exec ¶
func (b *DeleteBookBatchResults) Exec(f func(int, error))
type DeleteBookNamedFuncBatchResults ¶
type DeleteBookNamedFuncBatchResults struct {
// contains filtered or unexported fields
}
func (*DeleteBookNamedFuncBatchResults) Close ¶
func (b *DeleteBookNamedFuncBatchResults) Close() error
func (*DeleteBookNamedFuncBatchResults) Exec ¶
func (b *DeleteBookNamedFuncBatchResults) Exec(f func(int, error))
type DeleteBookNamedSignBatchResults ¶
type DeleteBookNamedSignBatchResults struct {
// contains filtered or unexported fields
}
func (*DeleteBookNamedSignBatchResults) Close ¶
func (b *DeleteBookNamedSignBatchResults) Close() error
func (*DeleteBookNamedSignBatchResults) Exec ¶
func (b *DeleteBookNamedSignBatchResults) Exec(f func(int, error))
type GetBiographyBatchResults ¶
type GetBiographyBatchResults struct {
// contains filtered or unexported fields
}
func (*GetBiographyBatchResults) Close ¶
func (b *GetBiographyBatchResults) Close() error
type NullBookType ¶
type NullBookType struct { BookType BookType `json:"book_type"` Valid bool `json:"valid"` // Valid is true if BookType is not NULL }
func (*NullBookType) Scan ¶
func (ns *NullBookType) Scan(value interface{}) error
Scan implements the Scanner interface.
type Querier ¶
type Querier interface { BooksByYear(ctx context.Context, year []int32) *BooksByYearBatchResults CreateAuthor(ctx context.Context, name string) (Author, error) CreateBook(ctx context.Context, arg []CreateBookParams) *CreateBookBatchResults DeleteBook(ctx context.Context, bookID []int32) *DeleteBookBatchResults DeleteBookExecResult(ctx context.Context, bookID int32) (pgconn.CommandTag, error) DeleteBookNamedFunc(ctx context.Context, bookID []int32) *DeleteBookNamedFuncBatchResults DeleteBookNamedSign(ctx context.Context, bookID []int32) *DeleteBookNamedSignBatchResults GetAuthor(ctx context.Context, authorID int32) (Author, error) GetBiography(ctx context.Context, authorID []int32) *GetBiographyBatchResults UpdateBook(ctx context.Context, arg []UpdateBookParams) *UpdateBookBatchResults }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) BooksByYear ¶
func (q *Queries) BooksByYear(ctx context.Context, year []int32) *BooksByYearBatchResults
func (*Queries) CreateAuthor ¶
func (*Queries) CreateBook ¶
func (q *Queries) CreateBook(ctx context.Context, arg []CreateBookParams) *CreateBookBatchResults
func (*Queries) DeleteBook ¶
func (q *Queries) DeleteBook(ctx context.Context, bookID []int32) *DeleteBookBatchResults
func (*Queries) DeleteBookExecResult ¶
func (*Queries) DeleteBookNamedFunc ¶
func (q *Queries) DeleteBookNamedFunc(ctx context.Context, bookID []int32) *DeleteBookNamedFuncBatchResults
func (*Queries) DeleteBookNamedSign ¶
func (q *Queries) DeleteBookNamedSign(ctx context.Context, bookID []int32) *DeleteBookNamedSignBatchResults
func (*Queries) GetBiography ¶
func (q *Queries) GetBiography(ctx context.Context, authorID []int32) *GetBiographyBatchResults
func (*Queries) UpdateBook ¶
func (q *Queries) UpdateBook(ctx context.Context, arg []UpdateBookParams) *UpdateBookBatchResults
type UpdateBookBatchResults ¶
type UpdateBookBatchResults struct {
// contains filtered or unexported fields
}
func (*UpdateBookBatchResults) Close ¶
func (b *UpdateBookBatchResults) Close() error
func (*UpdateBookBatchResults) Exec ¶
func (b *UpdateBookBatchResults) Exec(f func(int, error))
type UpdateBookParams ¶
Click to show internal directories.
Click to hide internal directories.