query

package
v0.0.0-...-d2cdecb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBookQuery

func NewBookQuery(db *pgxpool.Pool) *bookQuery

Types

type BookQuery

type BookQuery interface {
	GetBook(ctx context.Context, req *api.GetBookRequest) (*api.GetBookResponse, error)
	ListBooks(ctx context.Context, req *api.ListBooksRequest) (*api.ListBooksResponse, error)
	CreateBook(ctx context.Context, tx pgx.Tx, req *api.CreateBookRequest) (*api.CreateBookResponse, error)
	UpdateBook(ctx context.Context, tx pgx.Tx, req *api.UpdateBookRequest) (*api.UpdateBookResponse, error)
	DeleteBook(ctx context.Context, tx pgx.Tx, id *api.DeleteBookRequest) (*api.DeleteBookResponse, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL