Versions in this module Expand all Collapse all v1 v1.6.0 Sep 11, 2024 Changes in this version + func Register(ctx context.Context, conn RegisterConn) error + type Author struct + AuthorID *int32 + FirstName *string + LastName *string + Suffix *string + type Book struct + AuthorID *int32 + BookID *int32 + Title *string + type DBQuerier struct + func NewQuerier(ctx context.Context, conn genericConn) (*DBQuerier, error) + func (q *DBQuerier) AssignAuthor(ctx context.Context, authorID int32, bookID int32) (pgconn.CommandTag, error) + func (q *DBQuerier) FindBooks(ctx context.Context) ([]FindBooksRow, error) + func (q *DBQuerier) InsertAuthor(ctx context.Context, firstName string, lastName string) (int32, error) + func (q *DBQuerier) InsertBook(ctx context.Context, title string) (int32, error) + type FindBooksRow struct + A *Author + B *Book + type Querier interface + AssignAuthor func(ctx context.Context, authorID int32, bookID int32) (pgconn.CommandTag, error) + FindBooks func(ctx context.Context) ([]FindBooksRow, error) + InsertAuthor func(ctx context.Context, firstName string, lastName string) (int32, error) + InsertBook func(ctx context.Context, title string) (int32, error) + type RegisterConn interface + LoadType func(ctx context.Context, typeName string) (*pgtype.Type, error) + TypeMap func() *pgtype.Map