MCPcopy Index your code
hub / github.com/riverqueue/river / QueueGetTx

Method QueueGetTx

client.go:2601–2606  ·  view source on GitHub ↗

QueueGetTx returns the queue with the given name. If the queue has not recently been active or does not exist, returns ErrNotFound. The provided context is used for the underlying Postgres query and can be used to cancel the operation or apply a timeout.

(ctx context.Context, tx TTx, name string)

Source from the content-addressed store, hash-verified

2599// The provided context is used for the underlying Postgres query and can be
2600// used to cancel the operation or apply a timeout.
2601func (c *Client[TTx]) QueueGetTx(ctx context.Context, tx TTx, name string) (*rivertype.Queue, error) {
2602 return c.driver.UnwrapExecutor(tx).QueueGet(ctx, &riverdriver.QueueGetParams{
2603 Name: name,
2604 Schema: c.config.Schema,
2605 })
2606}
2607
2608// QueueListResult is the result of a job list operation. It contains a list of
2609// jobs and leaves room for future cursor functionality.

Callers 3

Test_Client_CommonFunction · 0.80
Test_Client_QueueGetTxFunction · 0.80
ExerciseClientFunction · 0.80

Calls 2

QueueGetMethod · 0.65
UnwrapExecutorMethod · 0.65

Tested by 3

Test_Client_CommonFunction · 0.64
Test_Client_QueueGetTxFunction · 0.64
ExerciseClientFunction · 0.64