Documentation ¶
Index ¶
- type DBQuerier
- func (q *DBQuerier) ParamArrayInt(ctx context.Context, ints []int) ([]int, error)
- func (q *DBQuerier) ParamNested1(ctx context.Context, dimensions Dimensions) (Dimensions, error)
- func (q *DBQuerier) ParamNested2(ctx context.Context, image ProductImageType) (ProductImageType, error)
- func (q *DBQuerier) ParamNested2Array(ctx context.Context, images []ProductImageType) ([]ProductImageType, error)
- func (q *DBQuerier) ParamNested3(ctx context.Context, imageSet ProductImageSetType) (ProductImageSetType, error)
- type Dimensions
- type ProductImageSetType
- type ProductImageType
- type Querier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBQuerier ¶
type DBQuerier struct {
// contains filtered or unexported fields
}
func NewQuerier ¶
NewQuerier creates a DBQuerier that implements Querier.
func (*DBQuerier) ParamArrayInt ¶
ParamArrayInt implements Querier.ParamArrayInt.
func (*DBQuerier) ParamNested1 ¶
func (q *DBQuerier) ParamNested1(ctx context.Context, dimensions Dimensions) (Dimensions, error)
ParamNested1 implements Querier.ParamNested1.
func (*DBQuerier) ParamNested2 ¶
func (q *DBQuerier) ParamNested2(ctx context.Context, image ProductImageType) (ProductImageType, error)
ParamNested2 implements Querier.ParamNested2.
func (*DBQuerier) ParamNested2Array ¶
func (q *DBQuerier) ParamNested2Array(ctx context.Context, images []ProductImageType) ([]ProductImageType, error)
ParamNested2Array implements Querier.ParamNested2Array.
func (*DBQuerier) ParamNested3 ¶
func (q *DBQuerier) ParamNested3(ctx context.Context, imageSet ProductImageSetType) (ProductImageSetType, error)
ParamNested3 implements Querier.ParamNested3.
type Dimensions ¶
Dimensions represents the Postgres composite type "dimensions".
type ProductImageSetType ¶
type ProductImageSetType struct { Name string `json:"name"` OrigImage ProductImageType `json:"orig_image"` Images []ProductImageType `json:"images"` }
ProductImageSetType represents the Postgres composite type "product_image_set_type".
type ProductImageType ¶
type ProductImageType struct { Source string `json:"source"` Dimensions Dimensions `json:"dimensions"` }
ProductImageType represents the Postgres composite type "product_image_type".
type Querier ¶
type Querier interface { ParamArrayInt(ctx context.Context, ints []int) ([]int, error) ParamNested1(ctx context.Context, dimensions Dimensions) (Dimensions, error) ParamNested2(ctx context.Context, image ProductImageType) (ProductImageType, error) ParamNested2Array(ctx context.Context, images []ProductImageType) ([]ProductImageType, error) ParamNested3(ctx context.Context, imageSet ProductImageSetType) (ProductImageSetType, error) }
Querier is a typesafe Go interface backed by SQL queries.
Click to show internal directories.
Click to hide internal directories.