Documentation
¶
Overview ¶
Package riveruipostgres implements River UI's database operations for PostgreSQL. It decorates an executor from any PostgreSQL River driver rather than owning a second pool.
Index ¶
- type Driver
- type Executor
- func (e *Executor) JobCountByAllStatesCapped(ctx context.Context, params *riveruidriver.JobCountByAllStatesCappedParams) (map[rivertype.JobState]int, error)
- func (e *Executor) JobCountEstimate(ctx context.Context, params *riveruidriver.JobCountEstimateParams) (map[rivertype.JobState]riveruidriver.JobCountEstimateResult, error)
- func (e *Executor) JobDeadLetterAutocomplete(ctx context.Context, params *riveruidriver.JobDeadLetterAutocompleteParams) ([]string, error)
- func (e *Executor) JobDeadLetterList(ctx context.Context, params *riveruidriver.JobDeadLetterListParams) ([]*riveruidriver.JobDeadLetterListResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct{}
func New ¶
func New() *Driver
New returns a PostgreSQL River UI driver. Unlike River's primary database driver, it doesn't take a pool because River UI only adds queries on top of the executor already owned by the caller's River client.
func (*Driver) GetExecutor ¶
func (*Driver) GetExecutor(riverExecutor riverdriver.Executor) riveruidriver.Executor
type Executor ¶
type Executor struct {
riverdriver.Executor
// contains filtered or unexported fields
}
func (*Executor) JobCountByAllStatesCapped ¶
func (e *Executor) JobCountByAllStatesCapped(ctx context.Context, params *riveruidriver.JobCountByAllStatesCappedParams) (map[rivertype.JobState]int, error)
func (*Executor) JobCountEstimate ¶
func (e *Executor) JobCountEstimate(ctx context.Context, params *riveruidriver.JobCountEstimateParams) (map[rivertype.JobState]riveruidriver.JobCountEstimateResult, error)
func (*Executor) JobDeadLetterAutocomplete ¶ added in v0.22.0
func (e *Executor) JobDeadLetterAutocomplete(ctx context.Context, params *riveruidriver.JobDeadLetterAutocompleteParams) ([]string, error)
func (*Executor) JobDeadLetterList ¶ added in v0.22.0
func (e *Executor) JobDeadLetterList(ctx context.Context, params *riveruidriver.JobDeadLetterListParams) ([]*riveruidriver.JobDeadLetterListResult, error)
Source Files
¶
- river_ui_postgres_driver.go
Click to show internal directories.
Click to hide internal directories.