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

Function schemaTemplateParam

riverdriver/riversqlite/river_sqlite_driver.go:1642–1650  ·  view source on GitHub ↗
(ctx context.Context, schema string)

Source from the content-addressed store, hash-verified

1640}
1641
1642func schemaTemplateParam(ctx context.Context, schema string) context.Context {
1643 if schema != "" {
1644 schema = dbutil.SafeIdentifier(schema) + "."
1645 }
1646
1647 return sqlctemplate.WithReplacements(ctx, map[string]sqlctemplate.Replacement{
1648 "schema": {Value: schema, Stable: true},
1649 }, nil)
1650}
1651
1652func queueFromInternal(internal *dbsqlc.RiverQueue) *rivertype.Queue {
1653 var pausedAt *time.Time

Callers 15

IndexExistsMethod · 0.70
JobCancelMethod · 0.70
JobCountByAllStatesMethod · 0.70
JobCountByStateMethod · 0.70
JobDeleteMethod · 0.70
JobDeleteBeforeMethod · 0.70
JobDeleteManyMethod · 0.70
JobGetAvailableMethod · 0.70
JobGetByIDMethod · 0.70
JobGetByIDManyMethod · 0.70
JobGetByKindManyMethod · 0.70

Calls 2

SafeIdentifierFunction · 0.92
WithReplacementsFunction · 0.92

Tested by 1

TestSchemaTemplateParamFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…