Documentation
¶
Index ¶
- func InitTemplate(tpl string, opts ...Option) (*template.Template, error)
- type Option
- type ParamHandler
- type TemplatedQuery
- func (t *TemplatedQuery) Execute(ctx context.Context) (rows pgx.Rows, err error)
- func (t *TemplatedQuery) GetCount(ctx context.Context) (count int, err error)
- func (t *TemplatedQuery) GetPage(ctx context.Context, limit, offset int, sortOrder string) (rows pgx.Rows, err error)
- func (t *TemplatedQuery) GetQuery(ctx context.Context, sortOrder string) (rows pgx.Rows, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ParamHandler ¶
type TemplatedQuery ¶
type TemplatedQuery struct {
// contains filtered or unexported fields
}
func NewTemplatedQuery ¶
func NewTemplatedQuery( tpl *template.Template, db *pgxpool.Pool, obj ParamHandler, ) *TemplatedQuery
func (*TemplatedQuery) GetCount ¶
func (t *TemplatedQuery) GetCount(ctx context.Context) (count int, err error)
Click to show internal directories.
Click to hide internal directories.